Bugzilla – Bug 79
Error in pgm for action "query_time"
Last modified: 2011-06-22 16:04:17 EDT
You need to log in before you can comment on or make changes to this bug.
Hi, First, I got to say you that I like your work about perl, postgresql, monitoring. Brief, BRAVO. There is an error when you execute "query_time", because postgres user doesn't have "client_addr" and "client_port" for "local operations" (autovacuum...). Error is : Argument "" isn't numeric in numeric lt (<) at ./check_postgres.pl line 4576. # I replaced next : $client_port < 1 ? '' : (sprintf ' %s:%s', msg('port'), $client_port), $client_port lt 1 ? '' : (sprintf ' %s:%s', msg('port'), $client_port), Fabrice Metge
Proposed fix in ce3e0d13a293b9435ff01bde2b6c140c3129b8c7