Page 1 of 1

Unable to Log In on Single Instance Nagios Log Server

Posted: Wed Apr 14, 2021 11:41 am
by mrochelle
I completed the installation of NLS on Red Hat Enterprise Linux release 8.3. When I attempt to login on the http://NLS-IP/nagioslogserver/install page, it returns asking for the same credentials. Your assistance will be appreciated.
NLS login Capture.JPG
Added system profile for reference.

Re: Unable to Log In on Single Instance Nagios Log Server

Posted: Wed Apr 14, 2021 3:48 pm
by vtrac
Hi,
Since this is the initial setup page, which you must setup the password for "nagiosadmin".

Based on the picture provided, did you "confirm" your "nagiosadmin" password?
W1.png

If you had forgotten your "nagiosadmin" password, please run the below script to reset it:

Code: Select all

/usr/local/nagioslogserver/scripts/reset_nagiosadmin_password.sh -p <nagiosadmin-new-password>
l/code] 

Once done, you can log into NLS:
http://x.x.x.x/nagioslogserver/


Best Regards,
Vinh

Re: Unable to Log In on Single Instance Nagios Log Server

Posted: Wed Apr 14, 2021 8:11 pm
by mrochelle
I reset the password, and completed all fields, hit enter, and it keeps coming back to that same logon screen.

Re: Unable to Log In on Single Instance Nagios Log Server

Posted: Thu Apr 15, 2021 10:38 am
by vtrac
Hi,
I noticed the below error:

Code: Select all

{:timestamp=>"2021-04-14T11:02:55.554000-0400", :message=>"No config files found: /usr/local/nagioslogserver/logstash/etc/conf.d/*\nCan you make sure this path is a logstash config file?", :level=>:error}
Could you please check and see if there is any file under these folders?

Code: Select all

ls -la /usr/local/nagioslogserver/logstash/etc/conf.d
ls -la /usr/local/nagioslogserver/var
Let restart Nagios log server:

Code: Select all

systemctl restart httpd.service elasticsearch.service logstash.service
Now, please try open the NLS:
http://10.7.220.21/nagioslogserver


If this does not work, please re-install NLS again.
I would suggest that you start with a clean VM.

https://assets.nagios.com/downloads/nag ... Server.pdf

Also, looks like you might have SELinux turned on, which might block the installation process.
Let temporary disable SELinux:

Code: Select all

sestatus
setenforce 0
If you have "noexec" turn on for "/tmp", which will block the install post steps.
Need to have exec permission available for the /tmp folder

Code: Select all

mount -o remount,exec /tmp
Now, doing the install:

Code: Select all

curl https://assets.nagios.com/downloads/nagios-log-server/install.sh | sh

or

cd /tmp
wget https://assets.nagios.com/downloads/nagios-log-server/nagioslogserver-latest.tar.gz
tar xzf nagioslogserver-latest.tar.gz
cd nagioslogserver
./fullinstall
Please check the install log under:

Code: Select all

/tmp/install.log

or

/tmp/nagioslogserver/install.log

Best Regards,
Vinh

Re: Unable to Log In on Single Instance Nagios Log Server

Posted: Mon Apr 19, 2021 7:52 am
by mrochelle
Got everything up and running. Thanks for your help. I believe most of the problem was due to our security environment settings. You can lock this up.

Re: Unable to Log In on Single Instance Nagios Log Server

Posted: Mon Apr 19, 2021 8:52 am
by scottwilkerson
mrochelle wrote:Got everything up and running. Thanks for your help. I believe most of the problem was due to our security environment settings. You can lock this up.
Locking thread