unable to log in with nagiosadmin - new install
Posted: Wed Dec 04, 2024 2:21 pm
New install of Nagios Logserver using the latest version. When try to log in with "nagiosadmin" I 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.
I have tried the following with no luck
Then
With output
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.
I have tried the following with no luck
Code: Select all
curl -XPUT 'http://localhost:9200/nagioslogserver/user/2' -d '{"username":"nagiosadmin","username_lower":"nagiosadmin","name":"Nagios Administrator","password":"280d44ab1e9f79b5cce2dd4f58f5fe91f0fbacdac9f7447dffc318ceb79f2d02","auth_type":"admin","email":"[email protected]","language":"default","apiaccess":"1","apikey":"721d387b623e725076b68b4760489ead197ddb7b","created":"2021-06-14 12:10:14","created_by":0,"default_dashboard":"/dashboard/elasticsearch/AXoLSc8Q5hxpyzbmI-kt"}'
Code: Select all
curl -XGET http://localhost:9200/nagioslogserver/user/2Code: Select all
{"_index":"nagioslogserver","_type":"user","_id":"2","_version":8,"found":true,"_source":{"username":"nagiosadmin","username_lower":"nagiosadmin","name":"Nagios Administrator","password":"280d44ab1e9f79b5cce2dd4f58f5fe91f0fbacdac9f7447dffc318ceb79f2d02","auth_type":"admin","email":"[email protected]","language":"default","apiaccess":"1","apikey":"721d387b623e725076b68b4760489ead197ddb7b","created":"2021-06-14 12:10:14","created_by":0,"default_dashboard":"/dashboard/elasticsearch/AXoLSc8Q5hxpyzbmI-kt"}}