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 ?
Error : Elasticsearch Database Offline
Error : Elasticsearch Database Offline
Last edited by dwhitfield on Thu Jun 15, 2017 12:26 pm, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
Re: Error : Elasticsearch Database Offline
Is SELinux enabled on this machine? Have you tried disabling it?
Can you share your Elasticsearch logs? They're typically found here:
Can you share your Elasticsearch logs? They're typically found here:
Code: Select all
/var/log/elasticsearch/*.logFormer Nagios employee
https://www.mcapra.com/
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
Thanks for the assist @mcapra!
Re: Error : Elasticsearch Database Offline
[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
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
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
Also, are you out of space? https://assets.nagios.com/downloads/nag ... M-Disk.pdf
Re: Error : Elasticsearch Database Offline
It's a VM with 10GB storage and 1GB RAM (if it's that you want to know)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
Which informations can i give you ?
Re: Error : Elasticsearch Database Offline
Hello,
Please can someone help me ?
Please can someone help me ?
Re: Error : Elasticsearch Database Offline
Have you tried increasing the available memory on this machine? I would start with 4GB if possible.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Error : Elasticsearch Database Offline
Effectively the issue's cause was that!!
After increasing memory at 2G it's work fine.
@mcapra @dwhitfield THANKS to you for your help
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
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!
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!