uptime monitoring via check_snmp / counter wrap

Florian Lohoff f at zz.de
Thu Oct 23 09:06:20 CEST 2014


Hi,
i am currently monitoring sysuptime via check-snmp

        command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $_HOSTCOMMUNITY$ -P 2c -o .1.3.6.1.2.1.1.3.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 ]
497

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? 

Flo
-- 
Florian Lohoff                                                 f at zz.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20141023/7dc6b721/attachment.sig>


More information about the Devel mailing list