Accepting HTTP 401?

Samantha Edwards sedwards at digifonica.com
Fri Feb 10 18:49:33 CET 2006


Hi All

Thanks to Marc for your speedy response!  Much appreciated.

Best,
.s

Marc Powell wrote:

>  
>
>>-----Original Message-----
>>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>>admin at lists.sourceforge.net] On Behalf Of Samantha Edwards
>>Sent: Friday, February 10, 2006 11:11 AM
>>To: nagios-users at lists.sourceforge.net
>>Subject: [Nagios-users] Accepting HTTP 401?
>>
>>Hello All
>>
>>First post so please bear with me. I am looking to see if there is
>>anyway that I would be able to have nagios accept a HTTP 401 as a
>>    
>>
>valid
>  
>
>>response from a server?  I'm running Nagios version 2.0b3 and have
>>    
>>
>only
>  
>
>>been sorting through - here's my command definition, which I believe
>>    
>>
>is
>  
>
>>generic
>>
>>define command{
>>        command_name    check_http
>>        command_line    $USER1$/check_http -H $HOSTADDRESS$
>>        }
>>
>>Any help would be greatly appreciated!
>>    
>>
>
>You would need to modify check_http.c around line 987 --
>
>/* client errors result in a warning state */
>else if (http_status >= 400)
>    die (STATE_WARNING, _("HTTP WARNING: %s\n"), status_line);
>
>Either comment out the else/die lines or modify them to specifically
>exclude the 401 response.
>
>--
>Marc
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
>_______________________________________________
>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
>
>  
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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