<br><font size=2 face="sans-serif">Hi David</font><br><br><font size=2 face="sans-serif">I just tested your template against
my MGE Galaxy. There are some minor issues:</font><br><br><font size=2 face="sans-serif">1.  battery voltage is displayed
as 42100V, yeah. I solved that with setting the transform of "upsBatteryVoltageTxt"
to "{upsBatteryVoltage} / 10" instead of "x 10"</font><br><font size=2 face="sans-serif">2.  battery current is 0A, it seems
that the MGE does not deliver this value</font><br><font size=2 face="sans-serif">3.  message test is yellow: "primary
OID upsAlarmDescrTxt in table is a non-repeater", I don't know how
to solve that</font><br><font size=2 face="sans-serif">4.  output power is 0kW. If I use
the special MGE MIB I get real results</font><br><font size=2 face="sans-serif">5.  input power displays unrealistic
results:</font><br><font size=2 face="sans-serif">         Line
bads: 3</font><br><font size=2 face="sans-serif">         Input
configuration: 3 lines of 0 V AC @ 0.0 Hz</font><br><br><font size=2 face="sans-serif">         UPS
Input</font><br><font size=2 face="sans-serif">         Phase
Freq Volts Amps Power </font><br><font size=2 face="sans-serif">        1 50.0 Hz
 390V 28.0A 2746W </font><br><font size=2 face="sans-serif">        2 50.0 Hz
 395V 28.0A 2835W </font><br><font size=2 face="sans-serif">        3 50.0 Hz
 391V 28.0A 2765W </font><br><font size=2 face="sans-serif">6.  I am missing some temperature
