403 - Forbidden after Nagios install

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
baba
Posts: 3
Joined: Tue Aug 16, 2011 9:59 pm

403 - Forbidden after Nagios install

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: 403 - Forbidden after Nagios install

Post 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
baba
Posts: 3
Joined: Tue Aug 16, 2011 9:59 pm

Re: 403 - Forbidden after Nagios install

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: 403 - Forbidden after Nagios install

Post by agriffin »

Yes, could you post your apache log file (/var/log/httpd/error_log)?
baba
Posts: 3
Joined: Tue Aug 16, 2011 9:59 pm

Re: 403 - Forbidden after Nagios install

Post by baba »

Hi,

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

Thanks everyone for helping !
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: 403 - Forbidden after Nagios install

Post by agriffin »

No problem, glad you got it figured out!
Locked