Page 1 of 1

cannot login after reset nagiosadmin password

Posted: Thu Jan 23, 2020 1:27 am
by cdcsysadmin
tried to use this conmand to reset nagiosadmin password
/usr/local/nagioslogserver/scripts/reset_nagiosadmin_password.sh --password newpassword

but after this , it always prompt for invalid user and password , i cant login again.

Thanks

Re: cannot login after reset nagiosadmin password

Posted: Thu Jan 23, 2020 2:37 am
by cdcsysadmin
just ran this command to create user in cli but still cant login

curl -XPUT 'http://localhost:9200/nagioslogserver/user/99' -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"}'

Re: cannot login after reset nagiosadmin password

Posted: Thu Jan 23, 2020 3:17 am
by cdcsysadmin
p.s.

my account have no permit to visit this forum again ??? am I posting to much to got this ?

Re: cannot login after reset nagiosadmin password

Posted: Thu Jan 23, 2020 5:13 pm
by Box293
https://support.nagios.com/kb/article/n ... d-540.html

It may be possible that your password has strange characters. Have your tried something simple like "ABC123" just to rule that out?

Otherwise, have you restarted the server itself?

Is this the only node in the cluster? Does the login work on other nodes?