summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README65
1 files changed, 31 insertions, 34 deletions
diff --git a/README b/README
index b6ead1c..b386c66 100644
--- a/README
+++ b/README
@@ -5,8 +5,10 @@ a very easy plugin interface. The munin homepage is http://munin.projects.linpro
To use this module, follow these directions:
-1. Install the "common" module -- the munin module depends on functions that are
- defined and installed via the common module, see README.common for how to do this
+0. This module requires puppet 2.7 or newer.
+
+1. Install the "common", "concat" and "stdlib" modules -- the munin module
+ depends on functions that are defined and installed via these modules.
2. You will need storedconfigs enabled in your puppet setup, to do that you need to
add a line to your puppet.conf in your [puppetmasterd] section which says:
@@ -49,56 +51,51 @@ To use this module, follow these directions:
On pre-lenny systems, you have to use the older Regexp-variant:
- $munin_allow = '^192\.168\.0\.1$'
-
- e. In the node definition in your site.pp for your main munin host, add the following:
-
- include munin::host
+ node foo {
+ class { 'munin::client': allow => '192.168.0.1'}
+ }
- If you want to specify a particular package version for the main munin
- host, you can set the $munin_ensure_version variable _before_ the above
- include, like this
+ for multiple munin nodes, you can pass an array:
- $munin_ensure_version = "1.2.6-17"
-
- f. On each node that will gather munin statistics, add this line to that node's entry
- in site.pp (you may want to also add this to your main munin host):
+ class { 'munin::client': allow => [ '192.168.0.1', '10.0.0.1' ] }
- include munin::client
+ c. In the node definition in your site.pp for your main munin host, add the following:
- If you want to specify a particular package version for the munin
- client, you can set the $munin_node_ensure_version variable _before_ the
- above include, like this
+ class { 'munin::host': }
- $munin_node_ensure_version = "1.2.6-17"
+ If you want cgi graphing you can pass cgi_graphing => true.
+ (For CentOS this is enabled in the default header config)
+ for more information, see: http://munin.projects.linpro.no/wiki/CgiHowto
- g. If there are particular munin plugins you want to enable or configure, you define them
+ d. If there are particular munin plugins you want to enable or configure, you define them
in the node definition, like follows:
# Enable monitoring of disk stats in bytes
- munin::plugin { df_abs: }
+ munin::plugin { 'df_abs': }
# Use a non-standard plugin path to use custom plugins
- munin::plugin { "spamassassin":
- ensure => "spamassassin",
- script_path_in => "/usr/local/share/munin-plugins",
+ munin::plugin { 'spamassassin':
+ ensure => present,
+ script_path => '/usr/local/share/munin-plugins',
+ }
+
+ # For wildcard plugins (eg. ip_, snmp_, etc.), use the name variable to
+ # configure the plugin name, and the ensure parameter to indicate the base
+ # plugin name to which you want a symlink, for example:
+ munin::plugin { [ 'ip_192.168.0.1', 'ip_10.0.0.1' ]:
+ ensure => 'ip_'
}
# Use a special config to pass parameters to the plugin
munin::plugin {
- [ "apache_accesses", "apache_processes", "apache_volume" ]:
+ [ 'apache_accesses', 'apache_processes', 'apache_volume' ]:
ensure => present,
- config => "env.url http://127.0.0.1:80/server-status?auto"
+ config => 'env.url http://127.0.0.1:80/server-status?auto'
}
-
- h. If you have Linux-Vservers configured, you will likely have multiple munin-node processes
+ e. If you have Linux-Vservers configured, you will likely have multiple munin-node processes
competing for the default port 4949, for those nodes, set an alternate port for munin-node
- to run on by putting something similar to the following in the node definition:
-
- $munin_port = 4948
+ to run on by putting something similar to the following class parameter:
- i. If you'd like to do cgi graphing, please note the following page: http://munin.projects.linpro.no/wiki/CgiHowto
- For CentOS this is enabled in the default header config
+ class { 'munin::client': allow => '192.168.0.1', port => '4948' }
- j. Per default (on CentOS) munin will send warnings and critical messages to root