Skip to content

Commit

Permalink
Merge pull request #429 from pierrediancourt/patch-2
Browse files Browse the repository at this point in the history
fix sprintf bad number of param
  • Loading branch information
HariSekhon authored Oct 2, 2024
2 parents d4f4af1 + a0c3bb0 commit 87f688d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_hadoop_replication.pl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ BEGIN
check_thresholds($under_repl);
$msg .= sprintf(", excess: %d, replication pending: %d, scheduled: %d, deletion pending: %d, postponed misreplicated: %d | 'hdfs blocks missing'=%d 'hdfs blocks corrupt='%d 'hdfs blocks under-replicated'=%d", $excess, $pending_repl, $sched_repl, $pending_del, $post_misrepl, $missing, $corrupt, $under_repl);
msg_perf_thresholds();
$msg .= sprintf(" 'hdfs excess blocks'=%d 'hdfs blocks pending replication'=%d 'hdfs blocks scheduled for replication'=%d 'hdfs blocks pending deletion'=%d 'hdfs blocks postponed misreplicated'=%d", $excess, $pending_repl, $sched_repl, $pending_del, $post_misrepl, $missing, $corrupt, $under_repl);
$msg .= sprintf(" 'hdfs excess blocks'=%d 'hdfs blocks pending replication'=%d 'hdfs blocks scheduled for replication'=%d 'hdfs blocks pending deletion'=%d 'hdfs blocks postponed misreplicated'=%d", $excess, $pending_repl, $sched_repl, $pending_del, $post_misrepl);
last;
}
quit "UNKNOWN", "failed to find FSNamesystem mbean" unless $found_mbean;
Expand Down

0 comments on commit 87f688d

Please sign in to comment.