RE: use check_http to go CRIT on 404s?

"Pietan, James J (HSS)" <[email protected]> Wed, 16 Jul 2014 18:59:08 +0000
Newsgroups gmane.network.nagios.plugins
Message-ID <771D5562AE010848AF66B106525964856D49390A__3989.05182159997$1405537171$gmane$org@SOAJNUEXMB4.soa.alaska.gov>
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-BzZFE/[email protected]] On Behalf Of Ethan Shrago
Sent: Wednesday, July 16, 2014 10:48 AM
To: help-BzZFE/[email protected]
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?

Cheers,
Ethan Shrago
Sr. System Administrator|SugarSync
+1.510.701.1203