uptime monitoring via check_snmp / counter wrap
f at zz.de
Thu Oct 23 09:06:20 CEST 2014
i am currently monitoring sysuptime via check-snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $_HOSTCOMMUNITY$ -P 2c -o .18.104.22.168.22.214.171.124.0 -c 90000:
The 90000 is basically that i want the first 15 Minutes after boot the alarm
to be critical.
Now obviously with a 32 bit counter this counter wraps at least every 497 days.
flo at p2:~$ echo $[ 2**32 / 100 / 86400 ]
This causes the above statement to actually show a reboot/sysuptime ALARM.
I dont see any way around this as the wrap depends on the last value found
via check_snmp so it would need some kind of persistence of data.
Is there a better sysuptime check?
Florian Lohoff f at zz.de
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 828 bytes
Desc: Digital signature
More information about the Devel