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
The following is how I defined the service inside services.cfg.
Is this correct ? I did this and I'm having configuration errors when
starting the nagios service.
define service{
use basic-service
name http-service
notification_options c,r
check_command check_http -e 401
register 0
}
define service{
use http-service
service_description HTTP
contact_groups admins
host_name domainname.tld
}
On 5/14/07, Hugo van der Kooij <[EMAIL PROTECTED]> wrote:
On Mon, 14 May 2007, Richard Solid wrote:
> How can I avoid getting this message?
>
> HTTP WARNING: HTTP/1.1 401 Authorization Required
>
> The page i'm monitoring has a username and password but I have no need
to
> login while monitoring. How can I avoid this?
Change the webserver an allow nagios to access it unauthenticated.
(I would not recommend this.)
Or allow 401 responses to be valid responses.
-e, --expect=STRING
String to expect in first (status) line of server response (default:
HTTP/1.)
If specified skips all other status line logic (ex: 3xx, 4xx, 5xx
processing)
Or send along a username/password combo so you know that part works as
well.
-a, --authorization=AUTH_PAIR
Username:password on sites with basic authentication
Hugo.
--
[EMAIL PROTECTED] http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.
Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for the insight.)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users@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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users@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