Page 1 of 1
Cannot log in with nagiosadmin on new install
Posted: Thu Sep 30, 2021 11:57 am
by sfarrell
New install of Nagios Logserver using latest .ova -- Trying to log in with "nagiosadmin" but get error "Invalid username or password".
I've tried resetting the password using "/usr/local/nagioslogserver/scripts/reset_nagiosadmin_password.sh --password newpassword" but it still fails. I'm not using any special character just letters and numbers.
Any ideas?
Re: Cannot log in with nagiosadmin on new install
Posted: Thu Sep 30, 2021 3:45 pm
by kfanselow
Hi sfarrell,
Did you try running the "/usr/local/nagioslogserver/scripts/reset_nagiosadmin_password.sh" script without passing any arguments ? It should prompt you for password. If that fails try running the following command on the server:
curl -XGET '
http://localhost:9200/nagioslogserver/_ ... ser&pretty'
Verify that you see the nagiosadmin username ("username":"nagiosadmin") and try cutting and pasting the username into login field.
Please let us know how it goes,
Keith
Re: Cannot log in with nagiosadmin on new install
Posted: Thu Sep 30, 2021 4:31 pm
by sfarrell
I tried running the reset password script with no arguments and it said it changed the password for "nagiosadmin". Unfortunately the password did not work (I'm using "password")...
I am not getting a username:password output when running curl -XGET '
http://localhost:9200/nagioslogserver/_ ... ser&pretty'
Thanks for your assistance.
Re: Cannot log in with nagiosadmin on new install
Posted: Thu Sep 30, 2021 5:39 pm
by sfarrell
I was able to create "nagiosadmin" using the following command but it's still giving the error "invalid username or password". I also used the script to reset the password for nagiosadmin and it still failed with same message --
Code: Select all
curl -XPUT 'http://localhost:9200/nagioslogserver/user/2' -d '{"username":"nagiosadmin","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 log in with nagiosadmin on new install
Posted: Fri Oct 01, 2021 9:17 am
by sfarrell
after adding "username_lower" and "name" to the curl command I'm now able to log in.
thanks
Re: Cannot log in with nagiosadmin on new install
Posted: Fri Oct 01, 2021 10:31 am
by kfanselow
Excellent - Glad you were able to resolve the problem.