From b07697073480ec5a4d5c8990790e4ee3cabc0970 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 24 Aug 2009 12:05:13 -0400 Subject: [PATCH] =?utf8?q?=20Proper=20Nagios=20output=20for=20last=5Fvacuu?= =?utf8?q?m|analyze=20actions.=20(C=C3=A9dric=20Villemain)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- check_postgres.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_postgres.pl b/check_postgres.pl index be6f47161..f3084b109 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -3404,7 +3404,7 @@ sub check_last_vacuum_analyze { $maxtime = -2 if $maxtime < 1; next SLURP; } - $db->{perf} .= " $schema.$name=$time" if $time >= 0; + $db->{perf} .= " $db->{dbname}.$schema.$name=${time}s;$warning;$critical" if $time >= 0; if ($time > $maxtime) { $maxtime = $time; $maxrel = "$schema.$name"; @@ -7708,6 +7708,10 @@ Items not specifically attributed are by Greg Sabino Mullane. =over 4 +=item B + + Proper Nagios output for last_vacuum|analyze actions. (Cédric Villemain) + =item B (August 23, 2009) Add Nagios perf output to the wal_files check (Cédric Villemain) -- 2.39.5