[mrtg] Re: Arithmetic in MRTG

Phil Loper Phil at GraceLivingCenters.com
Thu Nov 18 15:16:14 MET 1999


Here is a clip from a config file that grabs the temperature of probes in a
Dell PowerEdge server and converts celcius to farenheit.  It works
perfectly.

#---------------------------------------------------------------------------
----------

Title[^]: CPU1 Temp:
Target[NTFS1_CPU1_TMP]:
1.3.6.1.4.1.674.10891.300.1.5.2.2.1.1&1.3.6.1.4.1.674.10891.300.1.5.2.2.1.1:
private at NTFS1 / 10 * 9 / 5 + 32
MaxBytes[NTFS1_CPU1_TMP]: 200
Title[NTFS1_CPU1_TMP]: NTFS1
PageTop[NTFS1_CPU1_TMP]: <H2>Temperature of CPU1 on NTFS1</H2>
Options[NTFS1_CPU1_TMP]: growright, gauge, absolute, transparent
#Unscaled[NTFS1_CPU1_TMP]: dwmy
#Supress[NTFS1_CPU1_TMP]: dwmy
#XSize[NTFS1_CPU1_TMP]: 380
#YSize[NTFS1_CPU1_TMP]: 100
YLegend[NTFS1_CPU1_TMP]: Temp (Deg)
ShortLegend[NTFS1_CPU1_TMP] : (Deg)
Legend1[NTFS1_CPU1_TMP]: Temperature in Degrees
Legend2[NTFS1_CPU1_TMP]: Temperature in Degrees
#Legend3[NTFS1_CPU1_TMP]:
#Legend4[NTFS1_CPU1_TMP]:
LegendI[NTFS1_CPU1_TMP]: Temp:&nbsp
LegendO[NTFS1_CPU1_TMP]: Temp:&nbsp

#---------------------------------------------------------------------------
----------

-----Original Message-----
From: Russel Lampe [mailto:Russel.Lampe at versatel.nl]
Sent: Thursday, November 18, 1999 5:06 AM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] Arithmetic in MRTG


Can anyone tell me what kind of Arithmetic is possible in MRTG? I want to
add a couple of MIB values and divide that by a constant. I tried the add
part and that works. I have a problem with dividing it through a constant
number

Best Regards,
Russel Lampe  

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list