dagwieers/dstat — Issue #15: new top-io-adv does not work with csv output
Author: eccles
Created: 2012-02-21 11:32:45+00:00
State: open

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 ?
main()
File "/usr/bin/dstat", line 2416, in main
scheduler.run()
File "/usr/lib64/python2.4/sched.py", 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/dstat_top_io_adv.py", 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'