netapp-cdot-nagios icon indicating copy to clipboard operation
netapp-cdot-nagios copied to clipboard

Feature request - show reconstruction-percentage

Open Rad3d21 opened this issue 2 years ago • 0 comments

Maybe others like this too and maybe I'm overlooking some issues that this could cause. My feature request was: Add rebuild percentage to check_cdot_rebuild to be able to track progress. I did this quick & possibly dirty hack in patch file format: --- check_cdot_rebuild.pl 2022-02-28 11:17:27.142714000 +0100 +++ check_cdot_rebuild_percent.pl 2022-02-28 13:09:22.043997000 +0100 @@ -78,10 +78,12 @@ foreach my $rg (@rgs) {

             my $rg_reconstruct = $rg->child_get_string( "is-reconstructing" );
  •            my $rg_reconstruct_percent = $rg->child_get_string( "reconstruction-percentage" );
    
               if ($rg_reconstruct eq "true") {
    
  •                unless (grep(/$aggr_name/, @failed_aggrs)) {
    
  •                    push( @failed_aggrs, $aggr_name );
    
  •                    push( @failed_aggrs, $aggr_name.":".$rg_reconstruct_percent );
                   }
               }
           }
    

Rad3d21 avatar Feb 28 '22 12:02 Rad3d21