event handlers on remote host

Demetri Mouratis dmourati at cm.math.uiuc.edu
Wed Sep 22 09:02:05 CEST 2004


On Wed, 22 Sep 2004, senthil wrote:

> Hi,
>  I am currently working on using Nagios to monitor a remote host.
> Made use of the NRPE plugins to montior the different services on a
> remote host.
> I tried event handlers and it works fine in the localhost.But if I want
> to employ event handlers on a remote machine say to start a HTTP server
> when the service moves on to hard state ? what can i do??

Setup SSH to allow for non-interactive login to the remote machine and
restart the http daemon.

You'll probably want to configure a way for the nagios user to restart
httpd.  Sudoers would help there.  Otherwise, you'll end up having to SSH
as root to restart it.

Hope that helps.
---------------------------------------------------------------------
Demetri Mouratis
dmourati at linfactory.com



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list