Check_NRPE returns version, but cannot remote execute
Posted: Thu Nov 12, 2015 1:20 pm
I have seen similar questions asked, but I have not seen one which fits this use case specifically.
Basically executing the base check-nrpe to the remote host will return the remote nrpe version:
[root@nagios agile-u2]# /usr/lib/nagios/plugins/check_nrpe -H agile-db-u2
NRPE v2.15
When you add a command to the end of the check command it returns the following:
[root@nagios agile-u2]# /usr/lib/nagios/plugins/check_nrpe -H agile-db-u2 -c check_root
NRPE: Unable to read output
The remote command defined in /etc/nagios/nrpe.cfg:
command[check_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% /dev/mapper/vg_agiledbd1-lv_root
Disk path confirmed:
/dev/mapper/vg_agiledbd1-lv_root
Plugin path confirmed:
[root@agile-db-u2 plugins]# pwd
/usr/lib/nagios/plugins
[root@agile-db-u2 plugins]# ls
check_disk
[root@agile-db-u2 plugins]#
Executing the check_disk command locally works as well:
[root@agile-db-u2 plugins]# /usr/lib/nagios/plugins/check_disk -v -v
DISK OK - free space: / 0 MB (0% inode=97%); /dev/shm 7974 MB (99% inode=99%); /boot 333 MB (73% inode=99%); /u02 23333 MB (24% inode=99%); /agileNAS 138148 MB (38% inode=99%);| /=65256MB;;;0;68165 /dev/shm=0MB;;;0;7975 /boot=117MB;;;0;476 /u02=72208MB;;;0;100661 /agileNAS=220251MB;;;0;358400
[root@agile-db-u2 plugins]#
I have used this same nrpe.cfg file on a couple of other servers and it has worked without issue. This seems to be currently effecting 4 out of 12 in the deployment. All of the systems are running identical version of SSL, NRPE, OS..etc.
Has anyone else experienced this issue?
Basically executing the base check-nrpe to the remote host will return the remote nrpe version:
[root@nagios agile-u2]# /usr/lib/nagios/plugins/check_nrpe -H agile-db-u2
NRPE v2.15
When you add a command to the end of the check command it returns the following:
[root@nagios agile-u2]# /usr/lib/nagios/plugins/check_nrpe -H agile-db-u2 -c check_root
NRPE: Unable to read output
The remote command defined in /etc/nagios/nrpe.cfg:
command[check_root]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% /dev/mapper/vg_agiledbd1-lv_root
Disk path confirmed:
/dev/mapper/vg_agiledbd1-lv_root
Plugin path confirmed:
[root@agile-db-u2 plugins]# pwd
/usr/lib/nagios/plugins
[root@agile-db-u2 plugins]# ls
check_disk
[root@agile-db-u2 plugins]#
Executing the check_disk command locally works as well:
[root@agile-db-u2 plugins]# /usr/lib/nagios/plugins/check_disk -v -v
DISK OK - free space: / 0 MB (0% inode=97%); /dev/shm 7974 MB (99% inode=99%); /boot 333 MB (73% inode=99%); /u02 23333 MB (24% inode=99%); /agileNAS 138148 MB (38% inode=99%);| /=65256MB;;;0;68165 /dev/shm=0MB;;;0;7975 /boot=117MB;;;0;476 /u02=72208MB;;;0;100661 /agileNAS=220251MB;;;0;358400
[root@agile-db-u2 plugins]#
I have used this same nrpe.cfg file on a couple of other servers and it has worked without issue. This seems to be currently effecting 4 out of 12 in the deployment. All of the systems are running identical version of SSL, NRPE, OS..etc.
Has anyone else experienced this issue?