Check_disk error with bind mount
Posted: Thu Aug 27, 2015 3:06 am
Hello,
I have nagios-plugins 2.0.2, and with check_disk binaries I have this problem.
Linux = redhat 6.4
[root@opdhnbd02 ~]# su - nagiosagent
-bash-4.1$ id
uid=2201(nagiosagent) gid=2201(nagiosagent) groups=2201(nagiosagent)
-bash-4.1$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-tmp_lv
1008M 36M 922M 4% /tmp
-bash-4.1$ cd /opt/nagiosagent/current/nagios_plugins/
-bash-4.1$ ./check_disk -W 0 -K 0 -p /tmp
DISK CRITICAL - free space: /readonly/tmp 11077587207363 MB (0% inode=0%);| /readonly/tmp=17403133454107MB;;;0;13795428254188
but /tmp has only 4% used and it's not critical. I ask for /tmp and it returns /readonly/tmp; not good
I have a readonly bind mount in /etc/fstab
/tmp /readonly/tmp none ro,nosuid,nodev,bind 0 0
Is it corrected ? have you an idea of the problem?
best
bruno
I have nagios-plugins 2.0.2, and with check_disk binaries I have this problem.
Linux = redhat 6.4
[root@opdhnbd02 ~]# su - nagiosagent
-bash-4.1$ id
uid=2201(nagiosagent) gid=2201(nagiosagent) groups=2201(nagiosagent)
-bash-4.1$ df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-tmp_lv
1008M 36M 922M 4% /tmp
-bash-4.1$ cd /opt/nagiosagent/current/nagios_plugins/
-bash-4.1$ ./check_disk -W 0 -K 0 -p /tmp
DISK CRITICAL - free space: /readonly/tmp 11077587207363 MB (0% inode=0%);| /readonly/tmp=17403133454107MB;;;0;13795428254188
but /tmp has only 4% used and it's not critical. I ask for /tmp and it returns /readonly/tmp; not good
I have a readonly bind mount in /etc/fstab
/tmp /readonly/tmp none ro,nosuid,nodev,bind 0 0
Is it corrected ? have you an idea of the problem?
best
bruno