check_snmp_storage.pl % wrong
Posted: Wed Dec 02, 2015 10:33 am
Hello,
The check seems to consistently return the wrong % disk usage, the bigger the disk the bigger the discrepancy:
snmpdf does fine:
[root@mgt-ada-01]# snmpdf -v 2c -c ************ host
Description size (kB) Used Available Used%
*****************************************************************************
/ 12254384 2407600 9846784 19%
***************************************************************************
/boot 499656 78136 421520 15%
/home 1998672 5108 1993564 0%
/var 12254384 3902820 8351564 31%
---------------------------------------------------------------------------------------
NAGIOS check result:
/dev/shm: 0%used(0MB/938MB) /var: 32%used(3810MB/11967MB) /boot: 16%used(76MB/488MB) /home: 0%used(5MB/1952MB) /: 20%used(2351MB/11967MB) (<80%) : OK
On another host nagios says 88% but df says 94%
anybody come acros this?
The check seems to consistently return the wrong % disk usage, the bigger the disk the bigger the discrepancy:
snmpdf does fine:
[root@mgt-ada-01]# snmpdf -v 2c -c ************ host
Description size (kB) Used Available Used%
*****************************************************************************
/ 12254384 2407600 9846784 19%
***************************************************************************
/boot 499656 78136 421520 15%
/home 1998672 5108 1993564 0%
/var 12254384 3902820 8351564 31%
---------------------------------------------------------------------------------------
NAGIOS check result:
/dev/shm: 0%used(0MB/938MB) /var: 32%used(3810MB/11967MB) /boot: 16%used(76MB/488MB) /home: 0%used(5MB/1952MB) /: 20%used(2351MB/11967MB) (<80%) : OK
On another host nagios says 88% but df says 94%
anybody come acros this?