Hi Patrick:
On Tue, Apr 27, 2010 at 2:20 AM, Patrick Datko <[email protected]> wrote:
> i'm using Ganglia 3.1.2, installed with aptitude, to observe my cluster
> and it works without any problem. I wanted to integrate a metric which
> control the traffic of the several nodes, so i build a little python
> module to check a xml-file which includes the traffic amount. I used
> sourceforge wiki to build one. I included in my python script the 3
> Methods (traffic_handler, metric_init, metric_cleanup) which are
> required of ganglia and added the following lines
> to /etc/ganglia/gmond.conf
>
> module {
> name = "traffic"
> language = "python"
> path = "/usr/lib/ganglia/traffic.py"
> }
>
> collection_group {
> collect_every = 10
> time_threshold = 50
> metric {
> name = "traffic"
> title = "Traffic"
> value_threshold = 70
> }
> }
Further to what Brad said, you should put the above text in a .pyconf
(eg. traffic.pyconf) and place that in /etc/ganglia/conf.d. Get rid
of the "path" line and place traffic.py in
/usr/lib/ganglia/python_modules.
Regards,
Bernard
------------------------------------------------------------------------------
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general