File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ class Connections(Plugin):
33
33
key = 'pgsql.connections{0}'
34
34
35
35
def run (self , zbx ):
36
- #print(self.plugin_config('interval'))
37
36
if Pooler .is_bootstraped () and Pooler .bootstrap_version_greater ('2.3.4' ):
38
37
result = Pooler .query (
39
38
'select state, count(*) '
@@ -76,7 +75,6 @@ def run(self, zbx):
76
75
zbx .send ('pgsql.connections[max_connections]' , int (self .Max_connections ))
77
76
78
77
def items (self , template ):
79
- print (self .plugin_config ('interval' ))
80
78
result = template .item ({
81
79
'name' : 'PostgreSQL: number of total connections' ,
82
80
'key' : self .right_type (self .key , "total" ),
@@ -143,4 +141,4 @@ def keys_and_queries(self, template_zabbix):
143
141
else :
144
142
result .append ('{0}[*],$2 $1 -c "{1}"' .format (self .key .format ('.waiting' ), self .query_agent_waiting_new_v ))
145
143
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 )
You can’t perform that action at this time.
0 commit comments