Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread Vladimir Vuksan
Web interface caches a lot of the information for example. For example if you look in /var/lib/ganglia/conf there is ganglia_metrics.cache which is PHP serialized array of host to cluster mappings, host to metrics mappings etc. Also if you use Nagios integration it will cache a cleaned up ve

Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread Aaron Nichols
On Thu, May 10, 2012 at 9:05 AM, Seth T Graham wrote: > Perhaps more interesting is the interactive port, which allows a script to > send a GET style query to gmetad and fetch only the data the user is > interested in. Downside being it's not documented terribly well (or it > wasn't a couple year

Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread Seth T Graham
On May 10, 2012, at 8:44 AM, Aaron Nichols wrote: > If you want to see all clusters in a particular grid you can query gmetad on > port 8651. If you have multiple grids (multiple hosts running gmetad for > different groups of clusters) you will need to query each of those > separately. You w

Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread Aaron Nichols
If you want to see all clusters in a particular grid you can query gmetad on port 8651. If you have multiple grids (multiple hosts running gmetad for different groups of clusters) you will need to query each of those separately. Aaron On Thu, May 10, 2012 at 7:36 AM, Joe Borġ wrote: > Thanks Au

Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread Joe Borġ
Thanks Austin, That's working but only showing me one cluster, is it a different port for the other clusters? Regards, Joseph David Borġ http://www.jdborg.com On 10 May 2012 13:56, talk2austin wrote: > Greeting Joseph !! > > You can telnet to gmetad service and it will through out the comple

Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread talk2austin
Greeting Joseph !! You can telnet to gmetad service and it will through out the complete XML output of all the nodes example # telnet 127.0.0.1 8649 Regards, Austin On Thu, May 10, 2012 at 2:26 PM, Joe Borġ wrote: > As far as I'm aware, ganglia outputs its data as XML that the web page >

Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread Joe Borġ
Thanks Vladimir, Can I build this without proxy? The ganglia site is on my exceptions list: urllib2.HTTPError: HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ) Regards, Joseph David Borġ

Re: [Ganglia-general] View ganglia's XML output

2012-05-10 Thread Vladimir Vuksan
You can check check_ganglia_metric written in Python https://github.com/mconigliaro/check_ganglia_metric for example how you can parse the XML. Alternatively, Ganglia Web 3.3.0+ include Nagios integration which does what you are looking for e.g. Check multiple metrics on a range of hosts

[Ganglia-general] View ganglia's XML output

2012-05-10 Thread Joe Borġ
As far as I'm aware, ganglia outputs its data as XML that the web page then picks up and processes. What I'm trying to do is write some python that looks at every node in a cluster group and alerts if any of the metrics are over a threshold (easy enough) if I can get hold of ganglia's output. Can