summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl3
1 files changed, 2 insertions, 1 deletions
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;
}