Fixing postgres connections munin.

This commit is contained in:
Samuel Clay 2015-07-21 15:26:46 -07:00
parent 35b79bcb2b
commit 6ebd175061

View file

@ -152,7 +152,7 @@ else {
}
$sql = "select count(*) from pg_stat_activity ";
$sql .= " where datname = ? and current_query like '<IDLE>%'";
$sql .= " where datname = ? and state = 'idle'";
print "# $sql\n" if $debug;
$sth = $dbh->prepare($sql);
$sth->execute($dbname);