Page 1 of 1

Wrong initial password

Posted: Fri Jul 15, 2016 10:35 am
by ola
Hello,

I have downloaded and configured Nagios Core 4.1.1. I run CentOS 6.8 on the machine and because of that I have followed both the official quickstart guide and also this one : http://www.techoism.com/steps-to-config ... at-fedora/ . I have followed all the written steps (under root) but somehow when I finish the guide it wont log me in because of a wrong password. I have not configured Apache anyhow but the guide didn't say so.
Could you please help me out somehow ?

Thank you very much

Re: Wrong initial password

Posted: Fri Jul 15, 2016 10:50 am
by rkennedy
Are you referring to this page?
http://your.i.p.here/nagios/ ?

If so, take a look at this part from the guide you mentioned, this is where the password for nagiosadmin is set -

Code: Select all

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

Re: Wrong initial password

Posted: Sat Jul 16, 2016 1:58 am
by ola
Yes, although I have used a hostname because of our DNS server.
And also I have used that command, even have tried it with and without -c flag (have removed it before).

Re: Wrong initial password

Posted: Sun Jul 17, 2016 8:10 pm
by Box293
Have you tried a basic password?

Tail the httpd logs in an ssh session:

Code: Select all

tail -f /var/log/httpd/*.log
Now try and access the webpage, what is logged in the ssh session?

Have you tried this guide?:
https://support.nagios.com/kb/article.p ... ategory=58

Also it could be that SELinux is enabled. To disable it:

Code: Select all

sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
setenforce 0
Does any of this help?

Re: Wrong initial password

Posted: Mon Jul 18, 2016 3:10 am
by ola
solved, thanks to the logs you have pointed me onto - I did the whole procedure under root and it didn't give the nagios users the permissions to the httpasswd file.
thanks

Re: Wrong initial password

Posted: Mon Jul 18, 2016 9:51 am
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?