Restart Windows Service if down...

Andreas Ericsson ae at op5.se
Thu Jun 17 10:41:04 CEST 2004


Or you could do it with nrpe_nt. Just issue an
int 0x10
in assembly and the machine will reboot. You might want to add a 
diskflush call before that though.

Martin, Stanley G [CGEY Contractor for Sprint] wrote:
> The only way I've been able to do it is to have something on the Windows box that you can call from Nagios and pass the service name to restart. I have a daemon that is written in Perl that runs on our Windows boxes and we just call that using an Event Handler script.
> 
> Stanley G. Martin
> System Administrator
> Sprint - EAS Business Intelligence 
> Stanley.G.Martin at mail.sprint.com
> 
> 
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Wengrzik, Andreas
> Sent: Wednesday, June 16, 2004 9:32 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Restart Windows Service if down...
> 
> Hello!
> 
> Anyone knows if it´s possible to start or restart services in windows if some service runs into failure??
> 
> Thanks for your help!
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> 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
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
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