Page 1 of 2

The instance is likely offline, please check and try again

Posted: Mon Jan 14, 2019 12:01 am
by floki
Good Day

Just want to ask what's wrong on my nagios log server instance. It seems that I can't apply the configurations made. It always show " The instance is likely offline, please check and try again". My current method is to configure the logstash pipeline [input, filter & output] then restart logstash. Is there another way I can load the the pipeline without restarting logstash like for example:

Code: Select all

bin/logstash -f first-pipeline.conf --config.reload.automatic


which is from the official documentation of logstash

Re: The instance is likely offline, please check and try aga

Posted: Mon Jan 14, 2019 4:24 pm
by scottwilkerson
Is elasticsearch running on all instances?

Code: Select all

service elasticsearch status
Also, you should only be starting logstash through the service command instead of what you posted in your previous command

Code: Select all

service logstash restart

Re: The instance is likely offline, please check and try aga

Posted: Mon Jan 14, 2019 11:13 pm
by floki
Good day,

Yes, my current method is to restart logstash with: systemctl restart logstash eventhough I only changed the input.conf. What im asking is if there's a way I can edit the conf files (input, filter, output) without restarting logstash?

Re: The instance is likely offline, please check and try aga

Posted: Tue Jan 15, 2019 10:15 am
by scottwilkerson
the configurations should only be edited through the UI.

Re: The instance is likely offline, please check and try aga

Posted: Tue Jan 15, 2019 10:33 pm
by floki
yeah but when i'm applying my configurations in the UI, I always get this message "The apply command hasn't started yet. The instance may not be online or is unreachable."

I don't know the reason, is there a log file generated when applying a config?

Thanks a lot

Re: The instance is likely offline, please check and try aga

Posted: Wed Jan 16, 2019 3:55 pm
by scottwilkerson
floki wrote:"The apply command hasn't started yet. The instance may not be online or is unreachable."
Is this a multi-instance cluster?
floki wrote:I don't know the reason, is there a log file generated when applying a config?
There should be logs here when you click apply config

Code: Select all

tail -f /usr/local/nagioslogserver/var/jobs.log

Re: The instance is likely offline, please check and try aga

Posted: Wed Jan 16, 2019 8:35 pm
by floki
Its a single instance Nagios log server
the only log in job.log is this:

Code: Select all

Running command run_alerts with args ' ' for job id: run_all_alerts
SUCCESS
But still can't apply config through UI :cry:

Re: The instance is likely offline, please check and try aga

Posted: Thu Jan 17, 2019 8:36 am
by scottwilkerson
Hmm, this sounds like something is stuck.

Can you go to Admin -> Command Subsystem
click "Reset All Jobs"
click OK on the dialog box

Then attempt to Apply Configuration again.

Re: The instance is likely offline, please check and try aga

Posted: Fri Jan 18, 2019 1:04 am
by floki
Was able to reset all the jobs but still can't apply configuration through UI :cry: still got this error in UI:

Code: Select all

 The instance is likely offline, please check and try again.

Re: The instance is likely offline, please check and try aga

Posted: Fri Jan 18, 2019 1:27 pm
by scottwilkerson
If you go to Admin -> Command Subsystem are the times updating on all of the items?