Re: [Ganglia-developers] ganglia.h cannot be compiled with C++

2011-04-19 Thread Kazuki Ohta
Hi, Bemard

Thanks for the reply. Wrapping in C first, and use them will work for C++
application, but not ideal solution.

On Tue, Apr 19, 2011 at 2:48 AM, Bernard Li bern...@vanhpc.org wrote:
 Hi Kazuki:

 On Mon, Apr 18, 2011 at 1:30 AM, Kazuki Ohta k...@preferred.jp wrote:

 I'm now trying to implement C++ server, with native Ganglia metrics support.
 The server throws to local gmond with its own metrics.

 [kzk@red0 tmp]$ ganglia-config --version
 Ganglia 3.1.7

 However, ganglia.h cannot be compiled with g++, becuase of the typedef 
 problem.
 https://gist.github.com/924982

 Not sure if this is helpful to you, but we have some documentation on
 how to write gmond C modules (and Python modules) here:

 https://sourceforge.net/apps/trac/ganglia/wiki

 Good luck,

 Bernard





-- 
--
Kazuki Ohta: http://kzk9.net/

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers


Re: [Ganglia-developers] ganglia.h cannot be compiled with C++

2011-04-19 Thread Bernard Li
Hi Kazuki:

On Mon, Apr 18, 2011 at 11:52 PM, Kazuki Ohta k...@preferred.jp wrote:

 Thanks for the reply. Wrapping in C first, and use them will work for C++
 application, but not ideal solution.

The documentation I provided is for writing gmond C modules, however
we do support writing modules in C++ at least according to the release
notes:

http://sourceforge.net/apps/trac/ganglia/wiki/ganglia_release_notes#GangliaRelease3.1.1

Perhaps you can use the guide and try writing a C++ module and see if
you can make it work?

I also found this thread, perhaps it will come in handy:

http://www.mail-archive.com/ganglia-developers@lists.sourceforge.net/msg05278.html

On the other hand, it looks like you're trying to write a C++ program
using ganglia header files, that is not the same as writing a C++
gmond module.  You need to figure out whether writing a module will
work in your case.

Good luck,

Bernard

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers


[Ganglia-developers] ganglia.h cannot be compiled with C++

2011-04-18 Thread Kazuki Ohta
Hi, ganglia-developers

I'm now trying to implement C++ server, with native Ganglia metrics support.
The server throws to local gmond with its own metrics.

[kzk@red0 tmp]$ ganglia-config --version
Ganglia 3.1.7

However, ganglia.h cannot be compiled with g++, becuase of the typedef problem.
 https://gist.github.com/924982

Could you look at it?

Thanks
Kazuki

-- 
--
Kazuki Ohta: http://kzk9.net/

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers


Re: [Ganglia-developers] ganglia.h cannot be compiled with C++

2011-04-18 Thread Bernard Li
Hi Kazuki:

On Mon, Apr 18, 2011 at 1:30 AM, Kazuki Ohta k...@preferred.jp wrote:

 I'm now trying to implement C++ server, with native Ganglia metrics support.
 The server throws to local gmond with its own metrics.

 [kzk@red0 tmp]$ ganglia-config --version
 Ganglia 3.1.7

 However, ganglia.h cannot be compiled with g++, becuase of the typedef 
 problem.
 https://gist.github.com/924982

Not sure if this is helpful to you, but we have some documentation on
how to write gmond C modules (and Python modules) here:

https://sourceforge.net/apps/trac/ganglia/wiki

Good luck,

Bernard

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers