Munin is a performance monitoring system which creates nice RRD graphs and has a very easy plugin interface. The munin homepage is munin.projects.linpro.no/
To use this module, follow these directions:
storeconfigs=true
You may wish to immediately setup a mysql/pgsql database for your storedconfigs, as the default method uses sqlite, and is not very efficient, to do that you need lines such as the following below the storeconfigs=true line (adjust as needed):
dbadapter=mysql dbserver=localhost dbuser=puppet dbpassword=puppetspasswd
import "munin"
(NOTE: if you have followed the directions in README.common then you will have import "modules.pp" in your site.pp, if you do not have that, then you will need to add the import line to your site.pp)
mkdir /etc/puppet/modules/munin/files/empty mkdir /etc/puppet/modules/munin/files/modules_dir mkdir -p /etc/puppet/modules/munin/files/nodes/modules_dir mkdir -p /etc/puppet/modules/munin/files/plugins/modules_dir
$munin_allow = ‘192.168.0.1‘
# Enable monitoring of disk stats in bytes munin::plugin { df_abs: }
# Use a non-standard plugin path to use custom plugins munin::plugin { "spamassassin":
ensure => "spamassassin", script_path => "/usr/local/share/munin-plugins",
}
# Use a special config to pass parameters to the plugin munin::plugin {
[ "apache_accesses", "apache_processes", "apache_volume" ]:
ensure => present,
config => "env.url http://127.0.0.1:80/server-status?auto"
}
$munin_port = 4948
| NODESDIR | = | /var/lib/puppet/modules/munin/nodes |