LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   login problem nagios (https://www.linuxquestions.org/questions/linux-newbie-8/login-problem-nagios-103946/)

misba672 10-14-2003 05:18 PM

login problem nagios
 
Hi all, I'm new to Linux myself and my first project is Nagios. I'm running Redhat 8 with Apache. I have verified all of my configuration files and even created authorization files for my users, but for some reason when I go to the webpage localhost/nagios/ I can't log in. It gives me the log in box and when I put user id and password in it just pops the box back up. I think that possibly Apache is not able to read my htpasswd.users file, but I've gone through the instructions back and forth and have started over 3 times with out any success. I guess I could just run it with out the web interface, but I'm a Windows guy and am not comfortable with that yet. Any ideas?

Sorry to throw this into your post shelby. but I would recommend just as others have, run the verify script it points out every little mistake you have. Thx for any replies.

jharris 10-14-2003 05:26 PM

Welcome to LinuxQuestions!

Nagios is one hell of a nasty place to start your time with Linux! Anyway...

It sounds to me too like Apache can't read your htpasswd files. I'm assuming that your nagios is living in the default location of /usr/local/nagios if this isn't the case then adjust these paths as necessary...

What do you have in /usr/local/nagios/sbin/.htaccess? I would expect it to looks something like
Code:

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user

What does
Code:

ls -l /usr/local/nagios/etc/htpasswd.users
return? It should be chmod'ed to 644 and not owned by either root or the nagios user. How did you add your users to the htpasswd file?

HTH

Jamie...

misba672 10-14-2003 07:13 PM

Thanks you very much , now it works !

thanks for your reply

MisbA


All times are GMT -5. The time now is 04:25 AM.