I am facing a weird behaviour regarding the nagios-nrpe-server plugin. When I run the check localy I get this output:
Code: Select all
# su -s /bin/bash -c "/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -W 20% -K 10% -m -A -X devtmpfs -X tmpfs -X squashfs -X nsfs" nagios
DISK OK - free space: / 5971 MB (63% inode=88%); /boot 1763 MB (95% inode=99%); /srv/lxd/default 55790 MB (77% inode=93%);| /=3500MB;7999;8999;0;9999 /boot=85MB;1560;1755;0;1950 /srv/lxd/default=15776MB;60336;67878;0;75420
Code: Select all
$ /usr/lib/nagios/plugins/check_nrpe -t 60 -H 10.0.0.1 -p 5666 -c check_disk
DISK OK - free space: / 5971 MB (63% inode=88%); /boot 1763 MB (95% inode=99%); /srv/lxd/default 55790 MB (77% inode=93%); /tmp 5971 MB (63% inode=88%); /var/tmp 5971 MB (63% inode=88%);| /=3500MB;7999;8999;0;9999 /boot=85MB;1560;1755;0;1950 /srv/lxd/default=15776MB;60336;67878;0;75420 /tmp=3500MB;7999;8999;0;9999 /var/tmp=3500MB;7999;8999;0;9999
/tmp and /var/tmp are just directories of the root filesystem (/dev/mapper/root) mounted in / but when I run the check from the nagios server the output includes them.# mount
/dev/mapper/root on / type ext4 (rw,relatime,errors=remount-ro)
/dev/mapper/vdd1_luks on /srv/lxd/default type ext4 (rw,relatime,errors=remount-ro)
/dev/vda1 on /boot type ext4 (rw,relatime,errors=remount-ro)
Do you know why could this happend?
Regards,