Sure, there is no problem in doing that.  Like I mentioned, it is just a
matter of building up the metric_info array.  The mod_python module includes
an example of how to generate the metric_info array.  The metric definitions
that you want to be included and how your create those definitions is up to
you.


OK, so here is what I tried:

Int noOfMetrics=8;
Static G_25_metric *ex_metric_info;

Then in the ex_metric_init function:
ex_metric_info= new G_25_metric [noOfMetrics];

ex_metric_info[0]= {};
ex_metric_info[1]={};
.
.
.
ex_metric_info[7]={0, NULL};

And the error I get is initlializer element is not constant. I get this when
I give the make command. Is there a simple work around for this- Or is the
python_module method the only way?

Thanks,
Sylvester

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to