From 57e007f6826cba775f98a53596bdbcea51a78376 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 26 Sep 2014 17:28:38 -0300 Subject: Fix munin mysql graph. --- manifests/role/mail.pp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'manifests/role/mail.pp') diff --git a/manifests/role/mail.pp b/manifests/role/mail.pp index 7264c29..f12bbcf 100644 --- a/manifests/role/mail.pp +++ b/manifests/role/mail.pp @@ -15,8 +15,11 @@ class nodo::role::mail { } # Graph mysql - munin::plugin { [ 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]: - config => "user root", + package { 'libcache-cache-perl': # needed by munin mysql plugin + ensure => present, + } + munin::plugin { [ 'mysql_', 'mysql_queries', 'mysql_slowqueries', 'mysql_bytes', 'mysql_threads' ]: + config => 'user root\nenv.mysqluser debian-sys-maint\nenv.mysqlconnection DBI:mysql:mysql;mysql_read_default_file=/etc/mysql/debian.cnf', ensure => $virtual ? { true => present, default => absent, -- cgit v1.2.3