File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def run(self, zbx):
36
36
del dbs , bloat_count
37
37
38
38
result = Pooler .run_sql_type ('count_autovacuum' )
39
- zbx .send ('pgsql.autovacumm.count[]' , int (result [0 ][0 ]) - 1 )
39
+ zbx .send ('pgsql.autovacumm.count[]' , int (result [0 ][0 ]))
40
40
41
41
def items (self , template ):
42
42
return template .item ({
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ def run(self, zbx):
20
20
result = Pooler .query ("""
21
21
select pg_catalog.pg_xlog_location_diff
22
22
(pg_catalog.pg_current_xlog_location(),'0/00000000')""" )
23
- zbx .send (
24
- 'pgsql.wal.write[]' , float (result [0 ][0 ]), self .DELTA_SPEED )
23
+ zbx .send ('pgsql.wal.write[]' , float (result [0 ][0 ]), self .DELTA_SPEED )
25
24
# count of xlog files
26
25
result = Pooler .run_sql_type ('count_xlog_files' )
27
26
zbx .send ('pgsql.wal.count[]' , int (result [0 ][0 ]))
You can’t perform that action at this time.
0 commit comments