Weird behaviour: check gives different results local/remot

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jesusangel
Posts: 1
Joined: Fri Feb 12, 2021 11:50 am

Weird behaviour: check gives different results local/remot

Post by jesusangel »

Hello,

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
But when I run remotely, using the nagios-nrpe-plugin, I get this:

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
As you can see, the second example shows three different filesystems /, /tmp and /var/tmp, but there is only one:
# 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)
/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.

Do you know why could this happend?

Regards,
Locked