BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} apcsnmp.pl and OIDs
The apcsnmp.pl script was written to use the APC 96xx cards for the APC
SmartUPS
series and monitor a UPS. It has been tested and does work for the 9617
cards. So far, I
haven't received any feedback from anyone regarding any other cards that are
being used.
If anyone is using the script and is on the mailing list, please let me know
so that I can
include that information in the documentation.
As I indicated in the description on deadcat - testing needs to be
performed.
The AP9319 is the APC Environmental Monitoring Unit. It is not a UPS, so I
wouldn't expect
it to work. When I am able to obtain an AP9319, I will see what I can do to
make the script
work with the unit. The nearest equipment I will have in the short term is
the AP9619, which
might be a cousin of what you are looking for. I may also be receiving the
SNMP manageable
APC power strip, so I may include some of that as well.
If you need to get the script to work, the only thing that I could suggest
is to hack it and
change the various OIDs that are in the script (the OID name was included
for
documentation purposes). Please try this first and see what happens. I know
it is not a good
solution, but that is all I can offer up right now. I'm sorry that I can't
be of more help.
If you make changes and get them to work, please let me know. I'll be more
than happy to
incorporate yhose into a future version.
I originally wrote my script to fill a need we had to monitor our UPS
batteries and
temperatures. When I wrote it, I used tags that were (I hoped) logical. I
have traded
emails with others in the community, and really haven't found a good
repository for
naming standards. Is there a standard? Clarification for the community
PLEASE!
The biggest fear is that something good is written, but can't be used
because it conflicts
directly with something else.
Thanks for the info and the feedback!
Mike Dingeldey
mdingeldey@sbcglobal.net
***** If we weren't all crazy, we'd all go insane *****
----- Original Message -----
From: "Doctor Khumalo" <doctortechie@hotmail.com>
To: <bb@bb4.com>
Sent: Monday, May 23, 2005 4:20 PM
Subject: {bb} apcsnmp.pl and OIDs
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.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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.
Home |
Main Index |
Thread Index