nagios and mysql auth

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
leap77
Posts: 1
Joined: Wed Apr 04, 2012 5:29 am

nagios and mysql auth

Post by leap77 »

Dear,

I've configured Apache to mysql_auth, and when accessing the error from apache is:

[Wed Apr 04 09:44:38 2012] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Wed Apr 04 09:46:02 2012] [error] [client 89.251.225.30] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured

How to config? How to config Nagios to accept this auth? It's possible as i've founded but no docs how to config.

In apache, i've modified the mysql_auth.conf to load the module mysql
In apache too, i've modified the nagios.conf to this settings:

Alias /nagios "/usr/share/nagios/html"

<Directory "/usr/share/nagios/html">
# SSLRequireSSL
#Options None
Options +Indexes FollowSymLinks MultiViews
#AllowOverride None
AllowOverride AuthConfig Options FileInfo Limit
Order allow,deny
Allow from all

## mod auth_mysql
AuthType Basic
AuthName "restricted zone"
AuthBasicAuthoritative Off
AuthMySQLAuthoritative on
AuthUserFile /dev/null
AuthMySQLDB bdauth
AuthMySQLHost localhost
AuthMySQLUser authuser
AuthMySQLPassword Pwd
AuthMySQLUserTable users_nagios
AuthMySQLNameField user
AuthMySQLPasswordField pass
#AuthMySQLEmpty_Passwords off
AuthMySQLPwEncryption none
# Standard auth stuff
#AuthType Basic
#AuthName "restricted zone"

Require valid-user
</Directory>

Thanks in advance !!
Locked