Notify when a Windows Server reboots

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Notify when a Windows Server reboots

Post by ecarrasq »

System Info
Linux Distribution and version?

Linux fwapp003.wvus.org 2.6.18-308.1.1.el5 #1 SMP Wed Mar 7 04:17:30 EST 2012 i686 i686 i386 GNU/Linux

32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

No.

Question:
How can I monitor and send a notification when a Windows Server reboots, and/or rebooted?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notify when a Windows Server reboots

Post by scottwilkerson »

Off the top of my head a couple things come to mind.

by default the Windows wizards do report uptime, so this would be a guage when the last time the system rebooted but doesn't have warning and critical levels

However, if you have NRPE enabled on your NSClient++ you can use
http://www.nsclient.org/nscp/wiki/CheckUpTime

this will allow you to do a warning or critical if the uptime is less than a certain threshold
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Notify when a Windows Server reboots

Post by ecarrasq »

I got the following error message:
Output:
Can't locate Nagios/Plugin/Getopt.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/nagios/libexec/check_uptime.pl line 21.
BEGIN failed--compilation aborted at /usr/local/nagios/libexec/check_uptime.pl line 21.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notify when a Windows Server reboots

Post by scottwilkerson »

The plugin you are referencing is not what I was suggesting, and appears to need additional perl packages, not to mention I don't know where you got it from.

I was suggesting using the builtin check using the NSClient++ Agent, the usage is documented here.
http://www.nsclient.org/nscp/wiki/CheckUpTime
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Notify when a Windows Server reboots

Post by ecarrasq »

Sorry, I was working on a couple of different options, and got the suggestions crossed. The error message I pasted on this thread was pertaining to the, "check_uptime with notify" from:

http://exchange.nagios.org/directory/Pl ... fy/details

Back to your suggestion, I have to check the nsc.ini to see if I have the NRPE enabled.

Will keep you posted.
Thanks,
Eddie
Locked