I have installed Nagios according to the documentation found at localhost/nagios. I have added the users to the nagcmd group and also set up the nagiosadmin authenticated users in the /etc directory.
Upon configuring the nagios file initially, it did not give me a /etc folder, I had to create it myself and then add admin users.
Everytime I try and access the page, I am prompted for the username and password continually.
Please help if you can
Regards
J
:x
Found the solution to the missing file at nagios.org/faqs/viewfaq.php? … desc=false
But am still unable to load the page. I am still being prompted to enter username and password continuously.
Last error recieved
[Fri Feb 17 11:43:32 2006] [error] [client 127.0.0.1] (13)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Fri Feb 17 11:43:32 2006] [error] [client 127.0.0.1] user nagios not found: /nagios
[Fri Feb 17 11:45:17 2006] [error] [client 127.0.0.1] (13)Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Fri Feb 17 11:45:17 2006] [error] [client 127.0.0.1] user nagiosadmin not found: /nagios
( I am logged on the system as root, do i need to login as nagios user?)
As for the .htaccess files, could you please point me in the right direction in relation to this configuration, i could not find anywhere in the documentation in relating to these files.
I have used the htpasswd command and have not edited the cgi.cfg file. Please ignore the fact these might seem to be quite obvious… I am fairly new to both Linux and Nagios, I appreciate your help greatly.
and you need to login the webpage as nagiosadmin, you should have set this up in the config files…
Luca
PS: the htpasswd.user files needs to be owned by the nagcmd group… and the user running apache should be in that group… otr apache will ever be able to open that file. Which is what seems to be happening to you. Edited Fri Feb 17 2006, 09:29AM ]
It doesn’t really have to do with your Linux logon. It looks like you’re trying to log into your web interface with the user Nagios. If that user doesn’t exist, follow to the docs to add user Nagios if you want. Note that you would be adding the Nagios user separate from the Linux user (though you must still create the Linux user, nagios).
Confused yet? =p
The page Luca points to should show you how to add Nagios users. However, you will still need to edit cgi.cfg to allow the Nagios users certain permissions. That only applies, though, if you don’t follow the default config. By default, I think the user Luca refers to - nagiosadmin - is authorized to do anything via the web interface. Edited Fri Feb 17 2006, 07:22PM ]
Thanx for the input folks, I recieved the answer I was after from the mailing list. The problem was permission based and these following commands got me out of trouble.
chmod 640 /usr/local/nagios/etc/htpasswd.users
chown nagios:nagcmd /usr/local/nagios/etc/htpasswd.users