I am new to linux as well as Nagios. I have Nagios set up and it is monitoring a few test servers for some basic services. I have read and read and cannot find how to start a stopped service on Windows Server. I did make sure event handler was enabled, but the documentation refers to scripting the start up of linux services, not Windows. I figured I can create a .bat file to do a simple net start, but how does Nagios run it? Is it something like this? (example of the server service)
service_description Server Service
Than for the handler command:
(This is where I am unsure. Do I give it a path to the .bat file?)
Is nagios able to run this file from the host PC. In these linux script examples I am unsure if the script is on the Nagios server of the host server. Any help would be awesome. Hopefully I’m close to accurate here.