<!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>
Hi,<br>
<br>
    I doubt you can use sockets over NFS, someone correct me if i am wrong.<br>
    What you could do is to execute the script on the nagios host, via ssh.<br>
<br>
    If you normaly do this on the nagios host: scheduledowntine.sh host ServerA
13:00 14:00<br>
<br>
    You could do this on a remote machine: ssh nagioshost "scheduledowntine.sh
host ServerA 13:00 14:00"<br>
<br>
    You would be prompted for a password every time you do this, but you<br>
    could use rsa/dsa keys, then there would be no need to enter a password
each time.<br>
<br>
    Safe and simple.... :)<br>
<br>
    Cheers,<br>
    Peter<br>
<br>
Iphtashu Fitz wrote:<br>
<blockquote type="cite"
 cite="mid96527af60608230740u5d1707d6nc6c72a460cc11021@mail.gmail.com">I
have a handful of scripts that I've written that submit commands to our Nagios
monitor remotely, so I'm pretty comfortable with working with external commands. 
I now need to be able to submit external commands from an external host. 
In a nutshell I want to schedule downtime of specific services based on recurring
tasks that are run on those remote machines.  I've written a script that
will schedule service downtime and it works fine when I run it on the nagios
server.  I tried exporting the nagios/var directory via NFS and mounted it
from one of the remote machines so that they could write to  nagios.cmd. 
But when I run the script on these remote machines Nagios never responds
to those external commands.  The script appears to successfully write to
the NFS mounted nagios.cmd but Nagios never gets the message, and it never
shows up in  nagios.log.  <br>
  <br>
Is it possible for a remote machine to communicate with Nagios this way (NFS
mounted nagios.cmd), or is there a better approach for submitting external
commands from an external host?<br>
  
  <pre wrap="">
<hr width="90%" size="4">
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a></pre>
  <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
Nagios-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null</pre>
</blockquote>
<br>
</body>
</html>