From 266b3049c95f401e6377501d43a3ee6abba9c006 Mon Sep 17 00:00:00 2001 From: badele Date: Sat, 1 Jun 2013 11:12:05 +0200 Subject: [PATCH 1/2] Add docs for sample python-munin installation --- README.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.rst b/README.rst index 4a9042e..50ca2e4 100644 --- a/README.rst +++ b/README.rst @@ -5,3 +5,31 @@ Description This library provides helper classes for writing plugins for the server monitoring tool Munin. It also comes with some prebuilt plugins for various services including PostgreSQL, Memcached, and Nginx. + +Installation +------------ + +Sample installation on Debian distribution + +**dev base requirement** + +.. code-block:: console + + apt-get install python-pip git + +**Install python-munin** + +.. code-block:: console + + cd /usr/local/src/ + git clone https://github.com/samuel/python-munin.git + pip install python-munin/ + +**Sample activation plugin** (ex: mysql_replication) + +.. code-block:: console + + cd /etc/munin/plugins + ln -s /usr/local/src/python-munin/plugins/mysql_replication mysql_replication + vi /etc/munin/plugin-conf.d/mysql_replication # edit options + /etc/init.d/munin-node restart From 3afc23b6ab5de5773ec39391a25eae98af73fe4a Mon Sep 17 00:00:00 2001 From: badele Date: Sat, 1 Jun 2013 11:14:57 +0200 Subject: [PATCH 2/2] mySQL requirement python package --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index 50ca2e4..a544099 100644 --- a/README.rst +++ b/README.rst @@ -29,6 +29,7 @@ Sample installation on Debian distribution .. code-block:: console + apt-get install python-mysqldb cd /etc/munin/plugins ln -s /usr/local/src/python-munin/plugins/mysql_replication mysql_replication vi /etc/munin/plugin-conf.d/mysql_replication # edit options