Welcome, Guest! Log In | Create Account

Changes between Version 1 and Version 2 of ganglia_gmond_python_modules

Show
Ignore:
Timestamp:
08/29/09 00:33:45 (4 months ago)
Author:
bernardli (IP: 172.29.29.59)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ganglia_gmond_python_modules

    v1 v2  
    1313 
    1414Writing a Python module is very simple. You just need to write it following a template and put the resulting Python module (.py) in /usr/lib(64)/ganglia/python_modules. A corresponding Python Configuration (.pyconf) file needs to reside in /etc/ganglia/conf.d/. 
     15 
     16If your Python module needs to access certain files on the server, keep in mind that the module will be executed as the user which runs `gmond`.  In other words, if `gmond` runs as user `nobody` then your module will also run as `nobody`. So make sure that the user which runs `gmond` has the correct permissions to access the files in question. 
    1517 
    1618The Ganglia distribution comes with an example Python module in /usr/lib(64)/ganglia/python_modules/example.py. Alternatively, this file is also viewable from our SVN repository: http://ganglia.svn.sourceforge.net/viewvc/ganglia/branches/monitor-core-3.1/gmond/python_modules/example/example.py?view=markup