Page 1 of 1

Nagios XI Graphs - not graphing over longer timperiods

Posted: Mon Dec 19, 2016 6:49 pm
by weapon
Hi,

I have a problem with one of my graphs, in that it will show a graph for a 4 hour time period, but not a 24 hour or longer time period. The graph in question is a fairly new check (the performance data was wiped yesterday), but there is a large number (~200) of lines of performance data associated with this check, and I'm not sure if I am overloading the graphing widget.
I have attempted to look at the nagios and nagios XI logs, but have not found anything relevant. Can someone point me in the right direction to find out what the underlying problem is?

(We are running Nagios version 2014R2.7, yes we need to upgrade)

Re: Nagios XI Graphs - not graphing over longer timperiods

Posted: Tue Dec 20, 2016 11:22 am
by avandemore
Is the data collected via NRPE?

And yes you really should upgrade for many reasons including security ones. If you're going to do it soon, I would let this issue lie until after that is complete.

Re: Nagios XI Graphs - not graphing over longer timperiods

Posted: Wed Dec 21, 2016 5:07 pm
by weapon
No we are using the below plugin:
https://exchange.nagios.org/directory/P ... th/details
On a large cisco switch, it might be pulling the traffic data for 50 interfaces in both directions.

Re: Nagios XI Graphs - not graphing over longer timperiods

Posted: Wed Dec 21, 2016 5:49 pm
by avandemore
If you run the check from the command line against one of the large servers, is any of the data truncated?

Re: Nagios XI Graphs - not graphing over longer timperiods

Posted: Wed Dec 21, 2016 5:58 pm
by dwhitfield
additionally, you can look at /usr/local/nagios/var/perfdata.log

Unfortunately, for your case:
This file is related to performance data does not log by default.
But the fix is simple
You can enable logging in /usr/local/nagios/etc/pnp/process-perfdata.pl
with "LOG_LEVEL = 1". This log will contain any timeout errors for perfdata processing and generally will include any errors with
datasources and rrds.

Re: Nagios XI Graphs - not graphing over longer timperiods

Posted: Thu Dec 22, 2016 10:33 pm
by weapon
It can't be a problem with logging the data as the 4hour graph works fine. I'm trying to work out what part generates the graphs and if it has an error message or time-out going on.

Will that log also include logging of errors reading the performance data

Re: Nagios XI Graphs - not graphing over longer timperiods

Posted: Tue Dec 27, 2016 10:18 am
by rkennedy
What type of graphing method do you have selected? (Admin -> System Settings -> Theme & Display -> What is set under the 'Display Settings' section?) Also, what version of XI are you using?

In the past, I've seen this due to incorrect data being placed at datapoints. (I believe it was 0.) Can you view the source of the frame which contains your graph, and post the HTML for us to look at? This should have the dataset contained in it.

Re: Nagios XI Graphs - not graphing over longer timperiods

Posted: Tue Dec 27, 2016 10:36 am
by dwhitfield
In addition to what @rkennedy said, do you have cron or something else cleaning up the data frequently?

Also, it's not clear to me that you answered @avandemore's question from the 21st about the data being truncated.