[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in rrd/do_disk.c while using /GROUP option of bb command



Hi Henrik, 
I got some problems with RRD creation using the "/group:groupname"
directive.

The do_disk.c will skip every line that don't contain a "/" and the
string " red " or " yellow ".
This will work if the test are in error but it will not work if the test
are not red or yellow.
The first line of the message sent with the group directive is something
like

status+60/GROUP:netappadmin VITROMFS65.disk green Sat Sep 30 16:59:17
2006

And this will be carried on generating a rrd file with a strange name.

This can be avoided skipping the first like changing line 54 of
hobbitd/rrd/do_disk.c from 
	curline = msg;	
To
	curline = strchr(msg,'\n');
	if (curline) curline++;

Just to skip the first line.

Francesco