Random Project

Working great

Thanks, that’s what I needed!
To use it with NRPE, do the following:

1. add the following to commands.cfg on the Nagios server:

# check mountpoints
define command {
command_name check_mountpoints
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c check_mountpoints -a $ARG1$ $ARG2$
}

2. Copy / move / download the plugin to the target server’s plugin directory.

3. Adjust the NRPE config on the target server to be monitored:

#:nano /etc/nagios/nrpe.d/template.cfg
add:
“command[check_mountpoints]=/usr/lib/nagios/plugins/check_mountpoints.sh $ARG1$”

4. Restart the NRPE damon
#:/etc/init.d/nagios-nrpe-server restart

5. Add a service check on the nagios server..