Page 1 of 1
Nagios Last Check Result not updating
Posted: Fri Sep 21, 2012 11:08 am
by mitchsmith
Hi,
I am seeing an issue where my nagios interface is not updated.
I am operating a distributed configuration, where a remote installation, submits results to a central server, but also has the interface enabled for the local operators to view.
I can see in the central host that check results are being received (via NSCA) from the remote nagios installation, and in the central interface the check results are updated.
On the remote installation however the interface does not appear to be updated.
Any help on this would be greatly appreciated.
Thanks
Mitchell
Re: Nagios Last Check Result not updating
Posted: Fri Sep 21, 2012 12:45 pm
by agriffin
How did you set up this distributed configuration? It's impossible to help you without this information. You said that check results are being sent via NSCA, but how are they supposed to update the local Nagios instance? (Are they checked locally and then sent separately, or is it all in one stop with send_nsca?)
Re: Nagios Last Check Result not updating
Posted: Sat Sep 22, 2012 12:04 pm
by mitchsmith
HI,
In my main configuration file on the distributed instance i have
obsess_over_services=1
ocsp_command=sendCheckResultToCentral
The sendCheckResultToCentral uses NSCA to report the result
This is configured and has been working across multiple distributed hosts for over a year.
It appears that it is only one environment which has recently displayed this issue.
Re: Nagios Last Check Result not updating
Posted: Mon Sep 24, 2012 10:51 am
by mguthrie
What version of Nagios Core are you using?
Are you using DNX in your environment?
Re: Nagios Last Check Result not updating
Posted: Mon Sep 24, 2012 1:38 pm
by mitchsmith
Hi,
The central host is : Nagios Core 3.2.3
The Remote host is: Nagios Core 3.2.3
We do not use DNX, just the use of NSCA to report to the central host.
Regards,
Mitchell
Re: Nagios Last Check Result not updating
Posted: Mon Sep 24, 2012 2:58 pm
by mguthrie
Hmm, is the remote machine checking these services actively or passively?
Re: Nagios Last Check Result not updating
Posted: Mon Sep 24, 2012 3:12 pm
by mitchsmith
Checks on the remote machine are Active.
The central host receives and processes Passive results (which can be seen being received in the logs)
Re: Nagios Last Check Result not updating
Posted: Tue Sep 25, 2012 9:25 am
by mguthrie
About the only thing I can think of is that you may have multiple instances of Nagios running on that old machine, so you'd have multiple processes writing to the status file, giving weird results. Try the following on the remote machine.
Code: Select all
service nagios stop
killall -9 nagios
service nagios start
Re: Nagios Last Check Result not updating
Posted: Tue Oct 02, 2012 11:03 am
by mitchsmith
Hi,
I have tried this, it appears to have no impact.
The interface appears to update under some circumstances, such as if I add a new service, it will progress from pending, to error/ok, but does not appear to then change when the error is resolved.
I think this could be an issue with some permissions on the data used to load the interface. Would I be able to remove the status files, and nagios re-create them?
2nd Message:
hi,
It appears this is linked to the obsess_over_services parameter in the nagios.cfg file.
The host with the issue is a distributed host, when obsess_over_services=1 and the ocsp_command is set it appears to prevent the GUI correctly updating.
I wonder, if no ocsp_timeout is set could that be the issue? or does it have a default.
Would the ocsp_command have to complete (or timeout) before the data can be updated in the GUI.
I have the same config setup monitoring a smaller number of hosts/services reporting to the same central host, and this does not have any issues.
Any help would be greatly appreciated
Thanks
Mitchell