Skip to content

Commit

Permalink
fix sprintf bad number of param
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrediancourt authored Oct 2, 2024
1 parent d4f4af1 commit a0c3bb0
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 a0c3bb0

Please sign in to comment.