Unable to login using the nagiosadmin credentials

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Unable to login using the nagiosadmin credentials

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

Re: Unable to login using the nagiosadmin credentials

Post 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
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

Do I need to restart the server after resetting the password?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to login using the nagiosadmin credentials

Post 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.
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

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

Re: Unable to login using the nagiosadmin credentials

Post 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/
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to login using the nagiosadmin credentials

Post 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.
Former Nagios employee
https://www.mcapra.com/
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

Attached ntp.config
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to login using the nagiosadmin credentials

Post 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?

Code: Select all

ntpdate -u 0.centos.pool.ntp.org
Former Nagios Employee
Locked