tests</font><br><br><font size=2 face="sans-serif">So now I am unsure what to do.</font><br><font size=2 face="sans-serif">I can ignore these issues</font><br><font size=2 face="sans-serif">I can modify your template to use the
OIDs of the vendor's MIB</font><br><font size=2 face="sans-serif">I can use my own template which does
not display so much results, but uses the vendor's MIB</font><br><br><font size=2 face="sans-serif">It seems that the vendors does not support
the standard UPS MIB very cleanly. So I think we have to build a special
template for every vendor. :-(</font><br><br><font size=2 face="sans-serif">But even if I don't use your template
it was very helpful. It is a very good demonstration how to use tables
and other stuff in devmon. I didn't try the graphing now, but I will do
it now. :-)</font><br><br><font size=2 face="sans-serif">Thank you for your work!!!</font><br><br><font size=2 face="sans-serif">Thorsten</font><br><br><tt><font size=2>david.baldwin@ausport.gov.au schrieb am 11.09.2009
07:26:30:<br><br>> My UPS template has been tweaked and is now available from the devmon
SF<br>> repository:<br>> http://devmon.svn.sourceforge.net/viewvc/devmon/trunk/templates/ups.<br>> tar.gz?view=tar<br>> <br>> README file includes hobbitgraph.cfg section and info on setting up
RRD<br>> collection and graphing.<br>> <br>> Let me know if any problems. The msgs test attempts to show the<br>> AlarmDesc repeater which is empty unless there are any alarms which
may<br>> cause issues - I've increased the number of "not found"
repeaters<br>> slightly in my copy of devmon to be more lenient. The line is in<br>> modules/dm_snmp.pm<br>> <br>>   if($failed_query > 2) {<br>> <br>> I increased 2 to 6.<br>> <br>> <br>> ><br>> > your example was very helpfull. I now managed to get a working
devmon<br>> > template for my MGE UPS. Only graphing isn't working now.<br>> ><br>> > BTW.: anyone knows how I can format output numbers in devmon.
I now<br>> > get the voltages with two digits behind the colon, but these
are<br>> > always zero. So I want to omit these digits at all.<br>> ><br>> The number of decimal digits displayed is controlled in the transforms<br>> file with MATH operator by adding ": N" - e.g.<br>> <br>> upsInputCurrentA      : MATH  : {upsInputCurrent}
/ 10 : 1<br>> <br>> will display for example 10.1 - change to ": 0" to get 10<br>> <br>> David.<br>> ><br>> > Thorsten Erdmann<br>> ><br>> ><br>> > david.baldwin@ausport.gov.au schrieb am 10.09.2009 09:51:49:<br>> ><br>> > > Sorry all, didn't get time today to update the UPS template
today.<br>> > ><br>> > > It has separate graphs for input voltage, output phase voltages,
battery<br>> > > levels and separate tests/alerting on various conditions
- input<br>> > > voltage=0, battery time remaining <15 mins, output phase
overload, etc.<br>> > ><br>> > > David.<br>> > > > Oops, forgot to add the graphing bit.<br>> > > >  <br>> > > > Usual stuff.<br>> > > > In hobbitserver.cfg<br>> > > > Add "ups=ncv" to TEST2RRD=<br>> > > > Add "ups" to GRAPHS=<br>> > > > Add line NCV_ups="Load:GAUGE,Charge:GAUGE"<br>> > > >  <br>> > > > Add this to hobbitgraph.cfg<br>> > > > [ups]<br>> > > >         TITLE UPS Charge<br>> > > >         YAXIS Power<br>> > > >         -u 100<br>> > > >         -l 0<br>> > > >         DEF:u=ups.rrd:Charge:AVERAGE<br>> > > >         DEF:p=ups.rrd:Load:AVERAGE<br>> > > >         LINE2:u#00CC00:Charge<br>> > > >         LINE2:p#0000FF:Load<br>> > > >         COMMENT:\n<br>> > > >         GPRINT:u:LAST:Charge  
\: %5.1lf%s (cur)<br>> > > >         GPRINT:u:MAX: \: %5.1lf%s
(max)<br>> > > >         GPRINT:u:MIN: \: %5.1lf%s
(min)<br>> > > >         GPRINT:u:AVERAGE: \: %5.1lf%s
(avg)\n<br>> > > >         GPRINT:p:LAST:Load  
\: %5.1lf%s (cur)<br>> > > >         GPRINT:p:MAX: \: %5.1lf%s
(max)<br>> > > >         GPRINT:p:MIN: \: %5.1lf%s
(min)<br>> > > >         GPRINT:p:AVERAGE: \: %5.1lf%s
(avg)\n<br>> > > > Cheers<br>> > > >      Vernon<br>> > > >  <br>> > > >  <br>> > > ><br>> > > ><br>> > ------------------------------------------------------------------------<br>> > > > *From:* Everett, Vernon [mailto:Vernon.Everett@woodside.com.au]<br>> > > > *Sent:* Thursday, 10 September 2009 2:50 PM<br>> > > > *To:* 'hobbit@hswn.dk'<br>> > > > *Subject:* RE: [hobbit] Antwort: RE: [hobbit] UPS monitoring
using<br>> > devmon<br>> > > ><br>> > > > I wrote this a while back for our MGEs.<br>> > > > As you can see, it predates my introduction to devmon
and indicates a<br>> > > > complete lack of understanding of SNMP.<br>> > > > That being said, the code and the MIBs might give you
a good<br>> > > > indication of where to start.<br>> > > > (Either that, or you can just use it as "good
enough")<br>> > > > This was designed to run on the hobbit/xymon server.<br>> > > >  <br>> > > > I have been meaning to rewrite this, or move it to
devmon, but just<br>> > > > haven't had the time.<br>> > > > (And it's doing an adequate job for now.)<br>> > > >  <br>> > > > Cheers<br>> > > >       V<br>> > > >  <br>> > > > bb-host entries look like this<br>> > > > 1.2.3.4     galaxy3000    # http://1.2.3.4/ups_prop.htm
ups galaxy3000<br>> > > > COMMENT:"Meaningful Comment if required"<br>> > > > 2.3.4.5   Karratha_UPS    # http://2.3.4.5/ups_prop.htm
ups galaxy3000<br>> > > > COMMENT:"Insert Comment"<br>> > > ><br>> > > >  <br>> > > >  <br>> > > >  <br>> > > > --- snip---<br>> > > >  <br>> > > > cat ups.ksh<br>> > > > #!/bin/ksh<br>> > > > DATE=$(date)<br>> > > > #set -x<br>> > > > SPACER="            
                     
                     
 <br>> >        <br>> > > > "<br>> > > > BBTMP=/tmp<br>> > > > #BBHOSTS=/etc/hobbit/bb-hosts<br>> > > > #OUT=$BBTMP/upspage<br>> > > > BBHOSTLIST="$BBHOSTS $(grep ^include $BBHOSTS
| awk '{ print $2 }')" #<br>> > > > Make sure we read the include files too<br>> > > > #grep -h " ups " $BBHOSTLIST | egrep -v "^page|^include"<br>> > > > grep -h " ups " $BBHOSTLIST | egrep -v "^page|^include"
| while read<br>> > > > IP UPSNAME HASH URL UPS TYPE OTHER<br>> > > > do<br>> > > >    echo $IP $UPSNAME<br>> > > >    ping -c1 $IP > /dev/null<br>> > > >    if [ $? -eq 0 ]<br>> > > >    then<br>> > > >       COLOUR=green<br>> > > >       case $TYPE in<br>> > > >          galaxy3000)<br>> > > >             > $OUT.warn<br>> > > >             > $OUT.tmp<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > SNMPv2-SMI::mib-2.33.1.1.1.0)<br>> > > >             DEVICE=${TEMP##*:}
      # String<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > SNMPv2-SMI::mib-2.33.1.1.2.0)<br>> > > >             MODEL=${TEMP##*:}
       # String<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > SNMPv2-MIB::sysLocation.0)<br>> > > >             LOCATION=${TEMP##*:}
            # String<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > SNMPv2-SMI::mib-2.33.1.1.4.0)<br>> > > >             SERIAL=${TEMP##*:}
              # String<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.4.8.0)<br>> > > >             LOWBATTERY=${TEMP##*:}
          # Integer % Point at<br>> > > > which shutdown triggered<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.5.1.0)<br>> > > >             TIME_REMAIN=${TEMP##*:}
    # Integer seconds<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.5.2.0)<br>> > > >             BATTERY_LEVEL=${TEMP##*:}
  # Integer %<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.5.9.0)<br>> > > >             BATTERY_FAULT=${TEMP##*:}
  # Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.5.11.0)<br>> > > >             BATTERY_REPLACE=${TEMP##*:}
# Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.5.15.0)<br>> > > >             CHARGER_FAULT=${TEMP##*:}
  # Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.7.3.0)<br>> > > >             OUT_ON_BAT=${TEMP##*:}
     # Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.7.4.0)<br>> > > >             OUT_ON_BYPASS=${TEMP##*:}
  # Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.7.10.0)<br>> > > >             OUT_OVERLOAD=${TEMP##*:}
   # Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.7.10.0)<br>> > > >             COMMSOK=${TEMP##*:}
        # Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.6.1.0)<br>> > > >             INPHASES=${TEMP##*:}
       # Integer 1 or 3<br>> > > >  <br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > 1.3.6.1.4.1.705.1.6.2.1.2)<br>> > > >             INVOLT=${TEMP##*:}
         # Integer 10ths of a volt<br>> > > >  <br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > 1.3.6.1.4.1.705.1.6.2.1.3)<br>> > > >             INFREQ=${TEMP##*:}
         # Integer 10ths of a Hertz<br>> > > >  <br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > 1.3.6.1.4.1.705.1.6.2.1.6)<br>> > > >             INAMPS=${TEMP##*:}
         # Integer 10ths of an Amp<br>> > > >  <br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.6.3.0)<br>> > > >             INOK=${TEMP##*:}
           # Integer 1=yes 2=no<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.6.4.0)<br>> > > >             INFAILCAUSE=${TEMP##*:}
    # Integer 1=no fault<br>> > > >                
                     #
        2=bad voltage<br>> > > >                
                     #
        3=bad frequency<br>> > > >                
                     #
        4=no voltage<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.7.1.0)<br>> > > >             OUTPHASES=${TEMP##*:}
      # Integer 1 or 3<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > 1.3.6.1.4.1.705.1.7.2.1.2)<br>> > > >             OUTVOLT=${TEMP##*:}
        # Integer 10ths of a volt<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > 1.3.6.1.4.1.705.1.7.2.1.3)<br>> > > >             OUTFREQ=${TEMP##*:}
        # Integer 10ths of a Hertz<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > 1.3.6.1.4.1.705.1.7.2.1.4)<br>> > > >             OUTLOAD=${TEMP##*:}
        # Integer %<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP<br>> > 1.3.6.1.4.1.705.1.7.2.1.5)<br>> > > >             OUTAMPS=${TEMP##*:}
        # Integer 10ths of an Amp<br>> > > >             TEMP=$(snmpget
-v1 -c public $IP 1.3.6.1.4.1.705.1.7.11.0)<br>> > > >             OVERTEMP=${TEMP##*:}
       # Integer 1=yes 2=no<br>> > > >             echo "Manufacturer
                     
   "$DEVICE | sed<br>> > > > 's/"//g' >> $OUT.tmp<br>> > > >             echo "Model
                     
         "$MODEL | sed<br>> > > > 's/"//g' >> $OUT.tmp<br>> > > >             echo "Serial
Number                    
   "$SERIAL | sed<br>> > > > 's/"//g' >> $OUT.tmp<br>> > > >             echo "Location
                     
      "$LOCATION |<br>> > > > sed 's/"//g' >> $OUT.tmp<br>> > > >             echo >>
$OUT.tmp<br>> > > >             #$LOWBATTERY<br>> > > >             #WARN=""<br>> > > >             #[ -z "$TIME_REMAIN"
] && TIME_REMAIN=0<br>> > > >             #[ $TIME_REMAIN
-lt 1200 -a "$COLOUR" != "red" ] &&<br>> > > > COLOUR=yellow<br>> > > >             #[ $TIME_REMAIN
-lt 1200 ] && WARN="Time Remaining low"<br>> > > >             #[ $TIME_REMAIN
-lt 600 ] && COLOUR=red<br>> > > >             #[ $TIME_REMAIN
-lt 600 ] && WARN="Time Remaining<br>> > critical"<br>> > > >             #[ "$WARN"
!= "" ] && echo $WARN >> $OUT.warn<br>> > > >             ((s=$TIME_REMAIN%60))<br>> > > >             ((m=$TIME_REMAIN/60))<br>> > > >             echo "Time
Remaining                  
     "$m Minutes $s<br>> > > > Seconds >> $OUT.tmp<br>> > > >             WARN=""<br>> > > >             [ -z "$BATTERY_LEVEL"
] && BATTERY_LEVEL=0<br>> > > >             [ $BATTERY_LEVEL
-lt 95 -a "$COLOUR" != "red" ] &&<br>> > > > COLOUR=yellow<br>> > > >             [ $BATTERY_LEVEL
-lt 95 ] && WARN="Battery level low"<br>> > > >             [ $BATTERY_LEVEL
-lt 50 ] && COLOUR=red<br>> > > >             [ $BATTERY_LEVEL
-lt 50 ] && WARN="Battery level critical"<br>> > > >             [ "$WARN"
!= "" ] && echo $WARN >> $OUT.warn<br>> > > >             echo "Battery
Level                    
   "$BATTERY_LEVEL<br>> > > > % >> $OUT.tmp<br>> > > >             BATTERY_LEVEL=$(echo
