Hey guys i’m having a problem with the Nagios plugins & NRPE.
Please tell me theres some massive problems thats really obvious and i just need sleep
The remote server is reporting a filesystem does not exist using the check_disk plugin.
Remote system :
[root@remote_server nagios]# df -h /digitoll/dumps/
Filesystem Size Used Avail Use% Mounted on
/dev/md0 212G 161G 41G 80% /digitoll/dumps
The config file with the command reference :
[root@remote_server conf.d]# cat fs.cfg |grep ll_d
command[check_fs_digitoll_dumps]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /digitoll/dumps
The plugin working properly :
[root@remote_server conf.d]# /usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /digitoll/dumps
DISK OK - free space: /digitoll/dumps 41495 MB (20% inode=99%);| /digitoll/dumps=164201MB;216685;216695;0;216705
From the Nagios server :
[root@nagios_server conf.d]# /usr/local/nagios/libexec/check_nrpe -H remote_server
NRPE v2.8.1
[root@nagios_server conf.d]# /usr/local/nagios/libexec/check_nrpe -H remote_server -c check_fs_digitoll_dumps
DISK CRITICAL - /digitoll/dumps does not exist
Both systems are using Nagios plugins v1.4.9 and NRPE v2.8.1
I made a temporary plugin to verify its the same server :
[root@nagios_server conf.d]# /usr/local/nagios/libexec/check_nrpe -H remote_server -c check_hostname
remote_server
[root@remote_server conf.d]# cat hostname.cfg
command[check_hostname]=/bin/hostname
[root@remote_server conf.d]# hostname
remote_server