Page 1 of 2

Highcharts Graph Interval

Posted: Wed Apr 22, 2015 2:45 pm
by WillemDH
Hello,

We set some graphs to a check interval of 1 minute. The 'points' on the generated graphs however still seem to have an interval of 5 minutes. Should we be able to change interval and see the changes on Highcharts graphs? Or do we have to set some setting in order to see the interval change on the graph?

Grtz

WIllem

Re: Highcharts Graph Interval

Posted: Wed Apr 22, 2015 4:00 pm
by abrist
The rrds only hold 48 hours of 1 minute information and then the step is 5 minutes. These values are controlled by a system wide config file: rra.cfg:

Code: Select all

cat /usr/local/nagios/etc/pnp/rra.cfg
#
# PNP default RRA config
#
# you will get 400kb of data per datasource
#
# 2880 entries with 1 minute step = 48 hours
#
RRA:AVERAGE:0.5:1:2880
#
# 2880 entries with 5 minute step = 10 days
#
RRA:AVERAGE:0.5:5:2880
#
# 4320 entries with 30 minute step = 90 days
#
RRA:AVERAGE:0.5:30:4320
#
# 5840 entries with 360 minute step = 4 years
#
RRA:AVERAGE:0.5:360:5840

RRA:MAX:0.5:1:2880
RRA:MAX:0.5:5:2880
RRA:MAX:0.5:30:4320
RRA:MAX:0.5:360:5840

RRA:MIN:0.5:1:2880
RRA:MIN:0.5:5:2880
RRA:MIN:0.5:30:4320
RRA:MIN:0.5:360:5840
There are two things to note here:
1. Changing the rra will only effect new rrds, you will have to delete the old rrd to get it to be generated with the new settings.
2. Changing the rra may not effect the graph display as highcharts and pnp4nagios both use their own configs for configuring the display.

Re: Highcharts Graph Interval

Posted: Wed Apr 22, 2015 4:12 pm
by WillemDH
Hey Andy,

Thanks for your answer. So I was actually talking about the Highchart display setting. Could you please elaborate on this? We would like to see one minute interval graphs for certain high critical layer 2 core switches. As we are using a gearman worker node on which mrtg generates the graphs, we already configured mrtg to generate the mrtg rrd's every 1 minute for the interfaces of these core switches, but the Highcharts graps are not showing 1 minute intervals, but 5 minute intervals.

Grtz

Willem

Re: Highcharts Graph Interval

Posted: Wed Apr 22, 2015 4:19 pm
by abrist
WillemDH wrote:we already configured mrtg to generate the mrtg rrd's every 1 minute for the interfaces of these core switches, but the Highcharts graps are not showing 1 minute intervals, but 5 minute intervals.
These settings would most likely only effect the mrtg rrds located at /var/lib/mrtg. The rdds used for checks and subsequent graphing in the UI are located in /usr/local/nagios/share/perfdata and use the rra.cfg. As bandwidth checks are actually run from the check_rrdtraf plugin, against the mrtg rrds ion /var/lib/mrtg, the graphable intervals will still only be 5 minutes.
There may be a way to hack out the highcharts display to graph the rrds in /var/lib/mrtg, but that fuctionality current does not exist in XI.

Re: Highcharts Graph Interval

Posted: Wed Apr 22, 2015 4:39 pm
by WillemDH
Andy,

Thanks we know how the mrtg setup works, but are you saying there is no way to display Highcharts graphs with a one minute interval? We of course also set the check_rrdtraf at an interval of 1 minute.. (on the gearman worker node)

Grtz

Re: Highcharts Graph Interval

Posted: Wed Apr 22, 2015 5:05 pm
by abrist
WillemDH wrote:but are you saying there is no way to display Highcharts graphs with a one minute interval?
I am unsure if this is currently possible. Maybe by changing the highcharts php? (may be encrypted though)
WillemDH wrote:We of course also set the check_rrdtraf at an interval of 1 minute..
That may be fine, but the *rrds* generated from check_rrdtraf will still use the default rra.cfg (with 5 minute steps).

Re: Highcharts Graph Interval

Posted: Thu Apr 23, 2015 2:37 am
by WillemDH
I am unsure if this is currently possible. Maybe by changing the highcharts php? (may be encrypted though)
This seems really dissapointing. Could you please tell me what config file we would need to be edited for Highcharts? Imho it seems really important to enable us to differentiate graphs with higher intervals. Should I make a feature request for this?

Re: Highcharts Graph Interval

Posted: Thu Apr 23, 2015 10:46 am
by abrist
WillemDH wrote:Should I make a feature request for this?
That would probably be best. Make sure to link the tracker request here. I will inquire about this with the devs as well.

Re: Highcharts Graph Interval

Posted: Thu Apr 23, 2015 11:08 am
by WillemDH
Hey Andy,

I made

http://tracker.nagios.com/view.php?id=717 for the lower Highchart graph interval.

But also

http://tracker.nagios.com/view.php?id=716

to enable us to truly stack graphs. I set this one to higher priority, as this has been asked really many times. Colleagues tend to say this is possible in Zabbix, and as I constantly have to defend myself for some reason for my choice of Nagios XI, I think enabling us to stack datasources in the Graph Explorer would really benefit XI. SOme usage examples would be to stack datasources of different interfaces of for example our switch which connects us to the Internet so we can see all interfaces stacked and the total.

I also made

http://tracker.nagios.com/view.php?id=715

as I was thinking it might be supercool to somehow be able to link to graphs only.

Grtz and sorry for all the work I'm giving you guys... :p Let me know if there are any questions. :)

Willem

Re: Highcharts Graph Interval

Posted: Thu Apr 23, 2015 5:00 pm
by ssax
Thank you for creating those feature requests, is it ok if we lock this thread up?