A Perl script to send Munin-node data to a StatD instance. As written, this is designed to be run from cron.
- Munin::Node::Client from CPAN:
cpan Munin::Node::Client
- IO::Socket::INET (If you have Perl, you probably already have this)
Change schemabase
, graphitehost
, and graphiteport
as appropriate for your environment, and muninhost
and muninport
if you're not using this for the local machine.
- Clone the repository
cd /usr/local/bin
git clone https://github.com/Tech-Corps/munin-statsd.git
- Make sure munin-graphite.pl is executable
chmod +x munin-stats/munin-statsd.pl
- Create a crontab entry that calls the script
* * * * * /usr/local/bin/munin-statsd/munin-statsd.pl