Performance Metrics from passive nrds checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

Performance Metrics from passive nrds checks

Post by ss6396 »

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]
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Performance Metrics from passive nrds checks

Post by slansing »

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
ss6396
Posts: 35
Joined: Wed Mar 19, 2014 11:26 am

Re: Performance Metrics from passive nrds checks

Post by ss6396 »

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
Unfortunately, I am not authorized to view that topic. Could you please repost here?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Performance Metrics from passive nrds checks

Post by slansing »

Sure:
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:

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:

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
And apply configuration.
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.
Locked