I think I found a bug when using NRPE version 3.2.1 that has been compiled. Unless I am doing something incorrect.
My issue is pretty much the same as: https://support.nagios.com/forum/viewto ... =7&t=40247
I do not currently see a bug open for it in the url posted: https://github.com/NagiosEnterprises/nrpe/issues
I have a Nagios core server running on CentOS 7 using the check_nrpe command to interrogate a Debian 9 machine for its disk space.
The partitions are as follows:
Code: Select all
root@debian-01:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 20G 0 disk
├─sda1 8:1 0 19G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 1022M 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
Code: Select all
root@debian-01:/usr/local/nagios/libexec# cat /usr/local/nagios/etc/nrpe.cfg | grep check_root
command[check_root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda1
Code: Select all
root@debian-01:/usr/local/nagios/libexec# ./check_disk -w 20% -c 10% -p /dev/sda1
DISK OK - free space: / 13043 MB (72.33% inode=86%);| /=4989MB;15216;17118;0;19021
Code: Select all
[root@nagios-srv ~]# /usr/local/nagios/libexec/check_nrpe -H debian-01 -c check_root
DISK OK - free space: /var/tmp 13043 MB (72.33% inode=86%);| /var/tmp=4989MB;17118;18069;0;19021
Back on the Debian machine if I change /dev/sda1 to / in the nrpe config file like so:
Code: Select all
root@debian-01:/usr/local/nagios/libexec# cat /usr/local/nagios/etc/nrpe.cfg | grep check_root
command[check_root]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
Code: Select all
root@debian-01:/usr/local/nagios/libexec# ./check_disk -w 20% -c 10% -p /
DISK OK - free space: / 13043 MB (72.33% inode=86%);| /=4989MB;15216;17118;0;19021
Code: Select all
[root@nagios-srv ~]# /usr/local/nagios/libexec/check_nrpe -H debian-01 -c check_root
DISK OK - free space: / 13043 MB (72.33% inode=86%);| /=4989MB;15216;17118;0;19021