[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
- To: <hobbit (at) hswn.dk>
- Subject: Bug in rrd/do_disk.c while using /GROUP option of bb command
- From: "Francesco Duranti" <fduranti (at) q8.it>
- Date: Sat, 30 Sep 2006 17:15:44 +0200
- Thread-index: Acbko0x8K2XPSTyxQymCatwe6RKZig==
- Thread-topic: 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