<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2>Oops, forgot to add the graphing bit.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2>Usual stuff. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2>In hobbitserver.cfg</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2>Add "<FONT face="Courier New">ups=ncv</FONT>" to <FONT
face="Courier New">TEST2RRD=</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2>Add "<FONT face="Courier New">ups</FONT>" to <FONT
face="Courier New">GRAPHS=</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2>Add line <FONT
face="Courier New">NCV_ups="Load:GAUGE,Charge:GAUGE"</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=375523407-10092009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=375523407-10092009><FONT face=Arial color=#0000ff size=2>Add
this to hobbitgraph.cfg</FONT></SPAN></DIV>
<DIV><SPAN class=375523407-10092009><FONT face=Arial color=#0000ff size=2><FONT
face="Courier New">[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</FONT><BR></DIV></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2>Cheers</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2> Vernon</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375523407-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Everett, Vernon
[mailto:Vernon.Everett@woodside.com.au] <BR><B>Sent:</B> Thursday, 10 September
2009 2:50 PM<BR><B>To:</B> 'hobbit@hswn.dk'<BR><B>Subject:</B> RE: [hobbit]
Antwort: RE: [hobbit] UPS monitoring using devmon<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>I wrote this a while back for our MGEs.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>As you can see, it predates my introduction to devmon and
indicates a complete lack of understanding of SNMP.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>That being said, the code and the MIBs might give you a
good indication of where to start.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>(Either that, or you can just use it as "good
enough")</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>This was designed to run on the hobbit/xymon
server.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN><SPAN class=634143606-10092009><FONT
face=Arial color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>I have been meaning to rewrite this, or move it to devmon,
but just haven't had the time.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>(And it's doing an adequate job for
now.)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>Cheers</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2> V</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>bb-host entries look like this</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT color=#0000ff
size=2><FONT face="Courier New">1.2.3.4
galaxy3000 # </FONT><A
href="http://1.2.3.4/ups_prop.htm"><FONT
face="Courier New">http://1.2.3.4/ups_prop.htm</FONT></A><FONT
face="Courier New"> ups galaxy3000 COMMENT:"Meaningful Comment if
required"<BR>2.3.4.5 Karratha_UPS # </FONT><A
href="http://2.3.4.5/ups_prop.htm"><FONT
face="Courier New">http://2.3.4.5/ups_prop.htm</FONT></A><FONT
face="Courier New"> ups galaxy3000 COMMENT:"Insert
Comment"</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2><BR> </DIV></FONT></SPAN>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>--- snip---</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face="Courier New"
color=#0000ff size=2>cat ups.ksh<BR>#!/bin/ksh<BR>DATE=$(date)<BR>#set
-x<BR>SPACER="
"<BR>BBTMP=/tmp<BR>#BBHOSTS=/etc/hobbit/bb-hosts<BR>#OUT=$BBTMP/upspage<BR>BBHOSTLIST="$BBHOSTS
$(grep ^include $BBHOSTS | awk '{ print $2 }')" # 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 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
SNMPv2-SMI::mib-2.33.1.1.1.0)<BR>
DEVICE=${TEMP##*:} #
String<BR>
TEMP=$(snmpget -v1 -c public $IP
SNMPv2-SMI::mib-2.33.1.1.2.0)<BR>
MODEL=${TEMP##*:} #
String<BR>
TEMP=$(snmpget -v1 -c public $IP
SNMPv2-MIB::sysLocation.0)<BR>
LOCATION=${TEMP##*:}
# String<BR>
TEMP=$(snmpget -v1 -c public $IP
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 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</FONT></SPAN></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face="Courier New"
color=#0000ff
size=2>
TEMP=$(snmpget -v1 -c public $IP
1.3.6.1.4.1.705.1.6.2.1.2)<BR>
INVOLT=${TEMP##*:} #
Integer 10ths of a volt</FONT></SPAN></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face="Courier New"
color=#0000ff
size=2>
TEMP=$(snmpget -v1 -c public $IP
1.3.6.1.4.1.705.1.6.2.1.3)<BR>
INFREQ=${TEMP##*:} #
Integer 10ths of a Hertz</FONT></SPAN></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face="Courier New"
color=#0000ff
size=2>
TEMP=$(snmpget -v1 -c public $IP
1.3.6.1.4.1.705.1.6.2.1.6)<BR>
INAMPS=${TEMP##*:} #
Integer 10ths of an Amp</FONT></SPAN></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2><FONT
face="Courier New">
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
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
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
1.3.6.1.4.1.705.1.7.2.1.4)<BR>
OUTLOAD=${TEMP##*:} # Integer
%<BR>
TEMP=$(snmpget -v1 -c public $IP
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 's/"//g' >>
$OUT.tmp<BR>
echo
"Model
"$MODEL | sed 's/"//g' >>
$OUT.tmp<BR>
echo "Serial
Number
"$SERIAL | sed 's/"//g' >>
$OUT.tmp<BR>
echo
"Location
"$LOCATION | 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" ] &&
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
critical"<BR>
#[ "$WARN" != "" ] && echo $WARN >>
$OUT.warn<BR>
((s=$TIME_REMAIN%60))<BR>
((m=$TIME_REMAIN/60))<BR>
echo "Time
Remaining
"$m Minutes $s Seconds >>
$OUT.tmp<BR>
WARN=""<BR> [
-z "$BATTERY_LEVEL" ] &&
BATTERY_LEVEL=0<BR>
[ $BATTERY_LEVEL -lt 95 -a "$COLOUR" != "red" ] &&
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 % >>
$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 >>
$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 >>
$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 >>
$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 >>
$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
"$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 >>
$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 >>
$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 >>
$OUT.tmp<BR>
echo >>
$OUT.tmp<BR>
echo "Input
Phases
"$INPHASES >>
$OUT.tmp<BR>
INVOLT=$(echo "scale=1 ; $INVOLT/10" |
bc)<BR> echo
"Input
Voltage
"$INVOLT >>
$OUT.tmp<BR>
INFREQ=$(echo "scale=1 ; $INFREQ/10" |
bc)<BR> echo
"Input
Frequency
"$INFREQ >>
$OUT.tmp<BR>
INAMPS=$(echo "scale=1 ; $INAMPS/10" |
bc)<BR> echo
"Input
Current
"$INAMPS >>
$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 >>
$OUT.tmp<BR> [
$INFAILCAUSE -eq 1 ] && FAILCAUSE="No
failures"<BR>
[ $INFAILCAUSE -eq 2 ] && FAILCAUSE="Voltage out of
tollearance"<BR>
[ $INFAILCAUSE -eq 3 ] && FAILCAUSE="Frequency out of
tollernace"<BR>
[ $INFAILCAUSE -eq 4 ] && FAILCAUSE="No voltage - power
fail"<BR> echo
"Cause of
Failure
"$FAILCAUSE >>
$OUT.tmp<BR>
echo >>
$OUT.tmp<BR>
echo "Output
Phases
"$OUTPHASES >>
$OUT.tmp<BR>
OUTVOLT=$(echo "scale=1 ; $OUTVOLT/10" |
bc)<BR> echo
"Output
Voltage
"$OUTVOLT >>
$OUT.tmp<BR>
OUTFREQ=$(echo "scale=1 ; $OUTFREQ/10" |
bc)<BR> echo
"Output
Frequency
"$OUTFREQ >>
$OUT.tmp<BR>
OUTAMPS=$(echo "scale=1 ; $OUTAMPS/10" |
bc)<BR> echo
"Output
Current
"$OUTAMPS >>
$OUT.tmp<BR>
OUTLOAD=$(echo $OUTLOAD | sed 's/[
\t]*//')<BR>
echo "Output
Load
"$OUTLOAD % >>
$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</FONT><BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2>--- snip ---</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=634143606-10092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> thorsten.erdmann@daimler.com
[mailto:thorsten.erdmann@daimler.com] <BR><B>Sent:</B> Thursday, 10 September
2009 2:18 PM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] Antwort:
RE: [hobbit] UPS monitoring using devmon<BR></FONT><BR></DIV>
<DIV></DIV><BR><TT><FONT size=2>Hi Craig,</FONT></TT><BR><TT><FONT size=2>hi
David,</FONT></TT><BR><BR><TT><FONT size=2>sounds very
nice.</FONT></TT><BR><BR><TT><FONT size=2>I tried that snmpwalk. It only works
with snmp V1. This is the output:</FONT></TT><BR><BR><TT><FONT
size=2>SNMPv2-SMI::mib-2.33.1.1.1.0 = STRING: "MGE UPS
SYSTEMS"</FONT></TT><BR><TT><FONT size=2>SNMPv2-SMI::mib-2.33.1.1.2.0 = STRING:
"Galaxy PW Single//"</FONT></TT><BR><TT><FONT
size=2>SNMPv2-SMI::mib-2.33.1.1.3.0 = ""</FONT></TT><BR><TT><FONT
size=2>SNMPv2-SMI::mib-2.33.1.1.4.0 = STRING: "GB (SN
49EE49044)"</FONT></TT><BR><TT><FONT size=2>SNMPv2-SMI::mib-2.33.1.1.5.0 =
""</FONT></TT><BR><TT><FONT size=2>SNMPv2-SMI::mib-2.33.1.1.6.0 =
""</FONT></TT><BR><BR><TT><FONT size=2>As I see it, this is only the description
of the UPS. I will look for the MIB of my devices.</FONT></TT><BR><TT><FONT
size=2>Don't know where all the other things which I want to monitor at minimum
are located in the MIB like:</FONT></TT><BR><BR><TT><FONT size=2>Overall status
or am I runnung on battery</FONT></TT><BR><TT><FONT size=2>output
power</FONT></TT><BR><TT><FONT size=2>remaining battery
time</FONT></TT><BR><TT><FONT size=2>temperature</FONT></TT><BR><BR><TT><FONT
size=2>> 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 on the SF page. Only
devmon itself.</FONT></TT><BR><TT><FONT size=2>I look at
http://devmon.sourceforge.net/ and at
http://sourceforge.net/projects/devmon/</FONT></TT><BR><TT><FONT size=2>There is
a devmon-template file there, but as I see it, it contains only the templates
which are delivered with devmon itself.</FONT></TT><BR><BR><TT><FONT size=2>It
would be nice if you share your templates. You can also contact me via EMail at
thorsten.erdmann at daimler dot com</FONT></TT><BR><BR><TT><FONT size=2>Thank
you very much</FONT></TT><BR><BR><TT><FONT
size=2>Thorsten</FONT></TT><BR><BR><BR><BR><TT><FONT size=2>> <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 immediately<BR>> > that you have received this
e-mail in error, and delete it. We thank<BR>> > you for your
cooperation.<BR>> ><BR>> I have a template for the standard UPS MIB
which I could send through. I<BR>> have a little more work to do on it
splitting the power status 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 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 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 2617<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 use of<BR>> this communication
or the information in it is strictly prohibited and<BR>> may be unlawful. If
you receive this message in error, please delete it<BR>> and notify the
sender.<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></FONT></TT><FONT
face=sans-serif><FONT face="sans-serif, Arial, Helvetica" color=#808080
size=-1><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><PRE>NOTICE: This email and any attachments are confidential.
They may contain legally privileged information or
copyright material. You must not read, copy, use or
disclose them without authorisation. If you are not an
intended recipient, please contact us at once by return
email and then delete both messages and all attachments.
</PRE><pre>
NOTICE: This email and any attachments are confidential.
They may contain legally privileged information or
copyright material. You must not read, copy, use or
disclose them without authorisation. If you are not an
intended recipient, please contact us at once by return
email and then delete both messages and all attachments.
</pre></BODY></HTML>