Page 1 of 1

Cannot Login to Nagios LS 2.0

Posted: Wed Dec 06, 2017 11:16 am
by cgutierr
I am getting "The username specified does not exist" when trying to login as nagiosadmin. Other users do not exist as well. Tried restarting elasticsearch and logstash and same thing I cannot login.

Re: Cannot Login to Nagios LS 2.0

Posted: Wed Dec 06, 2017 12:13 pm
by bolson
Please run the following from the CLI of your Nagios LS and post the result:

Code: Select all

curl "http://localhost:9200/nagioslogserver/user/_search?pretty"

Re: Cannot Login to Nagios LS 2.0

Posted: Wed Dec 06, 2017 2:05 pm
by cgutierr
Since the log server is on a standalone network I have to type out the command output.

Here it is:

curl "http://localhost:9200/nagioslogserver/u ... rch?pretty"

{
"error" : "NoShardAvailableActionException[[nagioslogserver][0] null]",
"status : 503
}

As a side note I rysnced the /usr/local/nagioslogserver/elasticsearch/data directory to a larger drive since it was almost full. When I initially brought up the new drive it was saying there were no users. I have since re-rsynced over again and got it back up again.

Re: Cannot Login to Nagios LS 2.0

Posted: Wed Dec 06, 2017 3:59 pm
by kyang
Could you also send us the output of these commands?

Code: Select all

service elasticsearch status

Code: Select all

curl 'localhost:9200/_cluster/health?level=indices&pretty'
by cgutierr
When I initially brought up the new drive it was saying there were no users. I have since re-rsynced over again and got it back up again.
Is it still saying there are no users then since you got it back up again?

Re: Cannot Login to Nagios LS 2.0

Posted: Wed Dec 06, 2017 5:24 pm
by cgutierr
Yes, I got it back up. Please close thread.

Re: Cannot Login to Nagios LS 2.0

Posted: Wed Dec 06, 2017 5:26 pm
by kyang
Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!