On Wed, Jan 17, 2007 at 02:16:49PM +0100, Charles Goyard wrote:
Stef Coene wrote :
Just wondering, how hard would it be to create an extra channel for trending? So you can use the bb client to send "numbers" to the hobbit server together with some extra control information.
bb <bb server> trends <server name> <rrd file name> <ds name> <number> <options>
It's a bad idea, because you hook the underlying data storage format into the protocol.
True, but I can see it being useful for custom trends tracking. The "NCV" module also has a heavy coupling between the way the client formats the raw data, and how it gets stored in the RRD files.
I would do it differently (because I hate having to update clients), but I won't insist that people shouldn't aim at their own feet when pulling the trigger :-)
Anyway, a reasonable implementation takes less than 100 lines of code. It compiles, and with a bit of luck it may even work! Apply the attached patch with
cd hobbit-4.2.0 patch -p0 </tmp/trends.patch
Then run "make" and install (at least) the new hobbitd/hobbitd_rrd binary and restart Hobbit.
Regards, Henrik