On Fri, 7 Jul 2006, Filippo Giunchedi wrote:
> after an upgrade from sarge to etch dstat stopped working with my setup:
>
> $ dstat
> --cputotal- -disk/total -net/total- ---paging-- ---system--
> usr sys idl|_read write|_recv _send|__in_ _out_|_int_ _csw_
> Traceback (most recent call last):
> File "/usr/bin/dstat", line 1799, in ?
> main()
> File "/usr/bin/dstat", line 1750, in main
> o.extract()
> File "/usr/bin/dstat", line 728, 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
>
> of course this looks like a problem in parsing disk info, in fact:
>
> $ dstat -cngy
> --cputotal- -net/total- ---paging-- ---system--
> usr sys idl|_recv _send|__in_ _out_|_int_ _csw_
> 4 2 94| 0 0 | 179k 46k| 12 52
> 100 0 0| 234B 575B| 76k 0 | 154 644
>
> my setup:
>
> $ mount
> /dev/ubd/disc2/disc on / type ext3 (rw,noatime)
> proc on /proc type proc (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> tmpfs on /dev/shm type tmpfs (rw)
> tmpfs on /tmp type tmpfs (rw)
>
> 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.
Could you try the latest version 0.6.3 ? I might already have fixed it.
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).
I probably also require the content from /proc/partitions and/or
/proc/diskstat from your system.
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]