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.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Unable to login using the nagiosadmin credentials

Post by eloyd »

Adding my two cents here, I think that's exactly what's going on. We have a number of servers in data centers where only local NTP servers are accessible. You may want to double check with your hosting provider to ensure that you have access to a more local NTP server.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to login using the nagiosadmin credentials

Post by mcapra »

Thanks @eloyd!
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 fixed the NTP issue, however have an issue connecting the portal.

******************************************************
Elasticsearch Database Offline
It looks like your local elasticsearch service isn't running.

Why am I getting this error?

Elasticsearch must run locally on all Log Servers due to security restrictions when accessing the database.

You may need to run service elasticsearch start to start it.
******************************************************

When I tried to run 'service elasticsearch start' I am getting below error:

[root@ip-10-1-252-201 nagioslogserver]# service elasticsearch start
Starting elasticsearch: [ OK ]
[root@ip-10-1-252-201 nagioslogserver]# Error occurred during initialization of VM
java/lang/ClassNotFoundException: error in opening JAR file /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/jre/lib/rt.jar
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

Sorted by reinstalling java
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to login using the nagiosadmin credentials

Post by rkennedy »

Awesome! Do you know why it was uninstalled, or what happened to make these issues occur?
Former Nagios Employee
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

Install was corrupted.

Another problem, can't login using nagiosadmin account.

"Could not get user. Specified ID may be wrong."

How can I reset the login to get the Finish Installation page? because the earlier issue with java might have caused this problem.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Unable to login using the nagiosadmin credentials

Post by rkennedy »

sgiworks wrote:Install was corrupted.

Another problem, can't login using nagiosadmin account.

"Could not get user. Specified ID may be wrong."

How can I reset the login to get the Finish Installation page? because the earlier issue with java might have caused this problem.
Could you please show us the install.log once again after resolving the NTP issue? This way we can figure out what the actual issue is rather then troubleshooting a broken machine. If there were problems during the install, they need to be accounted for, or you may keep seeing random issues like this occur which is what we're trying to avoid.
Former Nagios Employee
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

attached
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 »

Odd, I'm not seeing it complain anywhere in your install.log.

Try running the following command to create a new user in NLS:

Code: Select all

curl -XPUT 'http://localhost:9200/nagioslogserver/user/2' -d '{"username":"someuser","password":"c678bcf3b5138b9263a95c44d28097f22c2e02877193d2c25313478821d45c19","auth_type":"admin","email":"[email protected]","language":"default","apiaccess":"1","apikey":"1396e08757545557073844695e5b64caa0bd3ad3","created":"2015-01-23 10:00:00","created_by":0,"default_dashboard":"/dashboard/elasticsearch/default"}'
This will create a user named "someuser" with the password "nagiosls". You can use this account to log in and optionally create the accounts that you need, then delete the "someuser" account as one of the other users when done.
Former Nagios Employee
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: Unable to login using the nagiosadmin credentials

Post by sgiworks »

That's great! it worked, I was able to login and found that there was no user named 'nagiosadmin' so I created one.
Locked