$BATTERY_LEVEL | sed 's/[ \t]*//')<br>> > > >             if [ $BATTERY_FAULT
-eq 1 ]<br>> > > >             then<br>> > > >                BF=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"Battery Fault!" >> $OUT.warn<br>> > > >             else<br>> > > >                BF=No<br>> > > >             fi<br>> > > >             echo "Battery
Fault                    
    "$BF >><br>> > $OUT.tmp<br>> > > >             if [ $BATTERY_REPLACE
-eq 1 ]<br>> > > >             then<br>> > > >                BR=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"Battery replacement required" >> $OUT.warn<br>> > > >             else<br>> > > >                BR=No<br>> > > >             fi<br>> > > >             echo "Replace
Battery                  
    "$BR >><br>> > $OUT.tmp<br>> > > >             if [ $BATTERY_FAULT
-eq 1 ]<br>> > > >             then<br>> > > >                BR=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"Battery replacement required" >> $OUT.warn<br>> > > >             else<br>> > > >                BR=No<br>> > > >             fi<br>> > > >             if [ $CHARGER_FAULT
-eq 1 ]<br>> > > >             then<br>> > > >                CF=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"Charger Fault" >> $OUT.warn<br>> > > >             else<br>> > > >                CF=No<br>> > > >             fi<br>> > > >             echo "Charger
Fault                    
    "$CF >><br>> > $OUT.tmp<br>> > > >             if [ $OUT_ON_BAT
