[Nagiosplug-help] event handler not running
Mike Loud
mike.loud at comandsolutions.com
Fri Feb 4 16:12:26 CET 2011
Benny, I want to thank you for getting back to me so quickly. I kept
investigating after I sent the email, and I found the stupid little switch
that was causing it to not work. I looked at the messages log on the remote,
saw the could not complete ssl handshake error, and went back to my command
definition. Sure enough, the -n was in it trying to bypass ssl.... took that
out and bam, executes the script. It doesn’t appear to be carrying over the
variables like it should be but I am sure that is a quick fix or something I
can get. Thank you again for your quick help with this.
Mike
-----Original Message-----
From: C. Bensend
Sent: Friday, February 04, 2011 10:00 AM
To: nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] event handler not running
> Thank you, I fixed that and now I am no longer getting the error,
> everything
> APPEARS with no errors, however the small script on the remote side is not
> executing. The event log shows:
>
> Feb 4 09:42:37 nagios nagios: SERVICE EVENT HANDLER:
> mikel2;SSH;CRITICAL;SOFT;2;my_eventhandler!CRITICAL SOFT 2
>
> and on the remote machine if I su - nagios and run the script it runs
> fine.
> It is just a small echo script into a file, Im searching as much as I can
> for a reason why, but it now looks like everything should be working I
> would
> think, but the script just doesn’t execute. Any thoughts or things I can
> check to point me in a direction? I am going to keep reasearching. Thanks
> again for your help.
Please refresh my memory - how is this eventhandler supposed to be
executed on the remote host?
You say "on the remote machine if I su - nagios and run the script"
it works... But how is Nagios supposed to execute it on the remote
host? Via ssh? NRPE?
If you attempt to do it exactly how *Nagios* is configured to try,
what happens?
Benny
--
"Hairy ape nads." -- Colleen, playing Neverwinter Nights
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Help
mailing list