restart service from web-interface

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

restart service from web-interface

Post by vvz »

Hi!

I have nagios running on remote site.
Everything works just fine.

I've created an eventhandler, which should restart service on remote nagios client if it's down. But it not always helps me to solve the problem due some reasons.

now the question - is it possible to restart service on remote host using nagios web-interface?

If yes, could you give me a link.

Thank you
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: restart service from web-interface

Post by slansing »

There is nothing that we have created directly to do this, you could build it in I'm sure, but you would need to tie it with an SSH command to access that system and run your commands. What is not working properly with your event handler?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: restart service from web-interface

Post by eloyd »

We do a lot of work with remote hosts via SSH. Never tried restarting Nagios with it, but that's really you're only way. Then you have to build the script around the command, then you have to build the web site around the script, then you have to make sure your web site is authenticated so you only have people who are supposed to be restarting things actually restarting things, and then you have to manage those users and passwords.....

Really, why bother? If your event handler is capable of restarting things when they are broken, why would you want to restart them when they are working? 8-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

Re: restart service from web-interface

Post by vvz »

Thank you guys,
I think we could close this thread
Locked