-eq 1 ]<br>> > > >             then<br>> > > >                OUT_ON_BAT=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"UPS running on battery" >> $OUT.warn<br>> > > >             else<br>> > > >                OUT_ON_BAT=No<br>> > > >             fi<br>> > > >             echo "On
Battery                  
         "$OUT_ON_BAT<br>> > > > >> $OUT.tmp<br>> > > >             if [ $OUT_ON_BYPASS
-eq 1 ]<br>> > > >             then<br>> > > >                OUT_ON_BYPASS=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"UPS on power bypass" >> $OUT.warn<br>> > > >             else<br>> > > >                OUT_ON_BYPASS=No<br>> > > >             fi<br>> > > >             echo "On
Bypass                    
       <br>> > > > "$OUT_ON_BYPASS >> $OUT.tmp<br>> > > >             if [ $OUT_OVERLOAD
-eq 1 ]<br>> > > >             then<br>> > > >                OUT_OVERLOAD=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"UPS output overload" >> $OUT.warn<br>> > > >             else<br>> > > >                OUT_OVERLOAD=No<br>> > > >             fi<br>> > > >             echo "Battery
Overload                  
   "$OUT_OVERLOAD<br>> > > > >> $OUT.tmp<br>> > > >             if [ $OVERTEMP
-eq 1 ]<br>> > > >             then<br>> > > >                OVERTEMP=Yes<br>> > > >                COLOUR=red<br>> > > >                echo
"Unit overheating" >> $OUT.warn<br>> > > >             else<br>> > > >                OVERTEMP=No<br>> > > >             fi<br>> > > >             echo "Unit
Overheating                  
   "$OVERTEMP >><br>> > > > $OUT.tmp<br>> > > >             #if [ $COMMSOK
