unable to login using nagiosadmin account

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

Re: unable to login using nagiosadmin account

Post by sgiworks »

There is nothing in backup

[root@IWKSEUWPSSNLS01 elasticsearch]# cd /store/backups/nagioslogserver/
[root@IWKSEUWPSSNLS01 nagioslogserver]# ls
[root@IWKSEUWPSSNLS01 nagioslogserver]# ls -ll
total 0
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: unable to login using nagiosadmin account

Post by cdienger »

Run this from the CLI as root to create a new user:

Code: Select all

curl -XPUT 'http://localhost:9200/nagioslogserver/user/99' -d '{"username":"recoveryuser","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 "recoveryuser" with the password "nagiosls". Try logging in with it and check the configuration settings under Administration. You may need to repopulate some or all of these settings but hopefully the actual log data will still be available.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: unable to login using nagiosadmin account

Post by sgiworks »

[root@IWKSEUWPSSNLS01 ~]# curl -XPUT 'http://localhost:9200/nagioslogserver/user/99' -d '{"username":"recoveryuser","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"}'
{"error":"UnavailableShardsException[[nagioslogserver][0] Primary shard is not active or isn't assigned to a known node. Timeout: [1m], request: index {[nagioslogserver][user][99], source[{\"username\":\"recoveryuser\",\"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\"}]}]","status":503}[root@IWKSEUWPSSNLS01 ~]#
sgiworks
Posts: 197
Joined: Mon Mar 21, 2016 11:38 am

Re: unable to login using nagiosadmin account

Post by sgiworks »

Can we setup a remote session and investigate this problem?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: unable to login using nagiosadmin account

Post by cdienger »

We certainly can. Send an email to [email protected] to open a ticket and we can take it from there.

Before doing a remote though, I'd like to get a profile that you can attach to the email when you open the case. Copy the following script to the NLS server and give it execute permissions before running it:

Code: Select all

chmod 700 profile.sh
./profile.sh
The system-profile.tar.gz it creates will be found in /tmp
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: unable to login using nagiosadmin account

Post by tmcdonald »

I see you have also opened an email ticket for this, so we will be locking this thread and continuing in the email ticket.
Former Nagios employee
Locked