Highcharts Graph Interval

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Highcharts Graph Interval

Post 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
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Highcharts Graph Interval

Post 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.
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Highcharts Graph Interval

Post 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
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Highcharts Graph Interval

Post 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.
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Highcharts Graph Interval

Post 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
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Highcharts Graph Interval

Post 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).
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Highcharts Graph Interval

Post 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?
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Highcharts Graph Interval

Post 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.
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Highcharts Graph Interval

Post 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
Nagios XI 5.8.1
https://outsideit.net
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Highcharts Graph Interval

Post by ssax »

Thank you for creating those feature requests, is it ok if we lock this thread up?
Locked