<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText10187 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>if you're trying to check windows boxes, I wouldn't use this snmp value because I don't think it's set reliably.  I've been using "check_nt -v UPTIME" for those (but i still think it resets correctly at reboot).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Also, it may not say "0 days" (so you could look to see if "days" doesn't show up); it may just give a time such as the following:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2><host> libexec # snmpget -v1 -c <string> <host> hrSystemUptime.0</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (8082663) 22:27:06.63</FONT></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>you'll have to play around w/ it, I guess (sorry for the top-posting).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>- </FONT><FONT face=Arial color=#000000 size=2>Josh</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-bounces@lists.sourceforge.net on behalf of Yost, Josh<BR><B>Sent:</B> Thu 11/29/2007 12:47 PM<BR><B>To:</B> chris serafin; Nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] How to get reboot messages<BR></FONT><BR></DIV>
<DIV dir=ltr>
<DIV id=idOWAReplyText48718 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>hi,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>   One simple idea is to use the Uptime number from SNMP ("hrSystemUptime.0"), and if that ever says "0 days" then you get an alert.  I have a script that does a little more than this, but that's the basic idea.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>you should be able to do this with check_snmp (or a quick perl script that uses snmpget and does regular expression matches).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>- </FONT><FONT face=Arial color=#000000 size=2>Josh</FONT></DIV></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-bounces@lists.sourceforge.net on behalf of chris serafin<BR><B>Sent:</B> Thu 11/29/2007 11:59 AM<BR><B>To:</B> Nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users] How to get reboot messages<BR></FONT><BR></DIV>
<DIV>I have a bunch of devices which alert me fine up/down, but I'm looking to find how to get messages when they reboot. Solarwinds does this for me now, but I'm trying to move off this solution, but my boss want reboot messages as well as up/downs for the devices... <BR><BR>Any ideas?<BR><BR>Chris Serafin<BR><A href="mailto:chrisserafin@gmail.com">chrisserafin@gmail.com</A><BR></DIV></DIV></BODY></HTML>