From fd50323a6896478c95dec275b9673cd2223273ae Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 13 Jul 2009 11:08:49 -0400 Subject: [PATCH] Apply small fix from Davide Abrigo. Bump version to 2.9.3 --- META.yml | 4 ++-- Makefile.PL | 2 +- check_postgres.pl | 10 +++++++--- check_postgres.pl.html | 8 +++++++- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/META.yml b/META.yml index ac1a834ba..f3a7894d4 100644 --- a/META.yml +++ b/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name : check_postgres.pl -version : 2.9.2 +version : 2.9.3 abstract : Postgres monitoring script author: - Greg Sabino Mullane @@ -30,7 +30,7 @@ recommends: provides: check_postgres: file : check_postgres.pl - version : 2.9.2 + version : 2.9.3 keywords: - Postgres diff --git a/Makefile.PL b/Makefile.PL index acf0a2f24..78ea713c0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,7 +6,7 @@ use strict; use warnings; use 5.006001; -my $VERSION = '2.9.2'; +my $VERSION = '2.9.3'; if ($VERSION =~ /_/) { print "WARNING! This is a test version ($VERSION) and should not be used in production!\n"; diff --git a/check_postgres.pl b/check_postgres.pl index 3a3cd6c66..ab760b3dc 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -29,7 +29,7 @@ $Data::Dumper::Varname = 'POSTGRES'; $Data::Dumper::Indent = 2; $Data::Dumper::Useqq = 1; -our $VERSION = '2.9.2'; +our $VERSION = '2.9.3'; use vars qw/ %opt $PSQL $res $COM $SQL $db /; @@ -2351,7 +2351,7 @@ sub check_backends { $limit ||= $2; my ($current,$dbname) = ($1,$3); ## Always want perf to show all - $db->{perf} .= " $dbname=$current"; + $db->{perf} .= " '$dbname'=$current"; next SLURP if skip_item($dbname); $total += $current; } @@ -6040,7 +6040,7 @@ sub show_dbstats { B - a Postgres monitoring script for Nagios, MRTG, Cacti, and others -This documents describes check_postgres.pl version 2.9.2 +This documents describes check_postgres.pl version 2.9.3 =head1 SYNOPSIS @@ -7450,6 +7450,10 @@ Items not specifically attributed are by Greg Sabino Mullane. =over 4 +=item B + + Quote dbname in perf output for the backends check. (Davide Abrigo) + =item B (July 12, 2009) Allow dots and dashes in database name for the backends check (Davide Abrigo) diff --git a/check_postgres.pl.html b/check_postgres.pl.html index 59d1ccdcb..d3fec93c3 100644 --- a/check_postgres.pl.html +++ b/check_postgres.pl.html @@ -101,7 +101,7 @@

NAME

check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, Cacti, and others

-

This documents describes check_postgres.pl version 2.9.2

+

This documents describes check_postgres.pl version 2.9.3


@@ -1386,6 +1386,12 @@ feature requests, and commit notices, send email to HISTORY

Items not specifically attributed are by Greg Sabino Mullane.

+
Version 2.9.3
+ +
+
+  Quote dbname in perf output for the backends check. (Davide Abrigo)
+
Version 2.9.2 (July 12, 2009)
-- 2.39.5