Restart Windows program with Nagios when check fails?

glynn.seymour at bayerbbs.com glynn.seymour at bayerbbs.com
Wed May 2 17:40:48 CEST 2007


If you're using NSClient++, you could do this (almost) via a local batch 
or vb script, called as a command - I do something similar with services 
set to automatic start that have stopped - it attempts a restart before 
returning a Critical state to Nagios if a restart also fails. Search for 
Check_Services by Ronald Van Vugt (Ta, Ronald!) - we ended up writing a 
similar thing in PERL and compiling it for some old NT4 boxes too. Should 
be adaptable for an EXE.
___________________________________________________________________________ 

Glynn Seymour 
Network Consultant 
BBS EMEA-IT UK 
Bayer plc, UK 


__________________________________________________________________________
Bayer plc is registered in England under number 935048. Registered Office: 
Bayer House, Strawberry Hill, Newbury, Berkshire RG14 1JA.   
The information contained in this e-mail is for the exclusive use of the 
intended recipient(s) and may be confidential, proprietary, and/or legally 
privileged.  Inadvertent disclosure of this message does not constitute a 
waiver of any privilege.  If you receive this message in error, please do 
not directly or indirectly use, print, copy, forward, or disclose any part 
of this message.  Please also delete this e-mail and all copies and notify 
the sender.Thank you. 

For alternate languages please go to http://bayerdisclaimer.bayerweb.com
__________________________________________________________________________

-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- 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