From: Greg Sabino Mullane Date: Mon, 24 Aug 2009 16:28:20 +0000 (-0400) Subject: Proper Nagios output for txn_wraparound actions. (Cédric Villemain) X-Git-Tag: c9ed279d3bf192e41b4d5c7d65f115fa49ae2519~11 X-Git-Url: http://git.postgresql.org/gitweb/static/main.js?a=commitdiff_plain;h=3d5bd3b32f1c2c51ead2eb4f33ca63fe00831e6b;p=check_postgres.git Proper Nagios output for txn_wraparound actions. (Cédric Villemain) --- 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)