Page 1 of 2

Performance Graph missing

Posted: Tue Aug 26, 2014 2:23 am
by rajasegar
Nagios XI 2014R1.2

pnp.zip fix applied.

Please advice on this. The monitor is missing performance graph.
26-08-2014 03-22-54 PM.png
26-08-2014 03-22-37 PM.png

This was the fix that was uploaded using Manage Component
pnp.zip

Re: Performance Graph missing

Posted: Tue Aug 26, 2014 10:52 am
by abrist
I assume you are running mod_gearman due to the problematic trailing "\n" in your perfdata. Please see the following FAQ:
http://support.nagios.com/wiki/index.ph ... .22.5Cn.22

Re: Performance Graph missing

Posted: Tue Aug 26, 2014 6:16 pm
by rajasegar
abrist wrote:I assume you are running mod_gearman due to the problematic trailing "\n" in your perfdata. Please see the following FAQ:
http://support.nagios.com/wiki/index.ph ... .22.5Cn.22
No, mod_gearman is due to performance.

I still recall making all the changes with your support and nothing worked.
BTW I was told a fix was in internal testing and going to be released for the \n issue but it has been months still no update.

Re: Performance Graph missing

Posted: Wed Aug 27, 2014 10:00 am
by abrist
Raj,
rajasegar wrote:I still recall making all the changes with your support and nothing worked.
You should not have a "\n" in the perfdata if you added the sed to the commands as the FAQ suggests. What is the output of:

Code: Select all

grep -2 perfdata-file-bulk /usr/local/nagios/etc/commands.cfg
rajasegar wrote:BTW I was told a fix was in internal testing and going to be released for the \n issue but it has been months still no update.
It has been less than a month. We are still testing as there are issues with CentOS 5 and perl. You do realize mod_gearman is a third party project? I am sure you are just as active on their forums concerning this issue as well, right?
We have a testing 64bit CentOS/RHEL 6 mod_gearman rpm if you are interested . . .

Re: Performance Graph missing

Posted: Wed Aug 27, 2014 6:16 pm
by rajasegar
abrist wrote:Raj,
rajasegar wrote:I still recall making all the changes with your support and nothing worked.
You should not have a "\n" in the perfdata if you added the sed to the commands as the FAQ suggests. What is the output of:

Code: Select all

grep -2 perfdata-file-bulk /usr/local/nagios/etc/commands.cfg
rajasegar wrote:BTW I was told a fix was in internal testing and going to be released for the \n issue but it has been months still no update.
It has been less than a month. We are still testing as there are issues with CentOS 5 and perl. You do realize mod_gearman is a third party project? I am sure you are just as active on their forums concerning this issue as well, right?
We have a testing 64bit CentOS/RHEL 6 mod_gearman rpm if you are interested . . .
Well some of the commands recommended supposed to strip off the \n but it ends up breaking all the charts.
Current definition seems to be the same as in the FAQ.

Code: Select all

[nagios@nagiosprodxi1 etc]$ grep -2 perfdata-file-bulk /usr/local/nagios/etc/commands.cfg

define command {
       command_name                             process-host-perfdata-file-bulk
       command_line                             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
}
--

define command {
       command_name                             process-service-perfdata-file-bulk
       command_line                             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
}

Our OS is RHEL 6.5 64bit so please send me the test version.

BTW what about my missing graph for this memory monitor. The other seems to be fine.

Re: Performance Graph missing

Posted: Thu Aug 28, 2014 9:30 am
by abrist
rajasegar wrote: BTW what about my missing graph for this memory monitor. The other seems to be fine.
Can you post an example of its check output? (Specifically the performance data)
Either the check is not returning performance data, or the perfdata is malformed.

Re: Performance Graph missing

Posted: Thu Aug 28, 2014 9:34 am
by rajasegar
abrist wrote:
rajasegar wrote: BTW what about my missing graph for this memory monitor. The other seems to be fine.
Can you post an example of its check output? (Specifically the performance data)
Either the check is not returning performance data, or the perfdata is malformed.
Check the first post. BTW aren't we supposed to do a remote support now?

Re: Performance Graph missing

Posted: Thu Aug 28, 2014 10:21 am
by abrist
If the output is still the same from the first post, then you will not get graphs for the check as it contains a newline at the end. The sed should have fixed this. If you are interested, I could pm you the 64bit CentOS/RHEL 6 testing gearman rpm with the newline fix.

Re: Performance Graph missing

Posted: Thu Aug 28, 2014 10:36 am
by rajasegar
abrist wrote:If the output is still the same from the first post, then you will not get graphs for the check as it contains a newline at the end. The sed should have fixed this. If you are interested, I could pm you the 64bit CentOS/RHEL 6 testing gearman rpm with the newline fix.
All the performance data now got \n and the graph still comes out like the example below. It is only for the monitor in the first post that graph does not show up.
Even the xml file is not there is the perfdata directory.
28-08-2014 11-25-23 PM.png
28-08-2014 11-25-56 PM.png
Anyway please PM me the rpm. Thanks.

Re: Performance Graph missing

Posted: Thu Aug 28, 2014 5:10 pm
by abrist
RPM was sent through email (ticket system).