-eq 2 ]<br>> > > >             #then<br>> > > >             #  
COMMSOK=No<br>> > > >             #  
COLOUR=red<br>> > > >             #  
echo "No comms from device" >> $OUT.warn<br>> > > >             #else<br>> > > >             #  
COMMSOK=Yes<br>> > > >             #fi<br>> > > >             #echo "Comms
OK                    
         "$COMMSOK >><br>> > > > $OUT.tmp<br>> > > >             echo >>
$OUT.tmp<br>> > > >             echo "Input
Phases                    
    "$INPHASES >><br>> > > > $OUT.tmp<br>> > > >             INVOLT=$(echo
"scale=1 ; $INVOLT/10" | bc)<br>> > > >             echo "Input
Voltage                  
      "$INVOLT >><br>> > > > $OUT.tmp<br>> > > >             INFREQ=$(echo
"scale=1 ; $INFREQ/10" | bc)<br>> > > >             echo "Input
Frequency                  
    "$INFREQ >><br>> > > > $OUT.tmp<br>> > > >             INAMPS=$(echo
"scale=1 ; $INAMPS/10" | bc)<br>> > > >             echo "Input
Current                  
      "$INAMPS >><br>> > > > $OUT.tmp<br>> > > >             if [ $INOK
-eq 1 ]<br>> > > >             then<br>> > > >                #
A silly case of reverse logic applies here<br>> > > >                INOK=No<br>> > > >                COLOUR=red<br>> > > >                echo
"Power input outside tollerance" >> $OUT.warn<br>> > > >             else<br>> > > >                INOK=Yes<br>> > > >             fi<br>> > > >             echo "Input
OK                    
         "$INOK >><br>> > $OUT.tmp<br>> > > >             [ $INFAILCAUSE
