Page 1 of 1

check_http alert levels

Posted: Wed Feb 15, 2012 3:21 pm
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

Re: check_http alert levels

Posted: Wed Feb 15, 2012 5:08 pm
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