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: [EMAIL PROTECTED] on behalf of Yost, Josh
Sent: Thu 11/29/2007 12:47 PM
To: chris serafin; Nagios-users@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: [EMAIL PROTECTED] on behalf of chris serafin
Sent: Thu 11/29/2007 11:59 AM
To: Nagios-users@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
[EMAIL PROTECTED]

-------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to