[mrtg] Re: Arithmetic in MRTG

Daniel R. Kilbourne drk at voyager.net
Thu Nov 18 20:33:42 MET 1999


Sure. just do :

mib1 / nuber1 + mib2 / number2


___
Dan



At 04:40 PM 11/18/99 +0100, =?windows-1252?Q?=22G=E5rder=2C_Jacob=22?= wrote:
>What does that look like in the config file?
>
>Is it possible to collect two MIB-values and divide them with two different
>values?
>
>/Jacob
>
>-----Original Message-----
>From: Russel Lampe [mailto:Russel.Lampe at versatel.nl]
>Sent: den 18 november 1999 16:06
>To: 'Daniel R. Kilbourne'; 'mrtg at list.ee.ethz.ch'
>Subject: [mrtg] Re: Arithmetic in MRTG
>
>
>Sometimes a solution is just so simple! It looks like this works just fine.
>
>Thanks!
>
>         -----Original Message-----
>         From:   Daniel R. Kilbourne [SMTP:drk at voyager.net]
>         Sent:   Thursday, November 18, 1999 3:37 PM
>         To:     Russel Lampe; 'Phil Loper'; 'mrtg at list.ee.ethz.ch'
>         Subject:        [mrtg] Re: Arithmetic in MRTG
>
>         Have you tried dividing both individually then adding the result?
>
>         ie: OID / number + OID /  number
>
>
>         ___
>         Daniel R. Kilbourne
>         Voyager.net Network Engineer
>         drk at voyager.net
>         http://Voyager.net
>
>
>         At 03:28 PM 11/18/99 +0100, Russel Lampe wrote:
>         >Hi Phil,
>         >
>         >That looks ok. So you can do any arithmetic in mrtg, but what about
>first
>         >adding up a couple of OID and than dividing it? What it will do is
>to only
>         >divide the last OID. I tried brackets () but that is not allowed in
>mrtg.
>         >
>         >         -----Original Message-----
>         >         From:   Phil Loper [SMTP:Phil at GraceLivingCenters.com]
>         >         Sent:   Thursday, November 18, 1999 3:16 PM
>         >         To:     'Russel Lampe'; 'mrtg at list.ee.ethz.ch'
>         >         Subject:        RE: [mrtg] Arithmetic in MRTG
>         >
>         >         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
>
>         --
>         * 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
>
>--
>* 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