Anton Lindstrom (about, @twitter, @github)

hostedmunin.com and Puppet

Published:

Found out about hostedmunin.com a few days ago and decided it would be nice to implement for my own few hosts. Earlier I have used Munin with a MQ (RabbitMQ) to send metrics to Graphite. A few weeks ago I decided to remove those extra servers to save me a few bucks.

As I have all my hosts in Puppet it would be the easiest way to deploy munin through it. I wrote a damn simple module for munin-node and added the IPs listed on hostedmunin as pollers. All I did after that was to add the hosts in the web interface of the service and the data started to show up.

If you want to use the munin puppet module, all you have to do is add these lines for your nodes:

# hostedmunin.com
class { 'munin::config':
  pollers => [
    '^2001:67c:27ec:249::.+$',
    '^2a02:20c8:1670:249::.+$',
    '^91\.227\.249\.12$',
    '^91\.227\.249\.13$',
    '^91\.227\.249\.20$',
  ],
}

include munin::package
include munin::service

Now, the next step is to add support to the module to add your own plugins to munin. So, check out the awesome hostedmunin.com.