As per subject, I am getting the following error :
NRPE: Unable to read output
commands.cfg - Nagios Server
Code: Select all
define command {
command_name check_mounts
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mounts
}
Code: Select all
define service{
use generic-service,srv-pnp
host_name CLIENT
service_description Check For CIFS Mount - SERVER: /data1/work/documentstore
check_command check_nrpe!check_mounts
contact_groups Anon,AnonSms
}
Code: Select all
# Check Mounts
command[check_mounts]=sudo /usr/lib64/nagios/plugins/check_mount.sh /data1/work/documentstore cifs
https://exchange.nagios.org/directory/P ... is/details
Output when run on client :
Code: Select all
[nagios@SERVER ~]$ sudo /usr/lib64/nagios/plugins/check_mount.sh /data1/work/documentstore cifs
OK - /data1/work/documentstore mounted under cifs.
check_mount.sh v1.02
Regards