We have a web page that management wants monitored to make sure it is up and can be accessed from a particular application server. The problem is that this webpage requires a login and the Powers That Be don't want to give the account we use for monitoring access to it. I thought "Fine, I'll just have Nagios check if a 403 error is returned."
Unfortunately, it seems that because it is an error code, Nagios insists upon reporting it as a Warning level problem even though it is receiving the expected result.
Here is the result:
Code: Select all
/usr/local/nagios/libexec/check_http -H <ServerName> -u <https://URL> -e 403
HTTP WARNING: Status line output matched "403" - HTTP/1.1 403 Forbidden - 1412 bytes in 0.083 second response time |time=0.082799s;;;0.000000 size=1412B;;;0
Thanks!