How to get reboot messages

Yost, Josh josh.yost at epsiia.com
Thu Nov 29 19:56:14 CET 2007


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).
 
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:
 
<host> libexec # snmpget -v1 -c <string> <host> hrSystemUptime.0
HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (8082663) 22:27:06.63
 
you'll have to play around w/ it, I guess (sorry for the top-posting).
 
- Josh

________________________________

From: nagios-users-bounces at lists.sourceforge.net on behalf of Yost, Josh
Sent: Thu 11/29/2007 12:47 PM
To: chris serafin; Nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] How to get reboot messages


hi,
   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.
 
you should be able to do this with check_snmp (or a quick perl script that uses snmpget and does regular expression matches).
 
- Josh
 

________________________________

From: nagios-users-bounces at lists.sourceforge.net on behalf of chris serafin
Sent: Thu 11/29/2007 11:59 AM
To: Nagios-users at lists.sourceforge.net
Subject: [Nagios-users] How to get reboot messages


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... 

Any ideas?

Chris Serafin
chrisserafin at gmail.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071129/fbc44081/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list