[mrtg-developers] Mathematical operations on OIDs

nisha nisha.sasindran at gmail.com
Thu Aug 27 13:02:11 CEST 2009


Hi all,

I want to perform mathematical operations on OIDs in the target line. For
example, there are 4 oids as shown below:
	traffic		packet
In	oid1		oid2
Out	oid3		oid4


Now i want to apply the following formula
	traffic in  = oid1 - (oid2 * 5)
	traffic out = oid3 - (oid4 * 10)

My target line in router cfg file is like this:
Target[targetname]: oid1&oid3:comm at hostname - (oid2 * 5)&(oid4 *
8):comm at hostname

Is this possible in MRTG? Can the router cfg file handle oids with
mathematical operations?

Thanks in advance
Nisha
-- 
View this message in context: http://n2.nabble.com/Mathematical-operations-on-OIDs-tp3524231p3524231.html
Sent from the MRTG Developers Mailinglist mailing list archive at Nabble.com.



More information about the mrtg-developers mailing list