Page 1 of 4
Unable to login using the nagiosadmin credentials
Posted: Mon Aug 22, 2016 2:58 pm
by sgiworks
Hello Team,
Unable to login to Nagios Log Server using the default 'nagiosadmin' credentials, could you please help in troubleshooting this problem as I need to get in.
I am able to connect the page but it keep on giving wrong credentials, also when I try to reset password using forgot your password link. It says 'The username does not exist.'
Version: 2015R1.0
Note: I can connect through SSH session using ec2-user
Regards,
Swapnil
Re: Unable to login using the nagiosadmin credentials
Posted: Mon Aug 22, 2016 3:06 pm
by mcapra
If you can login via SSH, you should be able to use the following script:
Code: Select all
/usr/local/nagioslogserver/scripts/reset_nagiosadmin_password.sh
Re: Unable to login using the nagiosadmin credentials
Posted: Mon Aug 22, 2016 3:37 pm
by sgiworks
Do I need to restart the server after resetting the password?
Re: Unable to login using the nagiosadmin credentials
Posted: Mon Aug 22, 2016 3:43 pm
by mcapra
You shouldn't need to restart anything. Much of the Nagios Log Server configuration exists in a special elasticsearch index, so if the elasticsearch service is crashed this script may fail. You could try service elasticsearch restart followed by the script if this doesn't seem to be working.
Re: Unable to login using the nagiosadmin credentials
Posted: Fri Aug 26, 2016 8:59 am
by sgiworks
I have another server where I cannot get through the portal, after connecting SSH I tried 'service elasticsearch restart' but that failed with error 'elasticsearch: unrecognized service'.
So we tried to upgrade the install, however even the upgrade failed with following error:
Installed:
php-ldap.x86_64 0:5.3.3-48.el6_8 pyOpenSSL.x86_64 0:0.13.1-2.el6
sysstat.x86_64 0:9.0.4-31.el6
Updated:
net-snmp.x86_64 1:5.5-57.el6_8.1 net-snmp-utils.x86_64 1:5.5-57.el6_8.1
openssl.x86_64 0:1.0.1e-48.el6_8.1
Dependency Updated:
net-snmp-libs.x86_64 1:5.5-57.el6_8.1
Complete!
26 Aug 09:55:06 ntpdate[1087]: no server suitable for synchronization found
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios Enterprises technical support.
The step that failed was: 'prereqs'
Re: Unable to login using the nagiosadmin credentials
Posted: Fri Aug 26, 2016 9:41 am
by mcapra
Was this server in production? Very strange for an NLS setup to suddenly lose elasticsearch.
- Can you share the install.log?
- Can you share the output of:
Code: Select all
ls -al /usr/local/nagioslogserver/elasticsearch/
Re: Unable to login using the nagiosadmin credentials
Posted: Fri Aug 26, 2016 9:49 am
by sgiworks
This is not a production server yet, but will need to setup one.
[ec2-user@ip-10-1-252-201 ~]$ ls -al /usr/local/nagioslogserver/elasticsearch/
ls: cannot access /usr/local/nagioslogserver/elasticsearch/: No such file or directory
Re: Unable to login using the nagiosadmin credentials
Posted: Fri Aug 26, 2016 9:56 am
by mcapra
- Can you share the contents of your /etc/ntp.conf file? If it doesn't exist, try yum install ntp.
- Do you know if the network this server is being deployed on is blocking NTP packets? This is done to mitigate/prevent DDOS attacks on some networks.
Re: Unable to login using the nagiosadmin credentials
Posted: Fri Aug 26, 2016 10:31 am
by sgiworks
Attached ntp.config
Re: Unable to login using the nagiosadmin credentials
Posted: Fri Aug 26, 2016 10:41 am
by rkennedy
Do you know if the network this server is being deployed on is blocking NTP packets? This is done to mitigate/prevent DDOS attacks on some networks.
Please answer this.
What is the output of the following?