Proper Nagios output for txn_wraparound actions. (Cédric Villemain)
authorGreg Sabino Mullane <[email protected]>
Mon, 24 Aug 2009 16:28:20 +0000 (12:28 -0400)
committerGreg Sabino Mullane <[email protected]>
Mon, 24 Aug 2009 16:28:20 +0000 (12:28 -0400)
check_postgres.pl

index 757d8e7ffd6d1472b0d5e24347de07f0ca7508d2..bb4f41aefe3686b2ea3109874bd553814e58927b 100755 (executable)
@@ -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)