Skip to content

Commit 93e4e5e

Browse files
committed
style: change formatting
1 parent 407494d commit 93e4e5e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mamonsu/plugins/pgsql/connections.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ class Connections(Plugin):
3333
key = 'pgsql.connections{0}'
3434

3535
def run(self, zbx):
36-
#print(self.plugin_config('interval'))
3736
if Pooler.is_bootstraped() and Pooler.bootstrap_version_greater('2.3.4'):
3837
result = Pooler.query(
3938
'select state, count(*) '
@@ -76,7 +75,6 @@ def run(self, zbx):
7675
zbx.send('pgsql.connections[max_connections]', int(self.Max_connections))
7776

7877
def items(self, template):
79-
print(self.plugin_config('interval'))
8078
result = template.item({
8179
'name': 'PostgreSQL: number of total connections',
8280
'key': self.right_type(self.key, "total"),
@@ -143,4 +141,4 @@ def keys_and_queries(self, template_zabbix):
143141
else:
144142
result.append('{0}[*],$2 $1 -c "{1}"'.format(self.key.format('.waiting'), self.query_agent_waiting_new_v))
145143
result.append('{0}[*],$2 $1 -c "{1}"'.format(self.key.format('.max_connections'), self.query_agent_max_conn))
146-
return template_zabbix.key_and_query(result)
144+
return template_zabbix.key_and_query(result)

0 commit comments

Comments
 (0)