From: "Doctor Khumalo" <doctortechie@hotmail.com>
Reply-To: bb@bb4.com
To: bb@bb4.com
Subject: {bb} apcsnmp.pl and OIDs
Date: Mon, 23 May 2005 20:20:09 +0000
I have an APC UPS (Model Number AP9319) that I'd like to monitor. I've
download the script, apcsnmp231.tar.gz and set up apcsnmp.pl to run. I've
set up Perl and NET-SNMP. I've put the script in the $BBHOME/ext directoy
and pointed to by the $BBHOME/etc/bb-bbexttab file. We also have made sure
it has execute priviledges.
Under $BBHOME/etc/bb-hosts, I've added stats and temp as tags on the UPS
hosts. When Big Brother starts showing these columns, they are blue. The
error message reads: "There is a problem communicating via SNMP with
[host] at [ip address]. Please check the SNMP management card and the
settings for this device."
I do an snmpwalk with the community string and find that I get a response
but the OIDs look slightly different from the apcsnmp.pl script.
Here is what the script shows
$upsBasicIdentModel = ".1.3.6.1.4.1.318.1.1.1.1.1.1.0";
$upsBasicIdentName = ".1.3.6.1.4.1.318.1.1.1.1.1.2.0";
$upsAdvIdentSerialNumber = ".1.3.6.1.4.1.318.1.1.1.1.2.3.0";
$upsAdvIdentFirwareRevision = ".1.3.6.1.4.1.318.1.1.1.1.2.1.0";
$upsBasicBatteryStatus = ".1.3.6.1.4.1.318.1.1.1.2.1.1.0";
$upsBasicBatteryLastReplaceDate = ".1.3.6.1.4.1.318.1.1.1.2.1.3.0";
$upsAdvBatteryCapacity = ".1.3.6.1.4.1.318.1.1.1.2.2.1.0";
$upsAdvBatteryTemperature = ".1.3.6.1.4.1.318.1.1.1.2.2.2.0";
$upsAdvBatteryReplaceInidcator = ".1.3.6.1.4.1.318.1.1.1.2.2.4.0";
$upsAdvBatteryNumOfBattPacks = ".1.3.6.1.4.1.318.1.1.1.2.2.5.0";
$upsAdvBatteryNumOfBadBattPacks = ".1.3.6.1.4.1.318.1.1.1.2.2.6.0";
$upsAdvLineInputVoltage = ".1.3.6.1.4.1.318.1.1.1.3.2.1.0";
$upsBasicOutputStatus = ".1.3.6.1.4.1.318.1.1.1.4.1.1.0";
$upsAdvOutputLoad = ".1.3.6.1.4.1.318.1.1.1.4.2.3.0";
$upsAdvTestLastDiagnosticsDate = ".1.3.6.1.4.1.318.1.1.1.7.2.4.0";
$upsAdvTestDiagnosticsResults = ".1.3.6.1.4.1.318.1.1.1.7.2.3.0";
$upsAdvTestCalibrationResults = ".1.3.6.1.4.1.318.1.1.1.7.2.6.0";
$upsAdvTestCalibrationDate = ".1.3.6.1.4.1.318.1.1.1.7.2.7.0";
$upsEnvironRelativeHumidity = ".1.3.6.1.4.1.318.1.1.2.1.2.0";
$upsEnvironAmbientTemperature = ".1.3.6.1.4.1.318.1.1.2.1.1.0";
$AOSrev = ".1.3.6.1.4.1.318.1.4.2.4.1.4.1";
$APPrev = ".1.3.6.1.4.1.318.1.4.2.4.1.4.2";
...and here is the top half of my OID list after an snmpwalk:
.1.3.6.1.2.1.1.1.0 = APC Environmental Monitoring Unit (MB:v3.6.6
PF:v2.6.1 PN:apc_hw02_aos_261.bi
n AF1:v2.6.0 AN1:apc_hw02_ems_260.bin MN:AP9319 HR:3 SN: JA0424009253
MD:06/09/2004)
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.318.1.3.8.3
.1.3.6.1.2.1.1.3.0 = Timeticks: (193171832) 22 days, 8:35:18.32
.1.3.6.1.2.1.1.4.0 = Probe2 = 32.2C/90F
.1.3.6.1.2.1.1.5.0 = Probe1 = 29.4C/85F
.1.3.6.1.2.1.1.6.0 = 5S230 Left Side
.1.3.6.1.2.1.1.7.0 = 72
.1.3.6.1.2.1.2.1.0 = 1
.1.3.6.1.2.1.2.2.1.1.1 = 1
I'm just trying to change the variables so that they point to the right
places, but I'm a bit confused as to how I can obtain the correct
variables that the script wants. Any suggestions?
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.