[check_postgres] strange behavior : duplicate output

Cédric Villemain cedric.villemain at dalibo.com
Mon Feb 9 12:23:11 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

With new versions 2.7
I have the following issue :

./check_postgres.pl -H xx -u superviseur -db postgres -dbport 5432 --action
connection
POSTGRES_CONNECTION OK: DB "postgres" (host:xx) version 8.2.12 * version 8.2.12
| time=0.15 * time=0.15

where the old script do :

/usr/lib/nagios/plugins/postgres/check_postgres.pl -H xx -u superviseur -db
postgres -dbport 5432 --action connection
POSTGRES_CONNECTION OK: service= (host:xx) version 8.2.6 | time=0.15

- ---------------

I found that it came from a test which have been removed. (but WHY it had been
removed?)

- --- check_postgres.pl.orig   2009-02-06 14:47:05.000000000 +0100
+++ check_postgres.pl       2009-02-09 13:21:15.000000000 +0100
@@ -974,6 +974,7 @@
                        }
                        $group{$vname} = $conn->{$vname};
                }
+               last GROUP if ! $foundgroup;

                $gbin++;


- --
Cédric Villemain
Administrateur de Base de Données
Cel: +33 (0)6 74 15 56 53
http://dalibo.com - http://dalibo.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmQICkACgkQo/dppWjpEvz/wwCeObHP3dCYvZmuZOwFzyJ3+Fl9
W9YAnR3p+7hXfXTFYqfmU8UY4JXAKddy
=6bKh
-----END PGP SIGNATURE-----


More information about the Check_postgres mailing list