From: Gildas Le N. <gn...@sa...> - 2007-03-30 10:21:16
|
Tom Georgoulias wrote: > Tom Georgoulias wrote: > > >>>Those are the template for the bladecenter (not the bladecenter H or T >>>though they may be compatible) I started making. >>> >>>Hopefully they may be usable as is or be a starting base. >> >>Thank you for the templates. They work as is, and I'm starting to >>experiment with them. > > > Guess I spoke too soon, all of the bladecenters are showing red alerts > for the "power" test, even though they report that they OK. Here's an > example of the red power status: Hum strange, I have no idea why it's not working for you as it was for me. I used it with devmon v0.2.2 and this used to work for me ;) > Power Modules > ------------- > Alarming on (1,2) > 1 red 1 - Power domain status is good. Bay 1: 1875W Bay 2: 1875W > 2 red 1 - Power domain status is good. Bay 3: 1875W Bay 4: 1875W > > Looking at the templates for power, I see that the threshold for a red > alert is "3", but I'm not sure why the test is showing up as red when > the value returned for fuelGaugeStatus is 1 (or at least I think it is > returning 1.) > > from thresholds template: > > fuelGaugeStatusNumeric : red : =3 : Fuel Gauge status is > {fuelGaugeStatus} > fuelGaugeStatusNumeric : yellow: =2 : Fuel Gauge status is > {fuelGaugeStatus} > > Doing a snmpget of the bladecenter, I get an error when I query the OID > .1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.3 (as listed in the OID template), but Yes, it's not a leaf and afaik it has no property and cannot be queried but just "walked" > not when I query 1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.3.1 and > 1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.3.2. (Note the addition of .1 and .2 at > the end of the OID). > > Output from snmpwalk: > > "1 - Power domain status is good." > > That 1 is the value for fuelGaugeStatus, right? The transform template > replaces " with 1, right? > > What am I missing or doing wrong? Any help is appreciated. Yes I think you got it. Just in case, let me explain what it is supposed to do: fuel gauge status is given as a string an not as a numeric value so I had to transform it into a numeric value to be able to set thresholds. In oids: fuelGaugeStatus : .1.3.6.1.4.1.2.3.51.2.2.10.1.1.1.3 : branch -> I retrieve all the leaves attached to this oid under the name fuelGaugeStatus In transform: fuelGaugeStatusNumeric : SUBSTR : {fuelGaugeStatus} 0 1 -> Get the first char and assign it to fuelGaugeStatusNumeric (see docs/TEMPLATES for documentation on SUBSTR) Assuming that the SUBSTR is working as intended, what you may try to do is to add the following in thresholds: fuelGaugeStatusNumeric : green: =1 : Fuel Gauge status is {fuelGaugeStatus} That should force the green status. A way to test if fuelGaugeStatusNumeric is what we thinks it is is to display it: --- templates/bladecenter/power/message.orig 2006-11-24 14:33:12.000000000 +0000 +++ templates/bladecenter/power/message 2007-03-30 11:19:26.985628680 +0100 @@ -1,8 +1,8 @@ Power Modules ------------- TABLE: - #|Status|1st Power Module|2nd Power Module -{fuelGaugeIndex}|{fuelGaugeStatusNumeric.color} {fuelGaugeStatus}|{fuelGaugeFirstPowerModule}|{fuelGaugeSecondPowerModule} + #|Status|1st Power Module|2nd Power Module|Fuel Gauge numeric status +{fuelGaugeIndex}|{fuelGaugeStatusNumeric.color} {fuelGaugeStatus}|{fuelGaugeFirstPowerModule}|{fuelGaugeSecondPowerModule}|{fuelGaugeStatusNumeric} Power Domain 1 -------------- HTH I am interested in any change you make ;) Cheers Gildas |