[mrtg] summarizing different types of data

Steve Shipway s.shipway at auckland.ac.nz
Wed Aug 6 00:31:34 CEST 2008


You can do this if you have the Routers2 frontend.

First, on the one returning Kilobytes, use

Factor[]: 1024

To convert the value to bytes.  This way we're all talking the same units.

Next, you can define a userdefined summary graph over the two Targets with total enabled:

routers.cgi*Graph[target1]: mysummary total
routers.cgi*Graph[target2]: mysummary total
routers.cgi*Desc[mysummary]: My Summary Graph
routers.cgi*ShortDesc[mysummary]: Both

Hope this helps,

Steve

________________________________
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Gabor Tokaji
Sent: Wednesday, 6 August 2008 02:24
To: mrtg at lists.oetiker.ch
Subject: [mrtg] summarizing different types of data

hi,

I have 2 network devices. one of them is a 10 Gbps Foundry switch which which returns its bandwidth usage in Gauge32. The other returns the same value using Integers. The Gauge32 is also providing its value in kilobytes, vs the other one's bytes.
I need to summarize these two.
I am not sure how to go about it. the 10 Gbps device's config looks something like this:

LoadMIBS: (path specified, mib is correct)MIB-OID-FOUNDRY-SN-SWITCH-GROUP-MIB.mib
WorkDir: (specified, irrelevant)

Target[sum-net]: .1.3.6.1.4.1.1991.1.1.3.3.5.1.54.22&.1.3.6.1.4.1.1991.1.1.3.3.5.1.55.22:public at y.y.y.y:::::2 * 128
Options[sum-net]: Gauge, nopercent
Title[sum-net]:
MaxBytes[sum-net]: 100000000000
PageTop[sum-net]: <H1>Net Total Traffic</H1>

The non-10 Gig thing's config is something like this:

WorkDir: (specified, irrelevant)

Target[sum-net1]: 1:public at x.x.x.x:::::2
Title[sum-net1]: device1
MaxBytes[sum-net1]: 10000000000
PageTop[sum-net1]: <H1>Net1 Total Traffic</H1>


Both these work perfectly. However, how do I add them up? clearly .1.3.6.1.4.1.1991.1.1.3.3.5.1.54.22&.1.3.6.1.4.1.1991.1.1.3.3.5.1.55.22:public at y.y.y.y:::::2 * 128 + 1:public at x.x.x.x:::::2 in this case will not work.

Any insight would be most appreciated.

thank you
Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080806/d12eeba9/attachment.html 


More information about the mrtg mailing list