Performance Graph missing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Performance Graph missing

Post 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
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Graph missing

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Performance Graph missing

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Graph missing

Post 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 . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Performance Graph missing

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Graph missing

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Performance Graph missing

Post 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?
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Graph missing

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Performance Graph missing

Post 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.
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Graph missing

Post by abrist »

RPM was sent through email (ticket system).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked