No Graphs with Mod-Gearman and 2014R1.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

No Graphs with Mod-Gearman and 2014R1.2

Post by mikew »

Trying to get graphing going with Mod-Gearman on a 2014R1.2.

In order to do that I am changing the graphing definitions like so:

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

The problem is that when I change the command definitions so they will work with Gearman and save it changes it to "&&" which breaks all graphing.

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
Mike Weber

Nagios Training/Consulting
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: No Graphs with Mod-Gearman and 2014R1.2

Post by slansing »

Hey Mike,

I've not seen this issue yet, what browser are you making these changes with? And is this a 32-bit or 64-bit CENTOS/RHEL system? I'd like to try and reproduce this. It may also be valuable to capture some error_log output while trying to save that command:

Code: Select all

tail -f /var/log/httpd/error_log
We may or may not net anything with that.

Edit: just confirmed this as a bug in 2014 r1.2, making a report right now.
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: No Graphs with Mod-Gearman and 2014R1.2

Post by mikew »

Using Chrome and Firefox on a CentOS 6.x 64_bit

No errors in /var/log/httpd/error_log that relate to this at all.
Mike Weber

Nagios Training/Consulting
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: No Graphs with Mod-Gearman and 2014R1.2

Post by slansing »

We're working on the bug fix at the moment, there was a change to a regex in the CCM code. Once a patch is created an update should be posted with it's fix.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: No Graphs with Mod-Gearman and 2014R1.2

Post by slansing »

Upload the attached zip to your admin > manage components.

That should do the trick until the next release.
You do not have the required permissions to view the files attached to this post.
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: No Graphs with Mod-Gearman and 2014R1.2

Post by mikew »

Thank You that fixed it. You can close this..
Mike Weber

Nagios Training/Consulting
Locked