"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/dstat_postfix.py" between
dstat-0.7.3.tar.gz and dstat-0.7.4.tar.gz

About: dstat is a versatile resource statistic tool and a replacement for vmstat, iostat and ifstat (using Python).

dstat_postfix.py  (dstat-0.7.3):dstat_postfix.py  (dstat-0.7.4)
skipping to change at line 14 skipping to change at line 14
def __init__(self): def __init__(self):
self.name = 'postfix' self.name = 'postfix'
self.nick = ('inco', 'actv', 'dfrd', 'bnce', 'defr') self.nick = ('inco', 'actv', 'dfrd', 'bnce', 'defr')
self.vars = ('incoming', 'active', 'deferred', 'bounce', 'defer') self.vars = ('incoming', 'active', 'deferred', 'bounce', 'defer')
self.type = 'd' self.type = 'd'
self.width = 4 self.width = 4
self.scale = 100 self.scale = 100
def check(self): def check(self):
if not os.access('/var/spool/postfix/active', os.R_OK): if not os.access('/var/spool/postfix/active', os.R_OK):
raise Exception, 'Cannot access postfix queues' raise Exception('Cannot access postfix queues')
def extract(self): def extract(self):
for item in self.vars: for item in self.vars:
self.val[item] = len(glob.glob('/var/spool/postfix/'+item+'/*/*')) self.val[item] = len(glob.glob('/var/spool/postfix/'+item+'/*/*'))
# vim:ts=4:sw=4:et # vim:ts=4:sw=4:et
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)