"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/dstat_sendmail.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_sendmail.py  (dstat-0.7.3):dstat_sendmail.py  (dstat-0.7.4)
skipping to change at line 15 skipping to change at line 15
class dstat_plugin(dstat): class dstat_plugin(dstat):
def __init__(self): def __init__(self):
self.name = 'sendmail' self.name = 'sendmail'
self.vars = ('queue',) self.vars = ('queue',)
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/mqueue', os.R_OK): if not os.access('/var/spool/mqueue', os.R_OK):
raise Exception, 'Cannot access sendmail queue' raise Exception('Cannot access sendmail queue')
def extract(self): def extract(self):
self.val['queue'] = len(glob.glob('/var/spool/mqueue/qf*')) self.val['queue'] = len(glob.glob('/var/spool/mqueue/qf*'))
# 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)