check_http and unauthorized.

Trev Thorpe trevor at yarde.com
Mon Aug 16 16:55:57 CEST 2004


Hey Mark,

  Perfect timing on this one =)

  Works like a charm and makes perfect sence.

  Thanks !

-- Trev

> 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"?
>>
>>
>
> Sure, just define your check command like so:
>
> define command{
>     command_name    check_http_401
>     command_line    $USER1$/check_http -H $HOSTADDRESS$ -e 401
> }
>
> Then, you can use check_http_401, which will expect a 401 result code
> and exit with an OK status.
>
> Mark
>
> --
> Mark D. Nagel, CCIE #3177 <mnagel at willingminds.com>
> Principal Consultant, Willing Minds LLC
> tel: 714-630-4772, fax: 714-630-4773, web: http://www.willingminds.com/
>
>
>
> -------------------------------------------------------
> 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
>


-- 
Trevor Thorpe       | Yarde Metals, Inc.
Lead TSA



-------------------------------------------------------
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