[mrtg] Re: OID Math question

Duncan Wallace dwallace at 800.com
Fri Jun 30 00:45:22 MEST 2000


Figured it out...Patience and trying to do this remotely was my enemy...And
remember, give it a few cycles before changing your calculations.


Last, Thanks to all for your input (Especially 'eyal at acenet.co.za'), if not
for waiting for your responses, I would have given up on this one..


Here is my config that seems to be working fine...


# Temperature (F)
Target[a.b.c.d.server_room_temp]:(((1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1
.9.9.13.1.3.1.3.1:public at router1temp * 1.8 + 32 +
1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3.1:public at router2temp
* 1.8 + 32 +
1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3.1:public at router3temp
* 1.8 + 32) /3) - 4) 
Options[a.b.c.d.server_room_temp]: gauge, noinfo, absolute
MaxBytes[a.b.c.d.server_room_temp]: 140
Title[a.b.c.d.server_room_temp]: Temperature of 800.COM Server Room
PageTop[a.b.c.d.server_room_temp]: <H1> Temperature of 800.COM Server Room
</H1>
Ylegend[a.b.c.d.server_room_temp]: Degrees Fahrenheit
ShortLegend[a.b.c.d.server_room_temp]: &nbsp;&#176;F
Colours[a.b.c.d.server_room_temp]:
BLUE#1000ff,BLUE#1000ff,BLUE#1000ff,BLUE#1000ff
LegendI[a.b.c.d.server_room_temp]: &nbsp;
LegendO[a.b.c.d.server_room_temp]:

-----Original Message-----
From: Atish Nigam [mailto:atnigam at cisco.com]
Sent: Thursday, June 29, 2000 3:29 PM
To: Duncan Wallace
Subject: Re: [mrtg] OID Math question


i am also trying to do something similar to this, has anybody given you any 
help?  I can't figure out how to do this either, and i have been trying for 
a while.

thanks,
atish

At 09:35 AM 6/29/00 -0700, you wrote:
>I am trying to do some math here...What I want to do is add the two, divide
>by two and subtract 4. So, (((temp1 + temp2) / 2) - 4) . Any clues, I have
>tried the obvious.  Is there a delimiter I need to introduce to isolate the
>operations ???
>
>
>Thanks in advance
>
>
># Temperature (F)
>Target[x.x.x.temp1]:1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3
.
>1:public at x.x.x.x * 1.8 + 32
>Options[x.x.x.temp1]: gauge, noinfo, absolute
>MaxBytes[x.x.x.temp1]: 120
>Title[x.x.x.temp1]: Temperature of Cisco
>PageTop[x.x.x.temp1]: <H1> Temperature of Cisco  </H1>
>Ylegend[x.x.x.temp1]: Degrees Fahrenheit
>ShortLegend[x.x.x.temp1]: &nbsp;&#176;F
>Colours[x.x.x.temp1]: BLUE#1000ff,BLUE#1000ff,BLUE#1000ff,BLUE#1000ff
>LegendI[x.x.x.temp1]: &nbsp;
>LegendO[x.x.x.temp1]:
>
>#--------------------------------------------------------------------------
-
>---------------------------------------------
>
># Temperature (F)
>Target[x.x.x.temp2]:1.3.6.1.4.1.9.9.13.1.3.1.3.1&1.3.6.1.4.1.9.9.13.1.3.1.3
.
>1:public at x.x.x.x * 1.8 + 32
>Options[x.x.x.temp2]: gauge, noinfo, absolute
>MaxBytes[x.x.x.temp2]: 120
>Title[x.x.x.temp2]: Temperature of Cisco
>PageTop[x.x.x.temp2]: <H1> Temperature of Cisco  </H1>
>Ylegend[x.x.x.temp2]: Degrees Fahrenheit
>ShortLegend[x.x.x.temp2]: &nbsp;&#176;F
>Colours[x.x.x.temp2]: BLUE#1000ff,BLUE#1000ff,BLUE#1000ff,BLUE#1000ff
>LegendI[x.x.x.temp2]: &nbsp;
>LegendO[x.x.x.temp2]:
>
>Thanks,
>
>Duncan
>
>Duncan Wallace
>Network Engineer
>800.COM Inc.
>1516 NW Thurman St
>Portland, OR  97209-2517
>
>Direct: 503.944.3671
>Cell: 503.969.8248
>Fax: 503.943.9371
>Web: http://800.com
>Email: Dwallace at 800.com
>
>
>--
>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


--
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