Home Directory Plugins Operating Systems Windows NRPE Restart Windows Services VBS

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Restart Windows Services VBS

Rating
0 votes
Favoured:
1
Hits
155810
Files:
FileDescription
eventhandler_restart_winservice.vbs.txtB Restart Windows Service
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
A VBScript which will restart a windows service automaticaly via NRPE NT (with logs).
Ce script VBScript va etre declenche par une commande "Event Handler" prealablement configuree sous Nagios.

Des que le status du service sous Nagios changera (de "OK" vers "CRITICAL" par exemple), NRPE NT va alors lancer ce script, qui lui meme va alors analyser le status du service Nagios + le status du service sous Windows et va alors le redemarrer si besoin.

Ce script va egalement generer des logs afin d'analyser les operations effectuees par ce VBScript.

Commande a ajouter dans le fichier nrpe.cfg :

command[eventhandler_restart_winservice]=cscript //nologo "C:Program FilesNagios NRPE Agentbineventhandler_restart_winservice.vbs" $ARG1$ $ARG2$ $ARG3$ $ARG4$


Plus de details prochainement sur : http://cheupi.free.fr