Page 1 of 1

Restart service actions

Posted: Wed Mar 09, 2016 2:14 pm
by rburger
Hello,

I'm trying to get an action to restart a service manually, like an iisreset or just a windows service. I have been able to create an event handler to restart
the service when it fails but not on demand. I need to be able to give this ability to our Noc. Any help would be awesome. :?:
ServiceRestartActions.docx

Re: Restart service actions

Posted: Wed Mar 09, 2016 2:20 pm
by hsmith
Have you taken a look at this document?

https://support.nagios.com/kb/article.php?id=187

Re: Restart service actions

Posted: Wed Mar 09, 2016 2:52 pm
by rburger
Hello,

I don't believe that is what I'm looking for, In the details of the service that I'm monitoring in the quick actions
window I would like to be able restart, stop or start the service from there.

Thanks

Re: Restart service actions

Posted: Wed Mar 09, 2016 3:33 pm
by hsmith
We have a document for that too! https://support.nagios.com/kb/article.php?id=204

As far as the scripting for restarting it, that's not something we have readily available.

Re: Restart service actions

Posted: Thu Mar 10, 2016 3:23 pm
by WillemDH

Re: Restart service actions

Posted: Thu Mar 10, 2016 5:59 pm
by ssax
Thanks Willem!

rburger, look at the bottom of the second document that hsmith posted and it will show you all available macros, I believe you also have to use the full path to your script (you can't use $USER1$).