nagios.cmd over nfs

kyle.odonnell at gmail.com kyle.odonnell at gmail.com
Wed Jan 23 15:02:33 CET 2008


Thanks for the pointers.

On 1/23/08, Thomas Guyot-Sionnest <dermoth at aei.ca> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 23/01/08 08:12 AM, kyle.odonnell at gmail.com wrote:
> > Success!
> >
> > Web Server-
> > cmd.c
> >
> > change:
> > fopen(command_file,"w")
> > to:
> > fopen("/path/to/cgi.pipe","a")
> >
> > Nagios Server-
> >
> > edit nagios startup script to:
> >
> > start)
> > touch /path/to/cgi.pipe
> > tail -f /path/to/cgi.pipe > /path/to/nagios.cmd
>
> Truncate it first to avoid replaying old commands:
>
> start)
> true >/path/to/cgi.pipe
> tail -f /path/to/cgi.pipe > /path/to/nagios.cmd
>
> > stop)
> > rm /path/to/cgi.pipe
>
> Useless as the file can be created by the cgi anyways...
>
> You should also monitor the size and make sure it doesn't grows up too much.
>
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHl0At6dZ+Kt5BchYRAnTlAKDj9zBA9EFgOLoNrg1ZGylthdUsuQCggux+
> ZyzkpkjWOMsQjdsuQp3arNE=
> =NAKF
> -----END PGP SIGNATURE-----
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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