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?

Cheers,
Ethan Shrago
Sr. System Administrator|SugarSync
+1.510.701.1203
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20140716/aba52381/attachment.html>


More information about the Help mailing list