Home » Categories » Products » Nagios XI » Troubleshooting » Common Problems

Nagios XI - Issues with mod_gearman and Performance Data Newlines: "\n"

Problem Description

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:

process-host-perfdata-file-bulk

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

 

process-service-perfdata-file-bulk

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. 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
XI 5.4 monitoring engine not running
Viewed 3024 times since Mon, Feb 6, 2017
Nagios XI - Empty Screen for Wizard, Component, Dashlet
Viewed 2150 times since Wed, Jan 27, 2016
Nagios XI - Core 4 Load Spikes on 1.75 and 7 Hour Intervals
Viewed 1293 times since Mon, Jan 25, 2016
Nagios XI - Scheduled Reports Not Running
Viewed 1558 times since Thu, Aug 10, 2017
Nagios XI - Last Check Time Not Updating
Viewed 6366 times since Tue, Jan 6, 2015
Nagios XI - ICMP and Ping Checks Stopped Graphing
Viewed 3919 times since Mon, Jan 25, 2016
Nagios XI - Resetting The nagiosadmin Password
Viewed 16841 times since Mon, Jan 25, 2016
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 2593 times since Wed, Jun 1, 2016
Nagios XI - Unable to Delete Host
Viewed 5010 times since Tue, Dec 16, 2014
Nagios XI - How To Use CA Certificates With check_ldaps Plugin
Viewed 2715 times since Tue, Jul 26, 2016