Authentication problem in nagios


#1

hi,

I am pretty new to linux. i am facing authentication problems nagios. when i go into localhost/nagios/ i get a authentication window but even after providing right credentials it does not allow me in. i have my .htaccess both /usr/local/nagios/share and /usr/local/nagios/sbin. can anyone please help me in shooting this problem.

thanks
venkata.


#2

you have htpasswd.users file in /usr/local/nagios/etc/ ?
if you don’t,try this command :
htpasswd -c /usr/local/nagios/etc/htpasswd.users
and then enter new password for this user.
if it doen’t help,habe a look at webserver error log with this command :
tail -f /var/log/httpd/error_log
check this file after you enter usrname & passwd for login to nagios.
if the error was about unabling to access the htpasswd file ,try to change the permission of this file by this command :
chmod 744 /usr/local/nagios/etc/htpasswd.users

i have the same problem but using above it is ok now.


#3

thanks for the info hamideh, i checked the error logs and i was getting mysql error. mysql user nagiosadmin not found:/nagios/ does this mean that i need to configure mysql as well.


#4

thanks guys i worked it out…i uninstalled mod_auth_mysql … thanks for your inputs


#5

I too had the exact same problem and exact same fix.