I doubt you can use sockets over NFS, someone correct me if i am wrong.
What you could do is to execute the script on the nagios host, via ssh.
If you normaly do this on the nagios host: scheduledowntine.sh host ServerA 13:00 14:00
You could do this on a remote machine: ssh nagioshost "scheduledowntine.sh host ServerA 13:00 14:00"
You would be prompted for a password every time you do this, but you
could use rsa/dsa keys, then there would be no need to enter a password each time.
Safe and simple.... :)
Cheers,
Peter
Iphtashu Fitz wrote:
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.
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?
------------------------------------------------------------------------- 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 http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Nagios-users mailing list Nagios-users@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
------------------------------------------------------------------------- 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 http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________ Nagios-users mailing list Nagios-users@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