
barry+f-nsp at opensolutions
Jan 26, 2012, 8:45 AM
Post #10 of 10
(814 views)
Permalink
|
On 24/01/12 16:52, Frank Bulk wrote: > I also added code to deal with a situation where the CPU percentage > was calculated to be over 100%. > > if(( $util >= $threscpu{$t_time . 'c'} ) && ( $util <= 100)) { > &setstate( 'CRITICAL', "$t_time CPU Usage $util%" ); } elsif(( > $util >= $threscpu{$t_time . 'w'} ) && ( $util <= 100)) { > &setstate( 'WARNING', "$t_time CPU Usage $util%" ); I'm not sure ignoring >100% is the right thing to do here. - Barry >> Frank > >> -----Original Message----- From: >> foundry-nsp-bounces [at] puck >> [mailto:foundry-nsp-bounces [at] puck] On Behalf Of Lutz >> Knabenreich Sent: Tuesday, January 24, 2012 9:48 AM To: >> foundry-nsp [at] puck Subject: Re: [f-nsp] OID for TurboIron >> PowerSupply > >> 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.p > > > l >>> >>> 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 > > _______________________________________________ foundry-nsp mailing list foundry-nsp [at] puck http://puck.nether.net/mailman/listinfo/foundry-nsp
|