Wrong initial password

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
ola
Posts: 4
Joined: Mon Jul 11, 2016 9:42 am

Wrong initial password

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Wrong initial password

Post 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
Former Nagios Employee
ola
Posts: 4
Joined: Mon Jul 11, 2016 9:42 am

Re: Wrong initial password

Post 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).
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Wrong initial password

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ola
Posts: 4
Joined: Mon Jul 11, 2016 9:42 am

Re: Wrong initial password

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Wrong initial password

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked