Posts Tagged python
We have created three repositories on GitHub for centralizing user contributions which extends Ganglia:
We have imported most of the gmetric scripts from http://ganglia.info/gmetric and there are now about 40+ contributions available.
If you have written a gmetric script, python module, or other tools that extends the functionality of Ganglia and would like to contribute, please fork the corresponding repository, add your code in the appropriate directories and submit a pull request.
For discussions on developing, using or contributing these plugins, please head over to our mailing-lists: http://sourceforge.net/mail/?group_id=43021
Thanks for your attention and happy plugins writing!
– Ganglia Development Team
The command-line client (/usr/sbin/ganglia) is a small utility which is best used as an example — guiding the development of other python-based ganglia tools. The command-line client instantiates the ganglia python class (Gang). ‘Gang’ (/usr/lib/python1.5/site-packages/gmon/ganglia.py) is where all the “heavy-lifting” occurs, as it contains the methods to attach to a local gmond server and parse gmond’s XML output. Other methods are included that output specific metrics and display a help message (by dynamically examining the metrics in the XML output!).