<div dir="ltr">You need 64-bit counter and there is none for uptime. Since once every 500 days is rare people just deal with such extra alert. Most people for one reason or another reboot their servers more often though.<div><br></div><div>If you want to write a work-around it would be one that uses previous run uptime data and if its near wrap time ignores the situation.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 23, 2014 at 12:06 AM, Florian Lohoff <span dir="ltr"><<a href="mailto:f@zz.de" target="_blank">f@zz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
i am currently monitoring sysuptime via check-snmp<br>
<br>
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $_HOSTCOMMUNITY$ -P 2c -o .1.3.6.1.2.1.1.3.0 -c 90000:<br>
<br>
The 90000 is basically that i want the first 15 Minutes after boot the alarm<br>
to be critical.<br>
<br>
Now obviously with a 32 bit counter this counter wraps at least every 497 days.<br>
<br>
flo@p2:~$ echo $[ 2**32 / 100 / 86400 ]<br>
497<br>
<br>
This causes the above statement to actually show a reboot/sysuptime ALARM.<br>
<br>
I dont see any way around this as the wrap depends on the last value found<br>
via check_snmp so it would need some kind of persistence of data.<br>
<br>
Is there a better sysuptime check?<br>
<br>
Flo<br>
<span class="HOEnZb"><font color="#888888">--<br>
Florian Lohoff <a href="mailto:f@zz.de">f@zz.de</a><br>
</font></span><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iQIVAwUBVEio7JDdQSDLCfIvAQpycQ//ayLcurUViD5vBKpZ/6zVebm7y7pxtXL/<br>
SNW6pac9ls0y8gsJjSolHrVobHR+Xtdz/gl2pA86wI4+l1txJlAirpocuw8QHtam<br>
Hg39ndTbryvDkxekUdxJi0Alue21kKqMHGnRj8B5Utpd8YLqQ6WhGQVHZR4Qpsiq<br>
m49BEmCJyvQsQZPfOm4wgeAL1uqzXKIbxT1fiL4lghybFyKd8DE5QdzBGnEjJUSM<br>
CEKMC/10ItSUd7CLaV6lfXBG+I1RbWJuyHPhpm8tbzvQtftnrk2PDG9cdjaMtSu1<br>
MVnnh46gMuiDzWK6CQPJiQEAeIdHGb1r2roPnUEjJT3vQvZLA9yIEFuwyVzAIA6V<br>
aX5QZLhMoB0JVmU2sUMWqrZXBnrI7tLuHThdEQkOIvSfTbwNIAQsTwKSAwiLjjPC<br>
BvnBrNNHu17S3n3KCMEzB1JZRT769ZpCkrheSGVjCj5eDcVf/dD0ENJndUWyZFOp<br>
tXnB/7LkNlO4tO8ZrCStWSOBbXkohdUEVLNkvMRDniNWHsOgr36EdKLifMml11Mj<br>
C7e8KsKUOPU9clydynbSosVRu62NR4ythwV1l2Tzgkq/SFI1QB704iA/Wc2rKzAz<br>
ifwfi4NFH5RanWHWzgQSkWruEMs8U1dRbUmqPV5hiW/M4nHNt+4yLBlLHqtiJ9UQ<br>
0fhGGhnz9EQ=<br>
=9UBV<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br></div>