Hi Jijun:

For what you are trying to do, you are better off using gmetad-python:

https://github.com/ganglia/monitor-core/tree/master/gmetad-python

Depending on what language your program is written in, you can then
feed each and every metric directly to it.

Cheers,

Bernard

On Tue, Jun 26, 2012 at 7:33 PM, Jijun Gao <jj...@clustertech.com> wrote:
> Hi, dear all,
>
> Let me illustrate what I am doing:
>
> 1. I want to use ganglia data in my own program.
> 2. I try to fetch mem_toal with this cmd: 'nc localhost 8651 | grep
> mem_total'
> 3. I get a list of mem_totals in step 2. The problem is, there are 40
> nodes in the cluster, but I get only 8 mem_totals, and sometimes 10, or
> more.
>
> I try to set gmetad debug_level to 10, and find:
>
> 1. All gmond send collected data to gmetad.
> 2. Not every gmond send mem_total, but some does.
>
> I have tried to restart gmetad and gmond, the problem is still there.
> Btw, I use multicast.
>
> Can someone tell me why, thanks.
>
>
> Jijun Gao
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Ganglia-general mailing list
> Ganglia-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-general

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to