Event Handlers
Pete Dewell
pete.dewell at volteurope.com
Thu Jul 22 18:23:58 CEST 2004
Try getting the handler to return some text on completion - say "Done"
or "Failed". I had a similar problem, resolved when the handler returns
a bit of text. It isn't used/displayed anywhere, but it does seem to help.
Pete Dewell
Chris Purcell wrote:
>>>Are you certain that you have full paths to mail/mailx and any other
>>>required programs in your script?
>>
>>Yes, the script works fine from the command line. Its a very simple
>>script that is just being used to test how Nagios event handlers
>>work....
>
>
> I also tested this with a simple bash script that simply writes a short
> message to a file in /home/nagios. The handler never runs at all.
>
> #!/bin/bash
> echo "nagios event handler" > /home/nagios/nagiostest
>
> Chris
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> 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
>
--
Technical Support/Analyst
Volt Europe
Tel : (+44) (0) 1737 774100
Fax : (+44) (0) 1737 772949
Mobile : (+44) (0) 777 1513066
E-mail pete.dewell at volteurope.com
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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