I need to get a munin node running on a unix machine where I don't want to touch the perl installation too much. Also, I have no internet connection on that machine and getting CPAN to play ball was near impossible.
googling around, I found pmmn. Unfortunately it dates back to 2008, and it does not yet support socket connections. After a bit more digging, I decided to write a pure python port (my perl-foo with sockets is not strong enough).
This pull request embodies the results of my efforts. It is a pure python (tested on python2.4, 2.6 and 2.7) port of pmmn with socket support. It can also be run as a proper unix daemon directly.
I will be using this tool in testing from now on. I am not sure how long I will be able to support it. This only depends on how much longer those Unix boxen will linger in our basements. So I made an effort to make the code easily readable and maintainable crossingfingers.
Initial commit of pypmmn
A port of pmmn to python.
* Currently only handles text from stdin (as with pmmn).
* The location of the ``plugins_folder`` is currently hardcoded.
* No command line arguments parsed yet.
Command line options added. Code restructured.
Command line arguments added and handled.
Quick-and-dirty TCP implementation (Needs cleanup)
Daemonizing and logging added, 'stdin mode' fixed
Minor fixes & docs & comments
Real timeout added. Version bump to beta1.
Updated the README
Added a URL to the python metadata
Added a usage example to the README