[Nagios-users] Making passive checks notify like activechecks--race condition?
Mark Plaksin
happy at usg.edu
Thu Aug 31 18:17:36 CEST 2006
"Morris, Patrick" <patrick.morris at hp.com> writes:
>> We want our passive checks to notify like active checks.
>> What if we make a plugin which does nothing but report the
>> current state (and description) of a service? Define it like
>> this in checkcommands.cfg:
>> define command{
>> command_name repeater
>> command_line $USER1$/repeater_homebrew $SERVICESTATEID$
>> $SERVICEOUTPUT$
>> }
>>
>> and the plugin itself is brain dead:
>> --------------------
>> #!/bin/sh
>>
>> exit=$1
>> shift
>>
>> echo $*
>> exit $exit
>> --------------------
>>
>> We run this plugin as an *active* check so that we get the
>> notification behavior we want and then a passive check to
>> actually check the service and submit results.
>
> I'm not sure what you're trying to accomplish here, but passive checks
> *do* notify like active checks.
>
> Maybe you just need to set max_check_attempts to "1" in your service
> definition?
They notify once when the state changes but they don't continue to notify
like active checks do. Either that or we're on drugs and have hosed up our
configuration :)
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
More information about the Developers
mailing list