Page 3 of 4

Re: Unable to login using the nagiosadmin credentials

Posted: Sun Sep 04, 2016 9:36 pm
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.

Re: Unable to login using the nagiosadmin credentials

Posted: Tue Sep 06, 2016 9:08 am
by mcapra
Thanks @eloyd!

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 9:31 am
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

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 9:48 am
by sgiworks
Sorted by reinstalling java

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 9:54 am
by rkennedy
Awesome! Do you know why it was uninstalled, or what happened to make these issues occur?

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 9:57 am
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.

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 10:01 am
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.

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 10:07 am
by sgiworks
attached

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 10:21 am
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.

Re: Unable to login using the nagiosadmin credentials

Posted: Wed Sep 07, 2016 11:04 am
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.