[Nagiosplug-devel] check_http and 403 Error
Andrew Burdyug
buran83 at gmail.com
Mon Dec 8 12:34:49 CET 2008
Hello, nagiosplug-devel.
How I can exclude "403 Error" from errors demanding attention
'check_http' and thus one command to check the hosts
returning HTTP/1.1 200 OK and HTTP/1.1 403 Forbidden.
If I use /opt/nagios/libexec/check_http -I $_HOSTNGINX_IP$ -p
$_HOSTNGINX_PORT$ -e 403 for hosts which return 403 Error:
HTTP OK HTTP/1.1 403 Forbidden - 366 bytes in 0.250 seconds |time=0.250188s;;;0.000000 size=366B;;;0
BUT for host which returning HTTP/1.1 200 OK:
HTTP CRITICAL - Invalid HTTP response received from host
- It is true.
But I do not wish to do for half of hosts check by such command: /opt/nagios/libexec/check_http -I
$_HOSTNGINX_IP$ -p
$_HOSTNGINX_PORT$ -e 403
and for another such:/opt/nagios/libexec/check_http-I $ _HOSTNGINX_IP $-p $ _HOSTNGINX_PORT$
and for earlier it is not known, what of them how to check ... :(
How I can execute all hosts checking in one command:
/opt/nagios/libexec/check_http ..... ?
--
Best Regards, Adrew B.
ICQ: 410305724, 488000016
E-Mail: buran83 at gmail.com
More information about the Devel
mailing list