Im trying to stop these messages in my nagios log:
SERVICE ALERT: servername;HTTP_AUTH;WARNING;HARD;4;HTTP WARNING: HTTP/1.1 401 Authorization Required
in the commands.cfg I added this definition
# 'check_http' command definition
define command{
command_name check_http_auth
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ -a username
assword
}
restarted nagios and keep getting that error. The username
assword are valid for the login credentials for logging into the webpage. The website is a forum with a forum login, not a .htaccess pop up box type authorization. I put the password as plain text.
In my host definition file I have this:
define service{
use local-service ; Name of service template to use
host_name hostname
service_description HTTP_AUTH
check_command check_http_auth
notifications_enabled 0
}
Its in the section I have for the server "hostname"
Any advice? Thanks