We've been evaluating Nagios XI 2014R1.0RC and have been unable to get it to display performance graphs from passive nrds checks. I did not see that as an item fixed in the release notes for 1.0 so not sure if it is a bug or not. Below is from the Advanced Status Details tab for one of the passive checks. Note that Performance Data is being received and Performance Data is enabled. Is this a bug in the beta version or is there something else that needs to be done to turn on metric data collection?
Advanced Status Details
Service State: Ok
Duration: 12d 15h 22m 55s
State Type: Hard
Current Check: 1 of 1
Last Check: 2014-05-20 18:45:53
Next Check: 1970-01-01 00:00:00
Last State Change: 2014-05-08 19:35:17
Last Notification: 1970-01-01 00:00:00
Check Type: Passive
Check Latency: 0 seconds
Execution Time: 0 seconds
State Change: 0%
Performance Data: user=0.00% system=0.00% iowait=0.10%;85%;95% idle=99.90%\n
Service Attributes
Attribute
State
Action
Active Checks [Disabled] [Enable]
Passive Checks [Enabled] [Disable]
Notifications [Enabled] [Disable]
Flap Detection [Disabled] [Enable]
Event Handler [Enabled] [Disable]
Performance Data [Enabled]
Obsession [Enabled] [Disable]
Performance Metrics from passive nrds checks
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Performance Metrics from passive nrds checks
We are currently tracking this issue and working towards a resolution, for now, you can add a couple 'sed' additions to your perfdata commands as per my post here:
http://support.nagios.com/forum/viewtop ... man#p97980
http://support.nagios.com/forum/viewtop ... man#p97980
Re: Performance Metrics from passive nrds checks
Unfortunately, I am not authorized to view that topic. Could you please repost here?slansing wrote:We are currently tracking this issue and working towards a resolution, for now, you can add a couple 'sed' additions to your perfdata commands as per my post here:
http://support.nagios.com/forum/viewtop ... man#p97980
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Performance Metrics from passive nrds checks
Sure:
This is actually being tracked down as a possible issue with how Nagios Core 4 is handling check result reaping and processing, if/once the issue is pinned down it will be released with an update to Nagios XI.Currently, until we find a better way, you will also need to update your performance data commands in the CCM in order to get perf data pushed from the workers up to XI and displayed properly.
You will need to change-
process-host-perfdata-file-bulk and process-service-perfdata-file-bulk's command's to:
And:Code: Select all
sed -i 's/\\n//g' /usr/local/nagios/var/host-perfdata && /bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
And apply configuration.Code: Select all
sed -i 's/\\n//g' /usr/local/nagios/var/service-perfdata && /bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service