Per your suggestion I'm trying to suppres the message "HTTP WARNING: HTTP/1.1 401 Authorization Required" with the syntax check_http -e 401<br><br>The following is how I defined the service inside services.cfg
.<br><br>Is this correct ? I did this and I'm having configuration errors when starting the nagios service.<br><br>define service{<br> use basic-service<br> name http-service
<br> notification_options c,r<br> check_command check_http -e 401<br> register 0<br> }<br><br>define service{<br> use http-service
<br> service_description HTTP<br> contact_groups admins<br> host_name domainname.tld<br> }<br><br><br><br><br><div><span class="gmail_quote">On 5/14/07,
<b class="gmail_sendername">Hugo van der Kooij</b> <<a href="mailto:hvdkooij@vanderkooij.org">hvdkooij@vanderkooij.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 14 May 2007, Richard Solid wrote:<br><br>> How can I avoid getting this message?<br>><br>> HTTP WARNING: HTTP/1.1 401 Authorization Required<br>><br>> The page i'm monitoring has a username and password but I have no need to
<br>> login while monitoring. How can I avoid this?<br><br>Change the webserver an allow nagios to access it unauthenticated.<br>(I would not recommend this.)<br><br>Or allow 401 responses to be valid responses.<br> -e, --expect=STRING
<br> String to expect in first (status) line of server response (default: HTTP/1.)<br> If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)<br><br>Or send along a username/password combo so you know that part works as
<br>well.<br> -a, --authorization=AUTH_PAIR<br> Username:password on sites with basic authentication<br><br><br>Hugo.<br><br>--<br> <a href="mailto:hvdkooij@vanderkooij.org">hvdkooij@vanderkooij.org</a>
<a href="http://hugo.vanderkooij.org/">http://hugo.vanderkooij.org/</a><br> This message is using 100% recycled electrons.<br><br> Some men see computers as they are and say "Windows"<br> I use computers with Linux and say "Why Windows?"
<br> (Thanks JFK, for the insight.)<br><br>-------------------------------------------------------------------------<br>This SF.net email is sponsored by DB2 Express<br>Download DB2 Express C - the FREE version of DB2 express and take
<br>control of your XML. No limits. Just data. Click to get it now.<br><a href="http://sourceforge.net/powerbar/db2/">http://sourceforge.net/powerbar/db2/</a><br>_______________________________________________<br>Nagios-users mailing list
<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>