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)
$munin_cidr_allow = ‘192.168.0.1/32‘
You can also put an array there.
On pre-lenny systems, you have to use the older Regexp-variant:
$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
in your munin.conf, you can add/remove them from
/etc/munin/munin.conf.header on the munin::host.
| NODESDIR | = | ${module_dir_path}/munin/nodes |