[mrtg] Re: Doing math with Multiple SNMP OID Targets

Purvis, William William.Purvis at compaq.com
Fri Mar 16 03:28:58 MET 2001


Hi All:
	I have been using MRTG for a couple of years and have read the FAQ's
and the documentation.  I have been monitoring some Netware 4.x & 5.x
servers with MRTG and the graphs are created and everything is working
correctly except the calculations for the disk space.  I would like to take
two SNMP OID values which when combined and then subtracted from the total
disk capacity give the correct used space for the system.
	My question is this:  Has anyone tried to do complex math (add,
subtract, multiply, divide) with 2 OIDs and a constant within MRTG?  I have
tried putting the following in the Target parameter, with no luck.

Title[FRC_PAR_01.SYS]: Sys Volume Used Space
Target[FRC_PAR_01.SYS]:4096000-1.3.6.1.4.1.23.2.28.2.14.1.4.1+1.3.6.143.2.28
.2.14.1.5.1&4096000-1.3.6.1.4.1.23.2.28.2.14.1.4.1+1.3.6.143.2.28.2.14.1.5.1
:public at 10.128.1.40
options[FRC_PAR_01.SYS]:growright, gauge
kMG[FRC_PAR_01.SYS]: ,M,G,T,P
MaxBytes[FRC_PAR_01.SYS]:4096000
YLegend[FRC_PAR_01.SYS]: Space in Kilobytes
ShortLEgend[FRC_PAR_01.SYS]: Kilobytes
Legend1[FRC_PAR_01.SYS]:
Legend2[FRC_PAR_01.SYS]:
Legend3[FRC_PAR_01.SYS]:
Legend4[FRC_PAR_01.SYS]:
LegendI[FRC_PAR_01.SYS]:Used Space
LegendO[FRC_PAR_01.SYS]:Used Space

Does anyone have a suggestion.

Thanks in advance,

William Reid Purvis
Compaq Professional Services,
ITP - Infrastructure & Technology Planning Group
e-mail: william.purvis at compaq.com
tel: +61 2 9022 2663
mobile: 0412 255 607



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list