diff options
author | Greg Sabino Mullane | 2009-08-24 16:28:20 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-08-24 16:28:20 +0000 |
commit | 3d5bd3b32f1c2c51ead2eb4f33ca63fe00831e6b (patch) | |
tree | bb3c5e2c05de08bda78f194d460c462fd7b68601 /check_postgres.pl | |
parent | dac3de995781f60f11b38803dc07c51ff59f84c5 (diff) |
Proper Nagios output for txn_wraparound actions. (Cédric Villemain)
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 7 |
1 files changed, 6 insertions, 1 deletions
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<Version 2.11.0> (August 23, 2009) |