Issues with Multiple Perfdata graphs for a single service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
weapon
Posts: 16
Joined: Sun Apr 06, 2014 8:00 pm

Issues with Multiple Perfdata graphs for a single service

Post by weapon »

I am having some issues with checks that return multiple lines of perfdata, and therefore have multiple graphs for a single service.

I have found that nagios does not pay attention to the label for the performance data, only the order which it is returned in - therefore if you change the order the graphs have the wrong data in them. This is not my issue though, I can work around that. What I have found is that when the number of lines of perfdata changes (only noticed when it reduces, not sure if it occurs when it increases), no more data gets logged for that service.(see attached images - perfdata was being generated at the time, just not graphed)

I have traced it through and I think that process_perfdata.pl is the issue. It does not seem to have a section for handling changing the number of data sources. Is this a bug or limitation in Nagios or rrd, or am I doing something wrong.

Unfortunately for some reason my perfdata.log has stopped working. Nagios appears to be configured for bulk mode (without NCPD) for loading the perfdata. The /usr/local/nagios/var/spool/xidpe directory is empty.

I am running Nagios 2012R2.7, but will be upgrading to the latest 2014 next week. I think this was installed by the VMImage.

Thanks in advance,

David

System Profile
Nagios XI Installation Profile

Download Profile

System:
Nagios XI Version : 2012R2.7
mon1.vicroads.its 2.6.32-431.3.1.el6.x86_64 x86_64
CentOS release 6.5 (Final)
Gnome is not installed

Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko
Server Name: mon1.vr.its
Server Address: 149.176.218.231
Server Port: 443

Date/Time
PHP Timezone: Australia/Melbourne
PHP Time: Fri, 20 Feb 2015 16:17:04 +1100
System Time: Fri, 20 Feb 2015 16:17:04 +1100

Nagios XI Data
License ends in: OSPOSP

nagios (pid 10511) is running...
NPCD running (pid 1750).
ndo2db (pid 1802) is running...
CPU Load 15: 2.12
Total Hosts: 51
Total Services: 689
Function 'get_base_uri' returns: https://mon1.vr.its/nagiosxi/
Function 'get_base_url' returns: https://mon1.vr.its/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: https://mon1.vr.its/nagiosxi/includes/c ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: https://localhost/nagiosxi/backend/

Ping Test localhost
Running: /bin/ping -c 3 localhost 2>&1
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.056 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.023/0.043/0.056/0.016 ms

Test wget To locahost
WGET From URL: http://localhost/nagiosql/index.php
Running: /usr/bin/wget http://localhost/nagiosql/index.php
--2015-02-20 16:17:07-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: "/tmp/nagiosql_index.tmp"

0K ..... 100% 288M=0s

2015-02-20 16:17:07 (288 MB/s) - "/tmp/nagiosql_index.tmp" saved [5259/5259]
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issues with Multiple Perfdata graphs for a single servic

Post by lmiltchev »

I believe the issue is caused by the fact that the rrds (the storage mechanism for perfdata) do not support a dynamic number of data sources, and if the number of data sources change, graphing will cease to function correctly. You can try running the "fix_ds_quantity.sh" script to fix the issue:

http://support.nagios.com/wiki/index.ph ... 14_Upgrade

Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
weapon
Posts: 16
Joined: Sun Apr 06, 2014 8:00 pm

Re: Issues with Multiple Perfdata graphs for a single servic

Post by weapon »

Yes, this helped (or the upgrade to 2012.14R2.6)

But...

I have lost my pnp4nagios graphs, whilst the new graphs are nice, they are missing some functionality (multiple separate graphs for services with warning and critical lines)

Is there an easy way to get the pnp4nagios graphs back, or working side by side?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Issues with Multiple Perfdata graphs for a single servic

Post by Box293 »

weapon wrote:Is there an easy way to get the pnp4nagios graphs back, or working side by side?
You can turn off highcharts and use PNP instead.

Admin > System Config > Manage System Config
Use Highcharts for Perfdata Graphs = UN check this box
Click Update Settings
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
weapon
Posts: 16
Joined: Sun Apr 06, 2014 8:00 pm

Re: Issues with Multiple Perfdata graphs for a single servic

Post by weapon »

Thanks for that.

I think that is all working now!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Issues with Multiple Perfdata graphs for a single servic

Post by jolson »

Hello,

Since this post has been resolved, I will be locking out this thread. If you have any additional issues, please feel free to open a new thread. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked