summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-02-09 13:38:33 +0000
committerGreg Sabino Mullane2011-02-09 13:38:33 +0000
commit45eff9103be4baff8e146cbc0aadc0d8e25173a1 (patch)
tree0abec449ae69c26177ffb05789a2033fa5745147 /check_postgres.pl
parent6aefdea1b89a7d1dd496a9e0dcc2bfbc7473b82d (diff)
Last of the major perfname tweaks
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;
}