It looks like your best bet is going to be to query the gmetad interactive port 
on the server _from_ the client (you'll have to make sure this is allowed in 
your gmetad.conf:trusted_hosts line.

Here's a quick usage example and link to a nagios plugin for ganglia XMl.  Note 
that if you specify the cluster your queries are faster (0.23sec vs. 4.4 avg) 
and put significantly less strain on the gmetad server for searching its XML.


./check_ganglia.pl -H gmetad.site.com -P 8652 -O hostcheck
--targethost=gmond.site.com
--cluster="Ganglia_Cluster_Name"
--metric="REPORTED"

This will connect to the gmetad query port (it's different than the standard 
XML port), issue a request for the /cluster/host/(optionally --metric) directly 
and return the value(s).  You're looking for the "REPORTED" field.  Leaving off 
--metric will return the full XML tree for that host.

Download from: 
"http://www.nagiosexchange.org/Check_Plugins.21.0.html?&tx_netnagext_pi1[p_view]=1037";


Hope this helps.

Cheers,


/eli


Artem Pervin wrote:
> Hello all,
> 
> 
> Can anyone please suggest a legal way out to figure out if the
> link between the node of a cluster and a master host (where gmetad
> resides) is lost? It's relatively easy to find out this fact being
> on the master host - if we don't see responses from a particular node
> for some period of time, then we can consider it to be dead. (I know
> that this idea may not work in some cases, but it's ok for me)
> 
> But how one can do the same thing being on the node? The reason why
> I'm asking this, is because I need to perform some cleanup operations
> on the node in case of connectivity failure (for example network
> interface failure).
> 
> 
> Artem Pervin
> 
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Ganglia-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to