Nagios XI - Issues with mod_gearman and Performance Data Newlines: "\n"
Early implementations of Mod-Gearman in XI 2014 had some issues with the new line "\n" character and performance data. This has been resolved however the fixes used are documented here.
Resolving The Problem
You will need to modify a couple of the commands that Nagios XI uses to process performance data returned from your plugins when they are ran, this is to remove an extra new-line character that gets appended to the check results which results in no performance data being graphed in the XI interface.
In Core Configuration Manager (CCM), navigate to the Commands section.
You will need to change:
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
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
Save, and apply configuration. This work-around should be fairly temporary until we get a more permanent fix in place, but for the time being you will need to follow these steps to properly integrate Mod Gearman alongside XI 2014 / Core 4.
For any support related questions please visit the Nagios Support Forums at:
|Posted by: tlea - Tue, Feb 2, 2016 at 7:47 PM. This article has been viewed 1429 times.|
|Online URL: https://support.nagios.com/kb/article/nagios-xi-issues-with-mod_gearman-and-performance-data-newlines-92;n-409.html|
Powered by PHPKB (Knowledge Base Software)