new top-io-adv does not work with csv output #15

eccles opened this Issue Feb 21, 2012 · 0 comments

2 participants


I upgraded my rhel5 machione with the latest version from dstat-0.7.2-1.el5.rfx.noarch.rpm. I have tried the new 'top' options. Out of all the top otions this command (top-io-adv) fails:
[root@xxxxxxxxx ~]# /usr/bin/dstat --noheaders --nocolor -t --top-io-adv --output /tmp/collect_stats/dstat6_test 1
Traceback (most recent call last):
File "/usr/bin/dstat", line 2554, in ?
File "/usr/bin/dstat", line 2416, in main
File "/usr/lib64/python2.4/", line 105, in run
void = action(*argument)
File "/usr/bin/dstat", line 2514, in perform
oline = oline + o.showcsv() + o.showcsvend(totlist, vislist)
File "/usr/share/dstat/", line 75, in showcsv
return self.val['i/o process'] + 'Top: %s\t%s\t%s\t%s' % (self.val['name'][0:self.width-20], self.val['read_usage'], self.val['write_usage'], self.val['cpu_usage'])
KeyError: 'i/o process'

@dagwieers dagwieers was assigned Nov 26, 2013
@dagwieers dagwieers added a commit that closed this issue Nov 26, 2013
@dagwieers Fix the top-plugins with CSV output
This fixes #15 and #16
@dagwieers dagwieers closed this in e8ea398 Nov 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment