From a0c3bb0c9bb4eddc88e9554c57fffd77007a4ac2 Mon Sep 17 00:00:00 2001 From: Pierre Diancourt Date: Wed, 2 Oct 2024 07:35:36 -0700 Subject: [PATCH] fix sprintf bad number of param --- check_hadoop_replication.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_hadoop_replication.pl b/check_hadoop_replication.pl index f4234f3fc..5a9fad3b4 100755 --- a/check_hadoop_replication.pl +++ b/check_hadoop_replication.pl @@ -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;