From 45eff9103be4baff8e146cbc0aadc0d8e25173a1 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 9 Feb 2011 08:38:33 -0500 Subject: [PATCH] Last of the major perfname tweaks --- check_postgres.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 9a9967b2e..2e70a37e7 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -7337,7 +7337,8 @@ sub check_wal_files { next; } my $msg = qq{$numfiles}; - $db->{perf} .= " '$db->{host}'=$numfiles;$warning;$critical"; + $db->{perf} .= sprintf '%s=%s;%s;%s', + perfname(msg('files')), $numfiles, $warning, $critical; if (length $critical and $numfiles > $critical) { add_critical $msg; } -- 2.39.5