Python Module for developing Munin Multigraph Monitoring Plugins. Multigraph Plugins for Apache Web Server, Apache Tomcat, APC PHP Cache, PHP FPM (Fast Process Manager), Asterisk, FreeSWITCH, Lighttpd, Memcached, MySQL Database, Nginx, NTP, PostgreSQL Database, CPU Utilization, Memory Utilization, Disk Usage, Disk I/O, Network Interfaces, Networ…http://aouyar.github.io/PyMunin
Python Module for developing Munin Multigraph Monitoring Plugins.
More detailed documentation for the project and sample graphs for plugins are published in the PyMunin Project Web Page.
Regular Munin Plugins employ one-plugin one-graph logic and require the execution of a script for data retrieval for each graph. Multigraph plugins permit retrieval of data for multiple graphs in one execution run (one-plugin many-graphs), reducing the processing time and delay for the fetch cycle significantly. More information on Multigraph Plugins can be found in the Munin Wiki:
The pymunin module (./pymunin) implements the base classes for developing Munin plugins.
The plugin logic is implemented in the plugin scripts in ./pymunin/plugins.
The actual data retrieval logic is separated from the plugins to facilitate code reuse. Individual modules in the directory ./pysysinfo implement classes for getting the monitoring data and returning them in dictionary objects. The separation of the data retrieval logic should facilitate the use of the same code in other monitoring solutions.
Although the solution is focused on implementing Multigraph Plugins the module also supports simple single graph plugins.
The other option is to download and uncompress the code manually and execute the included setup.py script for installation:
I would be happy to receive suggestions on improving the code for developing Munin Plugins. Alternatively you can use the Issues functionality of GitHub to document problems and to propose improvements. You can use the internal messaging system of GitHub or my e-mail address in case you prefer to contact me directly.
I hope that by sharing the code, the existing plugins will get more testing and receive improvements, and many more Multigraph plugins will be developed collaboratively.
I would be glad to receive some sample graphs from anyone using the plugins.
PyMunin has been developed by aouyar (Ali Onur Uyar).
Some of the people that have knowingly or unknowingly contributed with the development are:
Initial packaging of the code was done by Mark Lavin (mlavin). PyMunin is installable pip / easy_install thanks to Mark. :-)
PyMunin has been packaged for Fedora and Red Hat Enterprise Linux by Matthias Runge.