Cannot log in with nagiosadmin on new install

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
sfarrell
Posts: 14
Joined: Tue Apr 20, 2021 12:02 pm

Cannot log in with nagiosadmin on new install

Post 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?
User avatar
kfanselow
Posts: 252
Joined: Tue Aug 31, 2021 3:25 pm

Re: Cannot log in with nagiosadmin on new install

Post 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
sfarrell
Posts: 14
Joined: Tue Apr 20, 2021 12:02 pm

Re: Cannot log in with nagiosadmin on new install

Post 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.
sfarrell
Posts: 14
Joined: Tue Apr 20, 2021 12:02 pm

Re: Cannot log in with nagiosadmin on new install

Post 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"}'
sfarrell
Posts: 14
Joined: Tue Apr 20, 2021 12:02 pm

Re: Cannot log in with nagiosadmin on new install

Post by sfarrell »

after adding "username_lower" and "name" to the curl command I'm now able to log in.

thanks
User avatar
kfanselow
Posts: 252
Joined: Tue Aug 31, 2021 3:25 pm

Re: Cannot log in with nagiosadmin on new install

Post by kfanselow »

Excellent - Glad you were able to resolve the problem.
Locked