How To Check Memory Utilization With Nagios And NRPE

Author: , December 30th, 2010

Proper Credit for this script is due to “jlightner”, user “MensaWater” on linuxquestions.org – reposted without permission (no contact info available). Original link: http://www.linuxquestions.org/questions/linux-software-2/nagios-check-ram-usage-on-remote-server-747531/ Create the script /usr/local/nagios/libexec/check_mem.sh as shown below (make sure you set execute perms):

How To Fix NRPE “Could not complete SSL handshake” Error

Author: , December 13th, 2010

If you get this obnoxious error fron Nagios/NRPE: “CHECK_NRPE: Error – Could not complete SSL handshake” Make sure to comment out the following line in /etc/nagios/nrpe.cfg: #allowed_hosts=127.0.0.1 Use this to test on MacOSX: /opt/local/libexec/nagios/check_nrpe -H {IP} NOTE: Be sure to fully stop and restart nrpe!

How to Control NRPE on MacOSX

Author: , April 4th, 2010

I installed NRPE via the MacPorts command-line tool as root. As a result, I am able to start and stop NRPE with the following commands: * To Start NRPE: /opt/local/share/nrpe/init-script start * To Stop NRPE: /opt/local/share/nrpe/init-script stop [code lang=”shell”] #!/bin/sh # # Created 2000-01-03 by jaclu@grm.se # # nrpe This shell script takes care of […]

Whew!

Author: , October 30th, 2009

Busy day! Have swapped the laundry into the dryer and fed the feline. Took a little white to tweak the WP post for the Nagios service groups to look just the way I wanted. Finally getting back to the PainMinderâ„¢ med unit label bug in the Show Tab.

How to create service groups in Nagios

Author: , October 30th, 2009

Just finished establishing Service Groups in Nagios so that all Web Virtual Servers are grouped properly. Here’s how – just create a simple config stanza like this: [code] define servicegroup{ servicegroup_name local_net alias Amwell Local LAN } [/code] Then, just insert the following into the desired service definitions: servicegroups {$servicegroup_name} [code] define service{ use generic-service […]

Going Strong

Author: , October 30th, 2009

Just got my Nagios monitoring system to recognize each of my client’s website individually. I also started monitoring the secret client’s servers and sites – even added him into a new contact group for SMS-based notifications. Bought two new domain names: wespeakgeek.org and brainlog.org. I tried to get painlog.org but there was a problem with […]

How to Monitor Virtual Web Hosts with Nagios

Author: , October 30th, 2009

The Nagios configuration files are located (for me) in /opt/local/etc/nagios/objects. First, create a new command in commands.cfg file: [code] # ‘check_http_url’ command definition define command{ command_name check_http_url command_line $USER1$/check_http -I $HOSTADDRESS$ -u $ARG1$ -s $ARG2$ } [/code] -u URL to test -s String to expect in the content Then, add a new service to the […]