Sorry to revive an old thread, but I started thinking about this too and remembered seeing it come across the list, so I dug it up.<br><br>Mark, did you ever find a solution to your problem?  Have you tried using check_by_ssh (<a href="http://nagiosplugins.org/man/check_by_ssh">http://nagiosplugins.org/man/check_by_ssh</a>)?  I haven't looked at it in depth, but it looks like you can use it to call any command on the remote server... so if, for example, you wanted to turn off service notifications for a host remotely, I think you could do something like this from your central monitoring server:<br>
<br>define command {<br>     command_name    silence_host<br>     command_line       $USER1$/check_by_ssh -H $ARG1$ -C 'printf "[%lu] DISABLE_HOST_SVC_NOTIFICATIONS;$ARG2$\n" `date +%s`' > /var/nagios/rw/nagios.cmd<br>
}<br><br>... where $ARG1$ is the IP address of the distributed monitoring server for the cluster in which the host resides, and $ARG2$ is the host_name of the server you want to silence.<br><br>I haven't tried or tested this, but I guess this is where I would start.  What do you think?  Did you find another way?<br>
<br>-Frank<br><br><br><div class="gmail_quote">On Fri, May 9, 2008 at 5:34 AM, Mark Clarkson <<a href="mailto:mark.clarkson@smorg.co.uk">mark.clarkson@smorg.co.uk</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<<a href="mailto:4822E699.1050708@googlemail.com">4822E699.1050708@googlemail.com</a>> <<a href="mailto:bf5858470e6dfb41b80b1632f034db19@smorg.co.uk">bf5858470e6dfb41b80b1632f034db19@smorg.co.uk</a>><br>
Message-ID: <<a href="mailto:3ed6bce8158aec2b1873e6a105082192@smorg.co.uk">3ed6bce8158aec2b1873e6a105082192@smorg.co.uk</a>><br>
X-Sender: <a href="mailto:mark.clarkson@smorg.co.uk">mark.clarkson@smorg.co.uk</a><br>
Received: from <a href="http://217.33.150.4" target="_blank">217.33.150.4</a> [<a href="http://217.33.150.4" target="_blank">217.33.150.4</a>] with HTTP/1.1 (POST); Fri, 09 May<br>
        2008 09:34:12 +0000<br>
User-Agent: RoundCube Webmail/0.1<br>
Content-Type: text/plain; charset="UTF-8"<br>
Content-Transfer-Encoding: 8bit<br>
<div class="Ih2E3d"><br>
On Fri, 09 May 2008 08:49:59 +0000, Mark Clarkson<br>
<<a href="mailto:mark.clarkson@smorg.co.uk">mark.clarkson@smorg.co.uk</a>> wrote:<br>
><br>
> I'm going to try ncmd from NagiosExchange.org. Thanks!<br>
><br>
<br>
</div>ncmd is not the right. The only thing I can see is NSCAFE but<br>
I'm a bit wary of using Java, or rather of creating another dependency.<br>
I guess I'll have to use ssh.<br>
<br>
Does anyone know of a tool to run external commands from a remote<br>
computer? Something like NSCAFE but not written in Java?<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
-------------------------------------------------------------------------<br>
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br>
Don't miss this year's exciting event. There's still time to save $100.<br>
Use priority code J8TL2D2.<br>
<a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br>