Error : Elasticsearch Database Offline

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
ab6s
Posts: 5
Joined: Wed Jun 14, 2017 6:30 am

Error : Elasticsearch Database Offline

Post 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 ?
Last edited by dwhitfield on Thu Jun 15, 2017 12:26 pm, edited 1 time in total.
Reason: marking with green check mark
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Error : Elasticsearch Database Offline

Post 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
Former Nagios employee
https://www.mcapra.com/
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error : Elasticsearch Database Offline

Post by dwhitfield »

Thanks for the assist @mcapra!
ab6s
Posts: 5
Joined: Wed Jun 14, 2017 6:30 am

Re: Error : Elasticsearch Database Offline

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error : Elasticsearch Database Offline

Post 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
ab6s
Posts: 5
Joined: Wed Jun 14, 2017 6:30 am

Re: Error : Elasticsearch Database Offline

Post 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 ?
ab6s
Posts: 5
Joined: Wed Jun 14, 2017 6:30 am

Re: Error : Elasticsearch Database Offline

Post by ab6s »

Hello,

Please can someone help me ? :oops:
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Error : Elasticsearch Database Offline

Post by mcapra »

Have you tried increasing the available memory on this machine? I would start with 4GB if possible.
Former Nagios employee
https://www.mcapra.com/
ab6s
Posts: 5
Joined: Wed Jun 14, 2017 6:30 am

Re: Error : Elasticsearch Database Offline

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Error : Elasticsearch Database Offline

Post 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!
Locked