-eq 1 ] && FAILCAUSE="No failures"<br>> > > >             [ $INFAILCAUSE
-eq 2 ] && FAILCAUSE="Voltage out of<br>> > > > tollearance"<br>> > > >             [ $INFAILCAUSE
-eq 3 ] && FAILCAUSE="Frequency out of<br>> > > > tollernace"<br>> > > >             [ $INFAILCAUSE
-eq 4 ] && FAILCAUSE="No voltage -<br>> > power fail"<br>> > > >             echo "Cause
of Failure                  
   "$FAILCAUSE >><br>> > > > $OUT.tmp<br>> > > >             echo >>
$OUT.tmp<br>> > > >             echo "Output
Phases                    
   "$OUTPHASES >><br>> > > > $OUT.tmp<br>> > > >             OUTVOLT=$(echo
"scale=1 ; $OUTVOLT/10" | bc)<br>> > > >             echo "Output
Voltage                  
     "$OUTVOLT >><br>> > > > $OUT.tmp<br>> > > >             OUTFREQ=$(echo
"scale=1 ; $OUTFREQ/10" | bc)<br>> > > >             echo "Output
Frequency                  
   "$OUTFREQ >><br>> > > > $OUT.tmp<br>> > > >             OUTAMPS=$(echo
"scale=1 ; $OUTAMPS/10" | bc)<br>> > > >             echo "Output
Current                  
     "$OUTAMPS >><br>> > > > $OUT.tmp<br>> > > >             OUTLOAD=$(echo
$OUTLOAD | sed 's/[ \t]*//')<br>> > > >             echo "Output
Load                    
      "$OUTLOAD % >><br>> > > > $OUT.tmp<br>> > > >             echo >>
