The username specified does not exist.

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ali.ramzan
Posts: 2
Joined: Thu Dec 10, 2015 5:08 pm

The username specified does not exist.

Post by ali.ramzan »

Hi everyone . I have installed new nagios log server. I am not able to login with nagiosadmin user.Even i have reset the password but still it is not working.Can anyone help me?


root@Nagios-Server var]# /usr/local/nagioslogserver/scripts/reset_nagiosadmin_password.sh -p aliali@123
The password has been set for nagiosadmin user.
ali.ramzan
Posts: 2
Joined: Thu Dec 10, 2015 5:08 pm

Re: The username specified does not exist.

Post by ali.ramzan »

I have found the solution


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.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: The username specified does not exist.

Post by jolson »

I have a feeling the database that stores your usernames has either been deleted or corrupted. Let's give the following a try:

Code: Select all

service elasticsearch status

Code: Select all

curl 'localhost:9200/_cluster/health?level=indices&pretty'
Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked