use check_http to go CRIT on 404s?
Pietan, James J (HSS)
james.pietan at alaska.gov
Wed Jul 16 20:59:08 CEST 2014
You may be able to use the -e option ...
check_http -I $HOSTADDRESS$ $ARG1$ -u $ARG2$ =e $ARG3$
ARG1 = IP address
ARG2 = website address
ARG3 = HTTP/1.1 200 (I believe this is the standard return code and what would be expected to be returned) so, if it gets any other code, it would return critical
From: Help [mailto:help-bounces+james.pietan=alaska.gov at monitoring-plugins.org] On Behalf Of Ethan Shrago
Sent: Wednesday, July 16, 2014 10:48 AM
To: help at monitoring-plugins.org
Subject: use check_http to go CRIT on 404s?
Is there anyway for this check to go CRIT for a 404 response? If not, do you have any plugin suggestions for this functionality, or should I just create my own script?
Sr. System Administrator|SugarSync
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Help