check_http and unauthorized.
Tom Throckmorton
throck at duke.edu
Thu Aug 12 17:23:56 CEST 2004
On 08/11/2004 07:25 AM, Jan Johansson wrote:
>Is it possible to "accept" an error?
>
>hooch:/usr/share/doc/nagios-text# /usr/lib/nagios/plugins/check_http
>portal-1
>HTTP WARNING: HTTP/1.1 401 Unauthorized
>
>I cant make the nagios box auth since it is a smart-card-only system,
>but can I tell check'_http to "accept" this return code as "ok"?
>
>
Jan, I have a similiar situation, checking sites that require
authentication. I found that in some cases, I could find a url on the
web server that I could get to w/out authentication, e.g. the login page
;-) I then included the url in my check definition, like so:
check_command check_http!-u!/goauth.html
Now i'm getting an OK instead of a WARNING. Though this doesn't
actually check if authentication for this web site is working, it does
indicate whether or not the web server is serving requests properly,
which sounds like your concern at the moment.
Hope this helps,
-tt
--
Tom Throckmorton
Systems and Core Services
Duke University - OIT
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list