[mrtg] summarizing different types of data

Gabor Tokaji gabor.tokaji at gmail.com
Tue Aug 5 16:23:41 CEST 2008


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/20080805/c62b185e/attachment.html 


More information about the mrtg mailing list