Page 1 of 1
The username specified does not exist.
Posted: Thu Dec 10, 2015 5:11 pm
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.
Re: The username specified does not exist.
Posted: Thu Dec 10, 2015 5:52 pm
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.
Re: The username specified does not exist.
Posted: Thu Dec 10, 2015 5:52 pm
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
curl 'localhost:9200/_cluster/health?level=indices&pretty'
Thanks!