BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} apcsnmp.pl - last question



You need to modify the script. Look for the following under the temp section:

########################################

# **NOTE ** Temperature alarms will #

# be treated as a yellow alarm - this #

# is because some of us have UPSes in #

# areas that are hot. Also, the UPS #

# will continue to function - it just #

# won't provide any battery backup. #

# #

# If this is a problem for you, add #

# some more code to change the #

# operational parameters/alarms. If #

# you do add code, please don't post #

# this as a "change" or "update". #

# #

#######################################

if ( $Value <= $BadTemp ){

$COLOR = "green";

$Info = "\n&green UPS Temperature is $Value F (OK)\n\n";

}

else {

$COLOR = "yellow";

$Info = "\n&yellow UPS Temperature is $Value F (HOT)\n\n";

}



Change $COLOR="yellow" to $COLOR="red".
The variables that are included at the beginning of the script are

your set points



Good Luck.


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: Wednesday, May 25, 2005 5:09 PM
Subject: Re: {bb} apcsnmp.pl - last question



Do you know how we can make temperatures alert as a Red instead of a Yellow? I've tried setting the temperature so that the UPS environmental card goes to 180 degrees Fahrenheit but still keep getting Yellow alarms



From: "Mike Dingeldey" <mdingeldey@sbcglobal.net>
Reply-To: bb@bb4.com
To: <bb@bb4.com>
Subject: Re: {bb} apcsnmp.pl and OIDs - SORTED!
Date: Tue, 24 May 2005 20:55:24 -0400

Thanks for the heads-up.

As I said in response to your original email - the script was only supposed to work with a
UPS. Thanks for making the change and sharing it with the group.


The Battery Temerature is for monitoring the temperature of the batteries in a UPS.
When I get my environmental cards (the AP9619), I will be including code to make the
script get information from that cards (and hopefully your environmental unit).


Thanks for posting your fix.


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: Tuesday, May 24, 2005 2:41 PM
Subject: RE: {bb} apcsnmp.pl and OIDs - SORTED!



I've sorted this out. Finally found the OID for this and it appears to be working now. Changed the apcsnmpl.pl script so that now, instead of looking for the $upsAdvBatteryTemperature, it searches up $upsEnvironAmbientTemperature which in the case of my two APC UPS environment card like such:

$upsEnvironAmbientTemperature = ".1.3.6.1.4.1.318.1.1.2.1.1.0";





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.

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

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


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