"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/dstat_qmail.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_qmail.py  (dstat-0.7.3):dstat_qmail.py  (dstat-0.7.4)
skipping to change at line 18 skipping to change at line 18
self.name = 'qmail' self.name = 'qmail'
self.nick = ('in_queue', 'not_prep') self.nick = ('in_queue', 'not_prep')
self.vars = ('mess', 'todo') self.vars = ('mess', 'todo')
self.type = 'd' self.type = 'd'
self.width = 4 self.width = 4
self.scale = 100 self.scale = 100
def check(self): def check(self):
for item in self.vars: for item in self.vars:
if not os.access('/var/qmail/queue/'+item, os.R_OK): if not os.access('/var/qmail/queue/'+item, os.R_OK):
raise Exception, 'Cannot access qmail queues' raise Exception('Cannot access qmail queues')
def extract(self): def extract(self):
for item in self.vars: for item in self.vars:
self.val[item] = len(glob.glob('/var/qmail/queue/'+item+'/*/*')) self.val[item] = len(glob.glob('/var/qmail/queue/'+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)