<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
thanks for the quick response dem.<br>
Im currently working on that.<br>
But as an alternative can we pass the state arguments using NRPE daemon
along with<br>
the command such that the state checks can be done in the remote <br>
machine itself and the restart-script can be executed there itself
using the <br>
check_command in the nrpe.cfg file such that we dont have to ssh and <br>
restart the service.<br>
<br>
Regards,<br>
Senthil<br>
<br>
<br>
Demetri Mouratis wrote:<br>
<blockquote type="cite"
cite="midPine.LNX.4.44.0409220157150.17163-100000@zaphod.math.uiuc.edu">
<pre wrap="">On Wed, 22 Sep 2004, senthil wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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??
</pre>
</blockquote>
<pre wrap=""><!---->
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
</pre>
</blockquote>
<br>
</body>
</html>