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
Nagios Last Check Result not updating
Re: Nagios Last Check Result not updating
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?)
-
mitchsmith
- Posts: 33
- Joined: Mon Apr 04, 2011 7:26 am
Re: Nagios Last Check Result not updating
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.
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
What version of Nagios Core are you using?
Are you using DNX in your environment?
Are you using DNX in your environment?
-
mitchsmith
- Posts: 33
- Joined: Mon Apr 04, 2011 7:26 am
Re: Nagios Last Check Result not updating
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
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
Hmm, is the remote machine checking these services actively or passively?
-
mitchsmith
- Posts: 33
- Joined: Mon Apr 04, 2011 7:26 am
Re: Nagios Last Check Result not updating
Checks on the remote machine are Active.
The central host receives and processes Passive results (which can be seen being received in the logs)
The central host receives and processes Passive results (which can be seen being received in the logs)
Re: Nagios Last Check Result not updating
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-
mitchsmith
- Posts: 33
- Joined: Mon Apr 04, 2011 7:26 am
Re: Nagios Last Check Result not updating
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
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
Last edited by slansing on Wed May 29, 2013 10:56 am, edited 1 time in total.
Reason: Please do not double post if you are the last poster..
Reason: Please do not double post if you are the last poster..