upgrade to 2.0b1 / event handlers broken
James
jkmoseley at jump.net
Wed Jan 19 05:49:35 CET 2005
Yeah, using full paths to executables (especially when a process is running as a
user that you may not have setup a profile for...) is good. Unfortunately,
these shell scripts don't work with or without an executable at the beginning
of the command line...
James
Quoting Steve Shipway <s.shipway at auckland.ac.nz>:
> James Mosley wrote:
> >[1106090538] SERVICE EVENT HANDLER:
> >tx-svr-1;NAGIOS;CRITICAL;HARD;2;handle-master-proc-event
> >[1106090658] SERVICE EVENT HANDLER:
> >tx-svr-1;NAGIOS;OK;HARD;2;handle-master-proc-event
> >
> >However, the event scripts simply aren't being called by the
> >nagios process as verified by modifications I made to them for
> >testing purposes. Running the EV scripts manually works, so
> >it's not broken scripts. Addtionally, all the config
>
> I've had similar behaviour under Nagios 1.2. An event handler script
> (written in perl) ran fine from the command line, but not as an event
> handler.
>
> I found that, if I specified the perl executable on the commandline, or even
> wrapped it in a shellscript, it worked:
> command_line /usr/bin/perl $USER2$/eh-send-bb.pl $SERVICESTATE$
> $STATETYPE$ $SERVICEATTEMPT$ $HOSTADDRESS$ "$SERVICEDESC$"
>
> No idea why, but this might help you if the scripts are perl or shell
> scripts?
>
> Steve
>
> ---
> Steve Shipway: ITSS, University of Auckland
> Email: s.shipway at auckland.ac.nz Web: http://www.steveshipway.org/
> ** We can only discover new oceans when we have the **
> ** courage to lose sight of the shore. **
>
----------------------------------------------------
This mail sent through jkm.NET secure webmail server
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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