Problems running eventhandler
Jon Angliss
jon at netdork.net
Thu Aug 7 03:58:51 CEST 2008
On Tue, 05 Aug 2008 15:38:48 +0200, Nicole Hähnel
<ml at nicole-haehnel.de> wrote:
>Hi,
>
>I'm running nagios 3.0.3 on rhel5 2.6.18-92.1.6.el5.
>I have written a script to restart strongswan on our vpn gateways.
>But I can not get this eventhandler to work.
>I only see (null);(null);(null); in eventlog instead of CRITICAL;SOFT;3
>oder something else.
>
>I tested the script as user nagios and it works.
>
>Where is the fault?
[..]
> ssh -i id_dsa $4 "/etc/init.d/ipsec restart"
[..]
You're calling ssh without a full path. It could be possible that
nagios is starting up without having a full PATH env defined, causing
it not to find ssh. You could add some debugging to the script to
find out:
echo $PATH > /tmp/evthandle.log
Check to see if the output is sane, and includes a path to SSH.
--
Jon Angliss
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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