From 3d5bd3b32f1c2c51ead2eb4f33ca63fe00831e6b Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 24 Aug 2009 12:28:20 -0400 Subject: [PATCH] =?utf8?q?Proper=20Nagios=20output=20for=20txn=5Fwraparoun?= =?utf8?q?d=20actions.=20(C=C3=A9dric=20Villemain)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- check_postgres.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index 757d8e7ff..bb4f41aef 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4206,7 +4206,11 @@ sub check_txn_wraparound { my ($max,$msg) = (0,'?'); SLURP: while ($db->{slurp} =~ /(\S.+?)\s+\|\s+(\d+)/gsm) { my ($dbname,$dbtxns) = ($1,$2); - $db->{perf} .= " $dbname=$dbtxns"; + $db->{perf} .= " '$dbname'=$dbtxns;"; + $db->{perf} .= $warning if length $warning; + $db->{perf} .= ";"; + $db->{perf} .= $critical if length $critical; + $db->{perf} .= ";0;2000000000"; next SLURP if skip_item($dbname); if ($dbtxns > $max) { $max = $dbtxns; @@ -7742,6 +7746,7 @@ Items not specifically attributed are by Greg Sabino Mullane. Proper Nagios output for last_vacuum|analyze actions. (Cédric Villemain) Proper Nagios output for locks action. (Cédric Villemain) + Proper Nagios output for txn_wraparound action. (Cédric Villemain) =item B (August 23, 2009) -- 2.39.5