Unable to login using the nagiosadmin credentials
Re: Unable to login using the nagiosadmin credentials
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Unable to login using the nagiosadmin credentials
Thanks @eloyd!
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Unable to login using the nagiosadmin credentials
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
******************************************************
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
Sorted by reinstalling java
Re: Unable to login using the nagiosadmin credentials
Awesome! Do you know why it was uninstalled, or what happened to make these issues occur?
Former Nagios Employee
Re: Unable to login using the nagiosadmin credentials
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.
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
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.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.
Former Nagios Employee
Re: Unable to login using the nagiosadmin credentials
attached
You do not have the required permissions to view the files attached to this post.
Re: Unable to login using the nagiosadmin credentials
Odd, I'm not seeing it complain anywhere in your install.log.
Try running the following command to create a new user in NLS:
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.
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"}'
Former Nagios Employee
Re: Unable to login using the nagiosadmin credentials
That's great! it worked, I was able to login and found that there was no user named 'nagiosadmin' so I created one.