negate plugin problems
Luca Corti
cortez at tiscalinet.it
Thu Aug 26 14:00:42 CEST 2004
On Thu, 2004-08-26 at 10:00 +0200, Luca Corti wrote:
> On Wed, 2004-08-25 at 19:09 +0200, Luca Corti wrote:
> > define command {
> > command_name check-host-not-alive
> > command_line $USER1$/negate "$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1"
> > }
I managed to solve this. The problem was with the negate timeout option:
Options:
-t, --timeout=INTEGER
Terminate test if timeout limit is exceeded (default: 9)
[keep this less than the plugin timeout to retain CRITICAL status]
If I interpret this correctly I have to set the timeout higher than the
wrapped plugin timeout. check_ping defaults to timeout 10, and negate
defaults to timeout 9. I modified check-host-not-alive to look like
this:
define command {
command_name check-host-not-alive
command_line $USER1$/negate -t15 "$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1"
}
and it seems to work.
Luca
CONFIDENTIALITY NOTICE
This message and its attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately, delete this message and do not disclose the contents to any other person, do not use it for any purpose or store or copy the information in any medium.
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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