check_http alert levels

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cmort
Posts: 11
Joined: Tue Feb 07, 2012 3:32 pm

check_http alert levels

Post by cmort »

I am trying to get alerts from the Web Site Url checker for a warning and critical timeout for checking a site. I have added the -w and -c parameters to the argument line but I am not getting a warning level for the site when the response is longer that 1 second for a warning or 3 seconds for a critical. I only get the default 10 second time out alert? any help is greatly appreciated.

$ARG1$ = -H 199.107.238.196 -f ok -I 199.107.238.196 -u "/" -p 80 -w 1 -c 3
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_http alert levels

Post by lmiltchev »

You should change the "-f" flag from "ok" to "follow" - see this:
-f, --onredirect=<ok|warning|critical|follow>
How to handle redirected pages
Try this:

$ARG1$ = -H 199.107.238.196 -f follow -I 199.107.238.196 -u "/" -p 80 -w 1 -c 3
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked