Page 1 of 1

Error : Elasticsearch Database Offline

Posted: Wed Jun 14, 2017 7:04 am
by ab6s
Hi All,

I want to test Nagios Log Server in my lab Environment. So i installed it on a clean install of CentOS release 6.9. I downloaded Manual Installation Instructions and i followed it step by step.
For finishing installation i connect to my web interface and when i click on "Finish Installation" i have this error :

Elasticsearch Database Offline
It looks like your local elasticsearch service isn't running.

Why am I getting this error?

Elasticsearch must run locally on all Log Servers due to security restrictions when accessing the database.

You may need to run service elasticsearch start to start it.

So i start elasticsearch manually and reload the page but same error. I active elasticsearch start-up on boot with "chkconfig" command and restart the server but always the same error.

Can someone help me to fix this issue please ?

Re: Error : Elasticsearch Database Offline

Posted: Wed Jun 14, 2017 9:37 am
by mcapra
Is SELinux enabled on this machine? Have you tried disabling it?

Can you share your Elasticsearch logs? They're typically found here:

Code: Select all

/var/log/elasticsearch/*.log

Re: Error : Elasticsearch Database Offline

Posted: Wed Jun 14, 2017 10:46 am
by dwhitfield
Thanks for the assist @mcapra!

Re: Error : Elasticsearch Database Offline

Posted: Wed Jun 14, 2017 10:57 am
by ab6s
[root@localhost ~]# getenforce
Disabled
[root@localhost ~]# cd /var/log/elasticsearch/
[root@localhost elasticsearch]# ls
81608035-c94f-4a70-a9a7-54f2e384a61d_index_indexing_slowlog.log 81608035-c94f-4a70-a9a7-54f2e384a61d_index_search_slowlog.log 81608035-c94f-4a70-a9a7-54f2e384a61d.log
[root@localhost elasticsearch]# cat 81608035-c94f-4a70-a9a7-54f2e384a61d_index_indexing_slowlog.log
[root@localhost elasticsearch]# cat 81608035-c94f-4a70-a9a7-54f2e384a61d_index_search_slowlog.log
[root@localhost elasticsearch]# cat 81608035-c94f-4a70-a9a7-54f2e384a61d.log

Re: Error : Elasticsearch Database Offline

Posted: Wed Jun 14, 2017 11:19 am
by dwhitfield
What are the specs on this machine? Sometimes an underpowered JVM can cause this.

Also, are you out of space? https://assets.nagios.com/downloads/nag ... M-Disk.pdf

Re: Error : Elasticsearch Database Offline

Posted: Wed Jun 14, 2017 11:37 am
by ab6s
dwhitfield wrote:What are the specs on this machine? Sometimes an underpowered JVM can cause this.

Also, are you out of space? https://assets.nagios.com/downloads/nag ... M-Disk.pdf
It's a VM with 10GB storage and 1GB RAM (if it's that you want to know)

Which informations can i give you ?

Re: Error : Elasticsearch Database Offline

Posted: Thu Jun 15, 2017 6:11 am
by ab6s
Hello,

Please can someone help me ? :oops:

Re: Error : Elasticsearch Database Offline

Posted: Thu Jun 15, 2017 8:40 am
by mcapra
Have you tried increasing the available memory on this machine? I would start with 4GB if possible.

Re: Error : Elasticsearch Database Offline

Posted: Thu Jun 15, 2017 10:38 am
by ab6s
Effectively the issue's cause was that!!

After increasing memory at 2G it's work fine.

@mcapra @dwhitfield THANKS to you for your help

Re: Error : Elasticsearch Database Offline

Posted: Thu Jun 15, 2017 12:25 pm
by dwhitfield
Apologies for the delay. Yesterday was particularly busy.

Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!