$OUT.final<br>> > > >             cat $OUT.warn
>> $OUT.final<br>> > > >             cat $OUT.tmp
>> $OUT.final<br>> > > >             echo '<FONT
COLOR="Black">' >> $OUT.final<br>> > > >             echo "Load=$OUTLOAD"
>> $OUT.final<br>> > > >             echo "Charge=$BATTERY_LEVEL"
>> $OUT.final<br>> > > >             echo '</FONT>'
>> $OUT.final<br>> > > >             rm $OUT.tmp<br>> > > >             rm $OUT.warn<br>> > > >        esac<br>> > > >     else<br>> > > >        echo "Device Unreachable!"
>> $OUT.final<br>> > > >        #COLOUR=yellow<br>> > > >     fi<br>> > > >     $BB $BBDISP "status $UPSNAME.ups
$COLOUR $DATE $(cat $OUT.final)"<br>> > > >     rm $OUT.final<br>> > > > done<br>> > > >  <br>> > > > --- snip ---<br>> > > >  <br>> > > >  <br>> > > >  <br>> > > >  <br>> > > ><br>> > > ><br>> > ------------------------------------------------------------------------<br>> > > > *From:* thorsten.erdmann@daimler.com<br>> > > > [mailto:thorsten.erdmann@daimler.com]<br>> > > > *Sent:* Thursday, 10 September 2009 2:18 PM<br>> > > > *To:* hobbit@hswn.dk<br>> > > > *Subject:* [hobbit] Antwort: RE: [hobbit] UPS monitoring
using devmon<br>> > > ><br>> > > ><br>> > > > Hi Craig,<br>> > > > hi David,<br>> > > ><br>> > > > sounds very nice.<br>> > > ><br>> > > > I tried that snmpwalk. It only works with snmp V1.
This is the output:<br>> > > ><br>> > > > SNMPv2-SMI::mib-2.33.1.1.1.0 = STRING: "MGE UPS
SYSTEMS"<br>> > > > SNMPv2-SMI::mib-2.33.1.1.2.0 = STRING: "Galaxy
PW Single//"<br>> > > > SNMPv2-SMI::mib-2.33.1.1.3.0 = ""<br>> > > > SNMPv2-SMI::mib-2.33.1.1.4.0 = STRING: "GB (SN
49EE49044)"<br>> > > > SNMPv2-SMI::mib-2.33.1.1.5.0 = ""<br>> > > > SNMPv2-SMI::mib-2.33.1.1.6.0 = ""<br>> > > ><br>> > > > As I see it, this is only the description of the UPS.
I will look for<br>> > > > the MIB of my devices.<br>> > > > Don't know where all the other things which I want
to monitor at<br>> > > > minimum are located in the MIB like:<br>> > > ><br>> > > > Overall status or am I runnung on battery<br>> > > > output power<br>> > > > remaining battery time<br>> > > > temperature<br>> > > ><br>> > > > > I'll look at uploading it to the SF repository.<br>> > > > Maybe this is a stupid question, but I don't find templates
and things<br>> > > > on the SF page. Only devmon itself.<br>> > > > I look at http://devmon.sourceforge.net/ and at<br>> > > > http://sourceforge.net/projects/devmon/<br>> > > > There is a devmon-template file there, but as I see
it, it contains<br>> > > > only the templates which are delivered with devmon
itself.<br>> > > ><br>> > > > It would be nice if you share your templates. You can
also contact me<br>> > > > via EMail at thorsten.erdmann at daimler dot com<br>> > > ><br>> > > > Thank you very much<br>> > > ><br>> > > > Thorsten<br>> > > ><br>> > > ><br>> > > ><br>> > > > ><br>> > > > > Craig<br>> > > > ><br>> > > > > -----Original Message-----<br>> > > > > From: David Baldwin [mailto:david.baldwin@ausport.gov.au]<br>> > > > > Sent: Thursday, 10 September 2009 11:53 AM<br>> > > > > To: hobbit@hswn.dk<br>> > > > > Subject: Re: [hobbit] UPS monitoring using devmon<br>> > > > ><br>> > > > > thorsten.erdmann@daimler.com wrote:<br>> > > > > ><br>> > > > > > Hi,<br>> > > > > ><br>> > > > > > sorry if this a little offtopic, but maybe
someone has a devmon<br>> > > > > > template for the following UPS:<br>> > > > > ><br>> > > > > > Emerson/Liebert HiPulse MM<br>> > > > > > MGE Galaxy Single<br>> > > > > > MGE Upsilon STS_100 Cross switch<br>> > > > > > MGE Upsilon STS_20 Cross switch<br>> > > > > ><br>> > > > > > Thank you<br>> > > > > > Thorsten<br>> > > > > ><br>> > > > > ><br>> > > > > > If you are not the intended addressee, please
inform us<br>> > immediately<br>> > > > > > that you have received this e-mail in error,
and delete it. We<br>> > thank<br>> > > > > > you for your cooperation.<br>> > > > > ><br>> > > > > I have a template for the standard UPS MIB which
I could send<br>> > through. I<br>> > > > > have a little more work to do on it splitting
the power status<br>> > into 3<br>> > > > > tests for input, output and battery. Should give
me motivation to<br>> > > > > complete this today and I will upload to devmon
SF site.<br>> > > > ><br>> > > > > You can check if your UPS supports the standard
UPS MIB or wants a<br>> > > > > proprietary one (substituting for myups below,
and your<br>> > community string<br>> > > > > if it is not "public"):<br>> > > > ><br>> > > > > snmpwalk -v2c -cpublic myups 1.3.6.1.2.1.33.1.1<br>> > > > ><br>> > > > > Note that some UPS devices only support SNMPv1,
so try -v1<br>> > instead of<br>> > > > > -v2c above if it doesn't work.<br>> > > > ><br>> > > > > David.<br>> > > > ><br>> > > > > --<br>> > > > > David Baldwin - IT Unit<br>> > > > > Australian Sports Commission      
   www.ausport.gov.au<br>> > > > > Tel 02 62147830 Fax 02 62141830    
  PO Box 176 Belconnen ACT 2616<br>> > > > > david.baldwin@ausport.gov.au      
   Leverrier Street Bruce ACT<br>> > 2617<br>> > > > ><br>> > > > ><br>> > > > ><br>> > ------------------------------------------------------------------------<br>> > > > > -------------<br>> > > > > Keep up to date with what's happening in Australian
