Page 1 of 1

Waiting for Database Startup

Posted: Wed Nov 08, 2017 12:06 pm
by aajibad1
I successfully installed Nagios log server on AWS Ec2 RHEL . However , after the login in page, it got stuck on elastucsearch database as below
Waiting for Database Startup
It looks like your local elasticsearch service is starting.

Why am I getting this error?

Elasticsearch can take a little while to start up because of it's indexing. This may take a few seconds.

The page will refresh automatically after 5 seconds...
I check the /var/log/logstash/logstash.log file . below is the output
{:timestamp=>"2017-11-08T16:23:23.414000+0000", :message=>"Error: No config files found: /usr/local/nagioslogserver/logstash/etc/conf.d/*\nCan you make sure this path is a logstash config file?"}
{:timestamp=>"2017-11-08T16:23:23.463000+0000", :message=>"You may be interested in the '--configtest' flag which you can\nuse to validate logstash's configuration before you choose\nto restart a running system."}
{:timestamp=>"2017-11-08T16:24:55.060000+0000", :message=>"Failed to install template: None of the configured nodes are available: []", :level=>:error}
{:timestamp=>"2017-11-08T16:59:27.870000+0000", :message=>"Failed to install template: None of the configured nodes are available: []", :level=>:error}
I also checked /var/log/elasticsearch . no log was found . thoughts?

Re: Waiting for Database Startup

Posted: Wed Nov 08, 2017 12:17 pm
by aajibad1
Also I did

Code: Select all

tail -n 50 /var/log/elasticsearch/*.log
Output:
==> /var/log/elasticsearch/1fddb8f5-df84-4139-847c-a80614261018_index_indexing_slowlog.log <==

==> /var/log/elasticsearch/1fddb8f5-df84-4139-847c-a80614261018_index_search_slowlog.log <==

==> /var/log/elasticsearch/1fddb8f5-df84-4139-847c-a80614261018.log <==

Re: Waiting for Database Startup

Posted: Wed Nov 08, 2017 2:08 pm
by dwhitfield
Do you still have the install.log? It seems like NLS did not install properly.

Also, did you follow this guide? https://assets.nagios.com/downloads/nag ... -Cloud.pdf

Re: Waiting for Database Startup

Posted: Thu Nov 09, 2017 12:21 pm
by aajibad1
Thank you . I used the document you provided . Its working

Re: Waiting for Database Startup

Posted: Thu Nov 09, 2017 1:41 pm
by kyang
Glad to hear its working now!

Did you have any more questions or are we okay to close this thread?