Page 1 of 1

403 - Forbidden after Nagios install

Posted: Tue Aug 16, 2011 10:18 pm
by baba
Hi,

I have successfully installed Nagios Core 3.3.1 on Centos5 following this procedure ->
http://community.spiceworks.com/how_to/show/731

However, when I tried logging in, despite keying in the correct password, I get "403 - Forbidden".

Any ideas or suggestions would be greatly appreciated.

Regards,
Baba

Re: 403 - Forbidden after Nagios install

Posted: Wed Aug 17, 2011 2:32 pm
by mguthrie
Are you getting a prompt to enter a username and password?

Check the contents of the /etc/httpd/conf.d/nagios.conf file and verify that the htpasswd.user file exists and that the nagiosadmin user has been added to it.

Code: Select all

htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

Re: 403 - Forbidden after Nagios install

Posted: Wed Aug 17, 2011 3:33 pm
by baba
Hi,

Thanks for replying.

Yes, I had a logon prompt and also the files nagios.conf & htpasswd are present.
I've also used the htpasswd command to set the nagiosadmin and password.

When I opened the page, it prompts me for the password and it's only after keying in the password that I got the error.

Could it be something to do with Apache ?

Thanks again !

Regards,
Baba

Re: 403 - Forbidden after Nagios install

Posted: Thu Aug 18, 2011 10:37 am
by agriffin
Yes, could you post your apache log file (/var/log/httpd/error_log)?

Re: 403 - Forbidden after Nagios install

Posted: Thu Aug 18, 2011 3:33 pm
by baba
Hi,

I have re-installed everything from scratch again and all is working now.

Thanks everyone for helping !

Re: 403 - Forbidden after Nagios install

Posted: Thu Aug 18, 2011 4:24 pm
by agriffin
No problem, glad you got it figured out!