Hi Lars,

On 20 April 2010 03:32, Lars Kellogg-Stedman <[email protected]> wrote:

>
> Are you running the version of check_ganglia from exchange.nagios.org
> (http://bit.ly/akp88N)?  This includes a mode that uses the query
> server provided by gmetad to only grab the XML for a specific host
> rather than dumping the entire tree.  I haven't used this particular
> plugin myself (I've written my own), but it looks like the invocation
> would be something like:
>
>  check_ganglia -H localhost -P 8652 \
>    -O hostcheck \
>    --cluster 'My Cluster Name' \
>    -T my.target.host
>
> In experiments with my own code, using the gmetad query interface is
> substantially (3x to 4x) faster -- and this is with a small (< 50) set
> of monitored hosts.
>
>
I wasn't aware of this interface when I wrote my plugin; certainly I can see
the advantages of this approach. I did look at the perl plugin you mentioned
but it has a few dependencies, one of which is not distributed with RH
(DateTime) and is a pain to install and maintain (thanks in large part to
Build.PL). In the end it was easier for me to write a shell script to get
the information I want and the result is quick enough. From there it was
easy to convert to a python script (the only dependency being the RRD python
module), which is even quicker.


> This should compare favorably with the overhead of polling a RRD file
> (and seems like a cleaner solution).
>

I take your point. I may have a look at implementing an XML variant as well
for comparison's sake. From what I can see, though, GMetad uses the same RRD
libraries as the python module and the rrdtool command line, with a similar
mechanism for identifying which database to interrogate, so I kinda hope
that the performance will be equivalent :).

Malcolm.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to