sport visit<br>> > > > > http://www.ausport.gov.au<br>> > > > ><br>> > > > > This message is intended for the addressee named
and may contain<br>> > > > > confidential and privileged information. If you
are not the intended<br>> > > > > recipient please note that any form of distribution,
copying or<br>> > use of<br>> > > > > this communication or the information in it is
strictly<br>> > prohibited and<br>> > > > > may be unlawful. If you receive this message in
error, please<br>> > delete it<br>> > > > > and notify the sender.<br>> > > > ><br>> > ------------------------------------------------------------------------<br>> > > > > -------------<br>> > > > ><br>> > > > > To unsubscribe from the hobbit list, send an e-mail
to<br>> > > > > hobbit-unsubscribe@hswn.dk<br>> > > > ><br>> > > > ><br>> > > > > DISCLAIMER:<br>> > > > >  <br>> > > > ><br>> > > > > The information contained in this email message
is confidential and<br>> > > > > for the attention of the intended recipient only.<br>> > > > > It is not necessarily the official view or communication
of the<br>> > > > > Rodney District Council.<br>> > > > > If you are not the intended recipient you must
not disclose, copy or<br>> > > > > distribute this message or the information in
it.<br>> > > > > If you have received this message in error, please
delete or destroy<br>> > > > > all copies of the email and notify the sender
immediately.<br>> > > > > Rodney District Council  accepts no responsibility
for any effects<br>> > > > > this email message or attachments has on the recipient
network or<br>> > > > > computer system.<br>> > > > ><br>> > > > > To unsubscribe from the hobbit list, send an e-mail
to<br>> > > > > hobbit-unsubscribe@hswn.dk<br>> > > > ><br>> > > > ><br>> > > ><br>> > > > If you are not the intended addressee, please inform
us immediately<br>> > > > that you have received this e-mail in error, and delete
it. We thank<br>> > > > you for your cooperation.<br>> > > ><br>> > > > NOTICE: This email and any attachments are confidential.<br>> > > > They may contain legally privileged information or<br>> > > > copyright material. You must not read, copy, use or<br>> > > > disclose them without authorisation. If you are not
an<br>> > > > intended recipient, please contact us at once by return<br>> > > > email and then delete both messages and all attachments.<br>> > > >  <br>> > > > NOTICE: This email and any attachments are confidential.<br>> > > > They may contain legally privileged information or<br>> > > > copyright material. You must not read, copy, use or<br>> > > > disclose them without authorisation. If you are not
an<br>> > > > intended recipient, please contact us at once by return<br>> > > > email and then delete both messages and all attachments.<br>> > > >  <br>> > ><br>> > ><br>> > > --<br>> > > David Baldwin - IT Unit<br>> > > Australian Sports Commission        
 www.ausport.gov.au<br>> > > Tel 02 62147830 Fax 02 62141830       PO
Box 176 Belconnen ACT 2616<br>> > > david.baldwin@ausport.gov.au        
 Leverrier Street Bruce ACT 2617<br>> > ><br>> > ><br>> > > To unsubscribe from the hobbit list, send an e-mail to<br>> > > hobbit-unsubscribe@hswn.dk<br>> > ><br>> > ><br>> ><br>> > If you are not the intended addressee, please inform us immediately<br>> > that you have received this e-mail in error, and delete it. We
thank<br>> > you for your cooperation.<br>> ><br>> <br>> <br>> -- <br>> David Baldwin - IT Unit<br>> Australian Sports Commission          www.ausport.gov.au<br>> Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen
ACT 2616<br>> david.baldwin@ausport.gov.au          Leverrier
Street Bruce ACT 2617<br>> <br>> <br>> To unsubscribe from the hobbit list, send an e-mail to</font></tt><br><tt><font size=2>> hobbit-unsubscribe@hswn.dk<br>> <br>> <br></font></tt><font face="sans-serif"><font face="sans-serif, Arial, Helvetica" size="-1" color="#808080"><br>If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation.
<br></br> 
                                                                          
</font></font>