Page 1 of 1

Elasticsearch database offline nagios log server

Posted: Tue Feb 07, 2017 7:16 pm
by Naveed
Hi,

I am unable to start nagioslog server, I have start elasticsearch service many times, but it again goes down.

Re: Elasticsearch database offline nagios log server

Posted: Wed Feb 08, 2017 10:16 am
by mcapra
Can you share the contents of your Elasticsearch logs? Please zip up the following path and share them via an attachment:

Code: Select all

/var/log/elasticsearch/

Re: Elasticsearch database offline nagios log server

Posted: Wed Feb 08, 2017 3:09 pm
by Naveed
No log is found at elasticsearch log location:

[root@localhost ~]# cd /var/log/elasticsearch/
[root@localhost elasticsearch]# ls
bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_indexing_slowlog.log bc04b135-2d9b-4e73-9576-b17ec5b313c8.log
bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_search_slowlog.log
[root@localhost elasticsearch]# ls -lhtr
total 0
-rw-r--r--. 1 nagios users 0 Feb 2 15:26 bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_indexing_slowlog.log
-rw-r--r--. 1 nagios users 0 Feb 2 15:26 bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_search_slowlog.log
-rw-r--r--. 1 nagios users 0 Feb 7 15:58 bc04b135-2d9b-4e73-9576-b17ec5b313c8.log
[root@localhost elasticsearch]# cat bc04b135-2d9b-4e73-9576-b17ec5b313c8.log
[root@localhost elasticsearch]# cat bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_search_slowlog.log
[root@localhost elasticsearch]# cat bc04b135-2d9b-4e73-9576-b17ec5b313c8_index_indexing_slowlog.log

Re: Elasticsearch database offline nagios log server

Posted: Wed Feb 08, 2017 3:37 pm
by rkennedy
What happens if you try to start it? Please share the full output.

Code: Select all

service elasticsearch start
How much ram / disk space did you allocate to the machine, and how many CPU's?

Re: Elasticsearch database offline nagios log server

Posted: Wed Feb 08, 2017 6:02 pm
by Naveed
Service elasticsearch starts the service, but it alse went to down state with following error message.

[root@localhost ~]# service elasticsearch start
Starting elasticsearch: [ OK ]
[root@localhost ~]# service elasticsearch status
elasticsearch dead but pid file exists


Moreover machine specs are attached.

Thanks

Re: Elasticsearch database offline nagios log server

Posted: Wed Feb 08, 2017 6:03 pm
by rkennedy
I don't see any specs attached, could you please post them again?

Re: Elasticsearch database offline nagios log server

Posted: Wed Feb 08, 2017 7:07 pm
by Naveed
PFA

Re: Elasticsearch database offline nagios log server

Posted: Thu Feb 09, 2017 9:55 am
by rkennedy
This simply isn't enough resources for NLS. I would expand the processors to at least 2, and the memory to at least 8GB. As it's java based, the main requirement to use it is going to memory.

Re: Elasticsearch database offline nagios log server

Posted: Wed Feb 15, 2017 7:32 pm
by Naveed
I increased resources and its start working for me.
Please close this thread.

Thanks