[mrtg] Re: Math for temperature monitoring...Marconi (Fore) ASX-1000 ATM switches

Barron Hulver barron at po.cwru.edu
Wed Jul 12 15:56:36 MEST 2000




> -----Original Message-----
> From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
> Behalf Of Isaac Grover
> Sent: Tuesday, July 11, 2000 7:55 PM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] Math for temperature monitoring
>
>
>
> Hello everyone,
>
> I would like to monitor our Xylan equipment's temperature via mrtg
> and have found the following four OIDs that may be of some use to
> me:
>
> 1.3.6.1.4.1.800.2.1.5.1.0 (chasEnvrmnt1TempRange1.0)
> 1.3.6.1.4.1.800.2.1.5.2.0 (chasEnvrmnt1TempRange2.0)
> 1.3.6.1.4.1.800.2.1.5.3.0 (chasEnvrmnt2TempRange1.0)
> 1.3.6.1.4.1.800.2.1.5.4.0 (chasEnvrmnt2TempRange2.0)
>
> The first two OIDs consistently report an integer value of 4, and
> the last two report an integer value of 2.  Xylan's tech guys don't
> know much about SNMP, just how to fix broken topologies.
>
> Could anyone help me out with the math to make sense of these
> numbers for an actual human?
>
> --
> Isaac Grover - isaac at coe.engr.sjsu.edu
> SJSU College of Engineering, ECS / Networking
> ENG 237, (408) 924-4074
>
> --
> 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
>
>


Here is how we track the temperature of several Marconi (Fore) ASX-1000
switches.  I'm sure there are other ways to do this as well.  You should be
able to do the math calculation right on the Target line instead of invoking
an external script.

Barron



$ crontab -l | grep  mrtgtemperatures
9,39 * * * * <mrtg program>  <directory>/mrtg.cfg





$more  mrtg.cfg
WorkDir: <directory>
Refresh: 600
Interval: 30

Options[_]: absolute, gauge, growright, nopercent


Title[bingham]: Bingham Temperature
PageTop[bingham]: <h2> Bingham Chassis Temperature </h2>
        <hr>
        Above 43C or 109F is <b> Overheating! </b> <br> <br>
        Celsius to Farenheit conversion:
        (9/5) * C + 32 = F
Target[bingham]: `<directory>/bingham.sh`
MaxBytes[bingham]: 212
YLegend[bingham]:  Degrees Celsius (F=(9/5)C+32)
ShortLegend[bingham]: degrees
LegendI[bingham]: &nbsp;Celsius
LegendO[bingham]: &nbsp;Farenheit
Legend1[bingham]: Degrees Celsius
Legend2[bingham]: Degrees Farenheit






$ cat  bingham.sh
#!/bin/bash

cd <to the directory>


echo `/usr/local/bin/snmpget -q <ip> <ro name>
.1.3.6.1.4.1.326.2.2.1.4.7.3.1.2.4`  #direct input for Celsius temperature
echo "9*`/usr/local/bin/snmpget -q <ip> <ro name>
.1.3.6.1.4.1.326.2.2.1.4.7.3.1.2.4`/5 +32" | /bin/bc  #calculated Farenheit
echo #blank line for uptime field
echo #blank line for description field





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