Custom graphs with multiple data sources
list Alan Sparks
I am monitoring a set of load balancers (Alteons) which each have at least 1, but possibly/usually more, virtual addresses configured (for server load balancing groups). At the moment, I use a custom script to poll each device via SNMP and send a single status message per device to Hobbit, based on the session loads on those "virts." I am using NCV for graphing. However, with this, I am only able to manage one graph, and one data source, per device. I would like to graph all the session values. I would also like to use multiple RRD files. My experience with the single-file, multiple-DS approach is that, if I add another virtual, graphing will break (updates error out, probably since the RRD was not created with this new data source defined). I am amenable to changing the scripts to use the data channel approach (using the --extra-script method). I am hoping that I could use the hobbitgraph RRDFN/RRDIDX/RRDPARAM keywords to create the graphs. But, the documentation for custom graphing implies that only a single filename for the incoming data can be specified, so I see no way to split the data into multiple files, single DS per RRD. Short of creating a separate test column for each virtual I am monitoring, is there a better way to collect/plot this information? Thanks in advance for any suggestions. -Alan -- Alan Sparks, UNIX/Linux Systems Integration and Administration <user-8f2174fd8b66@xymon.invalid>
list Charles Goyard
Hi,
▸
Alan Sparks wrote :
However, with this, I am only able to manage one graph, and one data source, per device. I would like to graph all the session values. I would also like to use multiple RRD files. My experience with the single-file, multiple-DS approach is that, if I add another virtual, graphing will break (updates error out, probably since the RRD was not created with this new data source defined). [...]
Check the september 2007 mail archives, there's a discussion about it. There's three solutions : - apply a patch I posted on the list (does split-ncv on a testname basis). My patch has a memory leak, so beware (I kill my hobbitd_rrd every 24h). - send "data" messages with a body like "foo.rrd:mydsname:GAUGE:500 (Sorry, no pointers for that one, and it needs a recent snapshot). - take a snapshot or a least the hobbitd/rrd directory from the source, it includes the split-ncv feature without the memory leak (thank Henrik). -- Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31 Orange Business Services - online multimedia // ingénierie
list Sigurður Guðbrandsson
Hi. There is a fourth option, which I took as updating to snapshot caused my hobbit to break for some reason, and seeing that it is a system I must have up 99% of the day, I just backported. Well, that was not the option anyways :) My suggestion is that you make a custom script to parse your information and create the RRD's (actually the hobbit server manages creating the RRD's .. You just have to parse the information and send it in the proper format to hobbit). That way you can have your multi-file RRD's (one per balancer or some) and you don't have to update to snapshot. I wrote my script in perl (my very first perl script .. How I hate the language ;) and it works very well. You will not find it in the Shire, mainly because I haven't posted it there yet. If you need info on how the information is, and how to parse it, just drop me a line. With regards, Sigurður Guðbrandsson Raförninn ehf. Suðurhlíð 35 105 Reykjavik | Iceland user-f6f2e0690a1f@xymon.invalid | www.raforninn.is Office: +(XXX) XXX XXXX Mobile: +(XXX) XXX XXXX
▸
-----Original Message-----
From: Charles Goyard [mailto:user-a6cdca7046e2@xymon.invalid]
Sent: 10. október 2007 06:50
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Custom graphs with multiple data sources
Hi,
Alan Sparks wrote :
However, with this, I am only able to manage one graph, and one data source, per device. I would like to graph all the session values. I would also like to use multiple RRD files. My experience with the single-file, multiple-DS approach is that, if I add another virtual, graphing will break (updates error out, probably since the RRD was not created with this new data source defined). [...]
Check the september 2007 mail archives, there's a discussion about it. There's three solutions : - apply a patch I posted on the list (does split-ncv on a testname basis). My patch has a memory leak, so beware (I kill my hobbitd_rrd every 24h). - send "data" messages with a body like "foo.rrd:mydsname:GAUGE:500 (Sorry, no pointers for that one, and it needs a recent snapshot). - take a snapshot or a least the hobbitd/rrd directory from the source, it includes the split-ncv feature without the memory leak (thank Henrik). -- Charles Goyard - user-a6cdca7046e2@xymon.invalid - (+33) 1 45 38 01 31 Orange Business Services - online multimedia // ingénierie