force event_handler
Craig Stewart
Craig.Stewart at corp.xplornet.com
Tue Jun 14 16:58:50 CEST 2011
Marco,
I think what you want is the OCSP or OSHP command (Obsessive Compulsive
Service/Host Processor)
I think event handlers are more for taking corrective action. The
example I saw was to log into a web server and restart the apache
service when the check_web service went critical. I'm using the OHCP
command that uses send_nsca for every little thing, regardless of state.
That's the nature of the beast. Now, I'm sure you can tailor the
command to only send what you want.
I might be out in left field though.
Hope it helps.
Cheers!
Craig
Craig Stewart
Systems Integration Analyst
Craig.Stewart at corp.xplornet.com
Xplornet - Broadband, Everywhere
On 06/14/2011 11:16 AM, Marco Borsani wrote:
> Hi all
>
>
>
> I need to execute a command every time an host state or a service state
> change (to use send_nsca).
>
> I supposed was a normal behaviour, but something is going wrong…
>
> Right now, the command configured in “event_handler” run only when the
> state changes from OK to CRITICAL … never from CRITICAL to OK
>
>
>
> Any idea ?
>
> Thanks
>
> Marco
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
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