Page 1 of 1

restart service from web-interface

Posted: Wed May 28, 2014 11:47 am
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

Re: restart service from web-interface

Posted: Wed May 28, 2014 11:51 am
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?

Re: restart service from web-interface

Posted: Wed May 28, 2014 12:03 pm
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-)

Re: restart service from web-interface

Posted: Wed May 28, 2014 2:06 pm
by vvz
Thank you guys,
I think we could close this thread