Restart service actions

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rburger
Posts: 4
Joined: Wed Mar 09, 2016 12:21 pm
Location: DC
Contact:

Restart service actions

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Restart service actions

Post by hsmith »

Have you taken a look at this document?

https://support.nagios.com/kb/article.php?id=187
Former Nagios Employee.
me.
rburger
Posts: 4
Joined: Wed Mar 09, 2016 12:21 pm
Location: DC
Contact:

Re: Restart service actions

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Restart service actions

Post 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.
Former Nagios Employee.
me.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Restart service actions

Post by WillemDH »

Nagios XI 5.8.1
https://outsideit.net
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Restart service actions

Post 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$).
Locked