Skip to content

Commit

Permalink
check_chassis_brocade.pl: small perf fix
Browse files Browse the repository at this point in the history
Produce performance data for all statuses and not only for OK
  • Loading branch information
giner committed Jun 5, 2014
1 parent f79c799 commit e911abd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions check_chassis_brocade.pl
Original file line number Diff line number Diff line change
Expand Up @@ -212,19 +212,21 @@
print $fandata if( defined( $fandata ) && !$skipfans );
print $psudata if( defined( $psudata ) && !$skippsu );
printf( "Up %0.2f days", $uptime ) if( !$skipreboot );
if ($perf) {
print "|";
print $cpudataperf if( !$skipcpuall && defined( $cpudataperf ) );
print $memdataperf if( !$skipmem && defined( $memdataperf ) );
print $tempdataperf if( !$skiptemp && defined( $tempdataperf ) );
}
print( "\n" );
}
else
{
print "$answer\n";
print "$answer";
}

if ($perf) {
print "|";
print $cpudataperf if( !$skipcpuall && defined( $cpudataperf ) );
print $memdataperf if( !$skipmem && defined( $memdataperf ) );
print $tempdataperf if( !$skiptemp && defined( $tempdataperf ) );
}

print( "\n" );

exit $ERRORS{$state};


Expand Down

0 comments on commit e911abd

Please sign in to comment.