[check_postgres] little change in the perf output for check_query_time

Cédric Villemain cedric.villemain at dalibo.com
Thu Mar 26 17:31:18 UTC 2009


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

Hello,

I use pnp4nagios but some plugins do not ouput perfdata in a way that pnp2nagios
can handle.(I'll send some pages/template for pnp4nagios as soon as they are all ok)

So, for cosmetic, I propose the following change (against 2.7.3) :

diff --git a/check_postgres.pl b/check_postgres.pl
index 37264bb..9f50437 100755
- --- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -3022,7 +3022,7 @@ sub check_query_time {
                        $stats{$db->{dbname}} = $max;
                        next;
                }
- -               $db->{perf} .= " maxtime:$max";
+               $db->{perf} .= " maxtime=$max";

                my $msg = qq{longest query: ${max}s};
                if (length $critical and $max >= $critical) {

- --
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)

iEYEARECAAYFAknLu98ACgkQo/dppWjpEvwbEwCfZ0kMfVSX6RC6GOXZUyBIoFs3
/GoAnRB+Ob7Lv9orj0yxH3jPtMtuoMY9
=j26Q
-----END PGP SIGNATURE-----


More information about the Check_postgres mailing list