event handler script not executing
Marc Powell
marc at ena.com
Wed Mar 10 19:44:12 CET 2010
On Mar 10, 2010, at 11:29 AM, Rick Garland wrote:
> Hi Marc:
>
> In the script I have it doing a couple of arcane things for testing.
> I have it touch a file called 'test' and I have it echo the macro values
> to a file as well.
> These are successful.
> When trying to launch from nagios these files are not present.
Are the paths hard-coded in your script? Is the directory writable by nagios? Is the script executable? Is the magic line present and well-formed?
Also try changing the event_handler parameter in the service definition from
event_handler remount-nfs!$SERVICESTATE$!$SERVICESTATETYPE$!$SERVICEATTEMPT$
to
event_handler remount-nfs
The other parameters aren't being used in your command{} definition.
> I am unable to find any post from yesterday that would contain any
> suggestions that were provided.
Ok, so I meant to say 'the other day when you posted originally' - http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31297.html
--
Marc
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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