Authentication on nagios


#1

i wanna have authentication for nagios .
i set use authentication option to 1 in cgi.cfg and create .htaccess in both share/ and sbin/ subdirectories .
i also used ’ htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin ’ to set password for nagiosadmin user .
now i have been asked for entering usrname ans passwd for accessing the nagios on server. but when i enter nagiosadmin and passwd it asks me again for entering them .
why is it so ?


#2

follow all the instructions about authentication and check them again to be sre you didi it correctly. :slight_smile:
Quite easy you mised a step.

Luca


#3

I recently had a heck of a time with getting a fresh nagios install on CentOS to work. I had your problem until I uninstalled mod_auth_mysql.
Apache kept complaing about user “whoever” not found in mysql db. Well, of course, I want the users in the text file /usr/local/nagios/etc/htpasswd.users


#4

tnx friends,
the problem is solved now,
i have changed the permissions of htpasswd.users and it works well.


#5

It might help someone to know what the permissions where and what they are now. Just for reference.