Ive written a check_snapshots nagios plugin bash script to check up on our rsnapshot backups.
The plugin is located on the backup server which is monitored from the nagios server via NRPE.
Running the plugin via check_nrpe works perfectly:
For some reason the Nagios web interface reports an error though:root@nagios:/etc/nagios3# /usr/lib/nagios/plugins/check_nrpe -H backup.us.com -c check_snapshots
SNAPSHOT STATUS: OK
The Nagios conf.d/servers.cfg has the following, which seems to be correct:NRPE: Command 'check_snapshots' not defined
Anyone know whats going on here??define service {
use isp-service
host_name backup.us.com
service_description NRPE_SNAPSHOTS
check_command check_nrpe_1arg!check_snapshots
}
Thanks in advance!!