[Tsung] Bug report server monitoring
Marco Nijdam
marco at west.nl
Tue Aug 21 16:41:46 CEST 2007
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.
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?).
Kind regards,
--
-- Marco Nijdam
--
More information about the Tsung-users
mailing list