submitting external commands remotely
Peter Krüpl
peter at henet.dk
Wed Aug 23 16:57:49 CEST 2006
Hi,
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 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060823/8012c24d/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
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