Event handler

Aaron Devey adevey at omniture.com
Thu May 15 01:35:43 CEST 2008


Drew Weaver wrote:
> <?
> $a = $argv[0];
> $b = $argv[1];
> $c = $argv[2];
> $d = $argv[3];
> $handle = fopen(“output”, “a+”);
> $content = “$a - $b - $c - $d\n”;
> $go = fwrite($handle, “$content”);
> ?>

You'll want to specify the full path to the 'output' file.  Nagios won't
necessarily call it from the same working directory that you used from
the shell.

-Aaron

-------------------------------------------------------------------------
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