On Fri, 7 Jul 2006, Filippo Giunchedi wrote: > Hello Dag, > thanks for your quick reply!
Sadly, I couldn't keep that up :) > On Fri, Jul 07, 2006 at 02:03:42PM +0200, Dag Wieers wrote: > > > please tell me if you need further informations. > > > as a side note it might be worth adding a reportbug hook to > > > automatically list additional informations about the target system. > > > > Also add --debug if you still have problems, and send the output from > > dstat --version. (So that I know what kernel version you're using). > > ~/tmp/dstat-0.6.3$ ./dstat --debug > Module dstat_cpu24 requires /proc/stat > Module dstat_disk24old requires /proc/stat > Module dstat_net requires /proc/net/dev > Module dstat_page24 requires /proc/stat > Module dstat_sys requires /proc/stat > --cputotal- -dsk/total- -net/total- ---paging-- ---system-- > usr sys idl|_read _writ|_recv _send|__in_ _out_|_int_ _csw_ > Traceback (most recent call last): > File "./dstat", line 1906, in ? > main() > File "./dstat", line 1853, in main > o.extract() > File "./dstat", line 737, in extract > if not re.match('(md[0-9]+)', name): > File "/usr/lib/python2.3/sre.py", line 132, in match > return _compile(pattern, flags).match(string) > TypeError: expected string or buffer > > I probably also require the content from /proc/partitions and/or > > /proc/diskstat from your system. > > here it goes: (/proc/diskstat is not present) > > $ cat /proc/partitions > major minor #blocks name > > 98 0 52 ubd/disc0/disc > 98 16 262144 ubd/disc1/disc > 98 32 3145728 ubd/disc2/disc The problem is related to the device names. My dev() function creates a device name from the major and minor and ubd was not considered. In fact I know improved that function so that it will not return None if it fails. BTW This function is only used for 2.4 kernels, 2.6 kernels were not affected. Sorry for not fixing this earlier. I would appreciate if you could try again. I added a devtest script that shows what the function does. Kind regards, -- dag wieers, [EMAIL PROTECTED], http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]