Nagios help : to display when was my server lastrebooted.

Paul Weaver paul.weaver at bbc.co.uk
Thu Apr 10 14:50:28 CEST 2008


Uptime is a funny thing, it can go to zero for a number of reasons,
usually because a 32 bit counter has rolled over (after 136 years, 68
years, 500 days, 250 days, 49.7 days (win98 just stalled at this point),
or 25 days.

You can sometimes monitor the SNMP OID "htSystemUptime", which appears
on my linux, solaris and windows 2000 boxes. When this value decreases
to nearly 0, you've had a reboot, or the counter has rotated.

This value is probably the same value reported by "uptime" on a linux or
windows box. If you want to know when your system is available, you
could set a "check_ping" *service* on thie host, in nagios, running
every 30 seconds with retrys every 5 seconds. If the service goes away,
then there's a good chance it's rebooted itself.

If you suspect a reboot, look through the logs. In linux, run "last",
you should see a "reboot" user if the system has rebooted. In windows
check the Security or Applications logs from the suspected reboot time.

Perhaps you had a power failure which caused your box to reboot?

--
"Power corrupts. Power failure corrupts absolutely"
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of
Pallav.S.Gupta at relianceada.com
Sent: 10 April 2008 12:19
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios help : to display when was my server
lastrebooted.
Importance: High



Hi All

I want my nagios to display when was my windows/unix based system was
last rebooted , Is it possible to do so......since my Uptime is showing
that System Uptime 1day 1 hr but i haven't rebooted it . 






The information contained in this e-mail message is intended only for
the use of the individual or entity to which it is addressed. If you are
not the intended recipient, you should return it to the sender
immediately. Please note that while we scan all e-mails for viruses we
cannot guarantee that any e-mail is virus-free and accept no liability
for any damage caused by any virus transmitted by this email.

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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