Page 1 of 1

Bandwidth Dashboard

Posted: Fri May 10, 2013 12:47 pm
by thepacketslinger
I'm trying to create a dashboard that presents the bandwidth utilization for switchports that connect to our vendor controlled routers. We have about 10 locations and I'd like to add the bandwidth graph from each switchport that connects to the router router in each location. This is simple enough, but the presentation of the data leaves a few things I'd like to modify.

1. I have added a description to each graph, but this is only available if a user mouses over on the graph. The graph shows "Datasource: ds1", but I'm not sure how to change that.
2. Thresholds for Warning and Critical are not shown in the graph. Circuit speeds and thresholds are different at each location and I'd like to display the bandwidth relative to the thresholds all in one place.
3. On the left it says Mb/s but if traffic is below a certain amount, traffic is displayed as 100-900 m

Is there a better way to go about this, or is this just not something that is commonly done?

Re: Bandwidth Dashboard

Posted: Fri May 10, 2013 3:49 pm
by sreinhardt
I think these changes are possible. However it would likely require changes to some of our protected code. We will discuss with a few developers, but I might also suggest to contact sales and look into custom development of a new dashlet for you. I think this could be done pretty quickly.

Re: Bandwidth Dashboard

Posted: Thu Aug 08, 2013 8:38 pm
by transmax
Hi,

This feature/question is of great interest to me as well. Specifically I'm interested in part 2 of the original post:

2. Thresholds for Warning and Critical are not shown in the graph. Circuit speeds and thresholds are different at each location and I'd like to display the bandwidth relative to the thresholds all in one place.

I know when I create performance data through a plugin I can define these thresholds and they show up as lines on the graph. Can this be done for Bandwidth graphs created via mrtg?

Should I open a separate query for this?

Cheers,

Lee Benson
Transmax

Re: Bandwidth Dashboard

Posted: Fri Aug 09, 2013 11:04 am
by abrist
2. Thresholds will only display as you near the threshold. The graph images, when generated, will do so based on the max 'y' value recorded. When setting up monitoring through the switch/routing wizard, thresholds can be specified. In you example, both of these ports are averaging less than 1Mbps - If these are 10/100 or gigabit, the recorded values are much smaller than the default thresholds.

3. 'm' represents 'mils' - so 600m is equivalent to 0.6 Mbps.

Re: Bandwidth Dashboard

Posted: Mon Aug 12, 2013 8:58 pm
by transmax
Hi again,

Sorry to disagree, but your comment on 2) is incorrect.

Please see images attached. In the last month, the warning threshold was passed twice. We got alerts (good) but the graph does NOT show the threshold lines.

Cheers,

Lee
ScreenHunter_77 Aug. 13 11.53.jpg
ScreenHunter_77 Aug. 13 11.54.jpg

Re: Bandwidth Dashboard

Posted: Tue Aug 13, 2013 10:20 am
by abrist
transmax wrote:Sorry to disagree, but your comment on 2) is incorrect.
Seems that is the case with the mrtg template. You could add the threshold lines by adding a few lines to the mrtg template:

Code: Select all

vi /usr/local/nagios/share/pnp/templates/check_xi_service_mrtgtraf.php
Add the following lines to the file before the GPRINT statements:

Code: Select all

$def[1] .= "HRULE:$WARN[1]#ffff00:\"IN Warning $WARN[1]$UNIT[1] \" " ;
$def[1] .= "HRULE:$CRIT[1]#ff0000:\"IN Critical $CRIT[1]$UNIT[1] \" " ;
$def[1] .= "HRULE:$WARN[2]#ffcc00:\"OUT Warning $WARN[2] $UNIT[2] \" " ;
$def[1] .= "HRULE:$CRIT[2]#a00000:\"OUT Critical $CRIT[2] $UNIT[2] \" " ;
Make sure that you do not add any whitespace to the end of this file and that you edit it from the cli, not in windows through filezilla, etc.

I will talk to the devs as I am unsure why this was not a part of the template to begin with.