[Tsung] Bug report server monitoring
Nicolas Niclausse
nicolas at niclux.org
Fri Aug 24 14:14:22 CEST 2007
Marco Nijdam ecrivait le 21.08.2007 16:41:
> Dear Tsung-developers,
>
> First of all, thnaks very much for the great Tsung tool.
> It is so easy to use, has all the needed features and produces very
> useful reports.
good to hear that :)
>
> In our test scenario server monitoring didn't work, complaining about
> bad_request on fread:
>
> Error in process <0.59.0> on node 'os_mon at node1' with exit value:
> {{badmatch,{error,{fread,input}}},[{ts_os_mon,'-get_os_data/2-fun-0-',2},{ts_os_mon,node_d
> ata,0},{ts_os_mon,updatestats,2}]}
>
>
> Diving a bit in the code, I see fread being used in ts_os_mon.erl
> to parse /proc/net/dev. If I understand the erlang code correctly,
> it expects a 6-character device followed by a colon.
>
> In our case one of the ethernet devices was called eth1.14, which
> is 7 characters long. This caused the errors.
>
> I temporarily solved it by filtering out the specific device
> (which was not of interest for our test).
>
> Maybe you can find a better solution (e.g. with a regular expression?).
Fixed in svn. It should work with any length now
thanks.
--
Nicolas
More information about the Tsung-users
mailing list