How to resync without rebooting

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

How to resync without rebooting

Post by vmesquita »

Hello,

We have 2 log server instances. Sometimes they lose sight of each other (i.e., one instance appears to be offline to the other althought both are still online). We found out that it's possible to fix this by rebooting the servers. Is there another way to fix this?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to resync without rebooting

Post by rkennedy »

Generally if that's happening, it's an issue with elasticsearch. You could probably just restart that service to fix it. service elasticsearch restart

I'm curious to know what happens exactly, as this sounds like a bug of some sort. When it happens next time, could you post your /var/log/elasticsearch/<yourclusterid>.log file for us to review?

Lastly, what version of NLS and OS are you running?
Former Nagios Employee
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: How to resync without rebooting

Post by vmesquita »

Thanks, It solved the problem indeed. The logs on boths instances were empty (zero byte files). We are running Red Hat Enterprise Linux Server release 6.7 (Santiago). What does NLS stand for and how we can get its version number?
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: How to resync without rebooting

Post by jomann »

NLS = Nagios Log Server, the version number can be found at the very bottom lower left-hand corner of the interface.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vmesquita
Posts: 315
Joined: Fri Aug 10, 2012 12:52 pm

Re: How to resync without rebooting

Post by vmesquita »

Ah, right! Nagios Log Server 1.4.2
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: How to resync without rebooting

Post by jomann »

Is there anything that happens before they stop communicating with one another? Have you made any changes to your elasticsearch configuration? There is a "split brain" problem in elasticsearch were both nodes decide that they are master, which can cause issues. I believe that might have been what was happening. Although it's hard to say for sure, if it happens again, copy over the elasticsearch log for us and we can try to decipher what is causing the issue.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked