summaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server')
-rw-r--r--manifests/server/munin/debian.pp42
-rw-r--r--manifests/server/munin/default.pp2
-rw-r--r--manifests/server/nagios.pp2
3 files changed, 37 insertions, 9 deletions
diff --git a/manifests/server/munin/debian.pp b/manifests/server/munin/debian.pp
index 2b2acb4..9ff7863 100644
--- a/manifests/server/munin/debian.pp
+++ b/manifests/server/munin/debian.pp
@@ -1,9 +1,35 @@
-# manifests/server/munin/debian.pp
-
-class mysql::server::munin::debian {
- munin::plugin {
- [mysql_bytes, mysql_queries, mysql_slowqueries, mysql_threads]:
- config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
- require => Package['mysql'],
- }
+# debian way of calling plugins
+class mysql::server::munin::debian inherits mysql::server::munin::default {
+ Munin::Plugin['mysql_bytes']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
+ Munin::Plugin['mysql_queries']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
+ Munin::Plugin['mysql_slowqueries']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
+ Munin::Plugin['mysql_threads']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
+ Munin::Plugin::Deploy['mysql_connections']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
+ Munin::Plugin::Deploy['mysql_qcache']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
+ Munin::Plugin::Deploy['mysql_cache_mem']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
+ Munin::Plugin::Deploy['mysql_size_all']{
+ config => "user root\nenv.mysqlopts --defaults-file=/etc/mysql/debian.cnf",
+ require => Package['mysql'],
+ }
}
diff --git a/manifests/server/munin/default.pp b/manifests/server/munin/default.pp
index 83924c5..11609d2 100644
--- a/manifests/server/munin/default.pp
+++ b/manifests/server/munin/default.pp
@@ -31,5 +31,7 @@ class mysql::server::munin::default {
source => 'mysql/munin/mysql_qcache';
'mysql_qcache_mem':
source => 'mysql/munin/mysql_qcache_mem';
+ 'mysql_size_all':
+ source => 'mysql/munin/mysql_size_all';
}
}
diff --git a/manifests/server/nagios.pp b/manifests/server/nagios.pp
index 0ceb968..39af429 100644
--- a/manifests/server/nagios.pp
+++ b/manifests/server/nagios.pp
@@ -6,7 +6,7 @@ class mysql::server::nagios {
} else {
$nagios_mysql_user = 'nagios@%'
nagios::service::mysql { 'connection-time':
- check_hostname => $::fqdn,
+ check_host => $::fqdn,
require => Mysql_grant[$nagios_mysql_user],
}
}