[f-nsp] OID for TurboIron PowerSupply

Lutz Knabenreich knabenreich at hkn.de
Tue Jan 24 10:48:00 EST 2012


Barry,

Am 17.01.2012 08:31, schrieb Barry O'Donovan:
>
> On 16/01/12 22:45, Frank Bulk wrote:
>> If you use NAGIOS, it would be interesting to find out if the
>> check_snmp_environment plugin identifies that issue.
> I have a first pass at a custom Brocade chassis checker at:
>
> https://github.com/barryo/nagios-plugins/blob/master/check_chassis_brocade.pl
>
> that includes PSU(s) status, memory, CPU, temperature, fans, recent
> reboot, and more.
>

thank you for the time and work you spent on that script. I works great 
for us and we added some minor changes as follows:

Diff1:

246d245
<                 $t_warning = '64.0' if ($t_warning == 0);

This patch fixes rare situations on SuperX and SX Switches where the OID 
"1.3.6.1.4.1.1991.1.1.1.1.19" [snChasWarningTemperatur] is presented as 
"0". I have set this value to '64.0' since this is the default value I 
have seen on other devices where this OID is set correctly.

After patching this miror thing the script works fine for SuperX or SX 
at our site.

Diff2:

617,618c616
< #    return sprintf( "%0.1f", ( $t - 32.0 ) / 1.8 );
<     return sprintf( "%0.1f", ( $t ) / 2 );
---
 >     return sprintf( "%0.1f", ( $t - 32.0 ) / 1.8 );

As far as I know the OID output is 0.5 Degrees Celsius each unit and not 
Fahrenheit, means OID Value 160 turns to be 80 Degrees Celsius. If you 
like to add some Fahrenheit Support this could be easily done by just 
adding a few lines.

Again thank you for the great script.

Best regards
Mit freundlichen Gruessen
Lutz Knabenreich

-- 
HKN GmbH                     Tel: +49 211 875505-0
Lutz Knabenreich             Fax: +49 211 87550555
Am Rheintor 7                    http://www.hkn.de
47829 Krefeld            mailto:knabenreich at hkn.de

Technik Standort:
In der Steele 29
40599 Duesseldorf

Eingetragen am Amtsgericht Krefeld       HRB 12335
Geschaeftsfuehrer                 Lutz Knabenreich



More information about the foundry-nsp mailing list