summaryrefslogtreecommitdiff
path: root/manifests/service/mysql.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/service/mysql.pp')
-rw-r--r--manifests/service/mysql.pp5
1 files changed, 2 insertions, 3 deletions
diff --git a/manifests/service/mysql.pp b/manifests/service/mysql.pp
index 94881d8..9559b17 100644
--- a/manifests/service/mysql.pp
+++ b/manifests/service/mysql.pp
@@ -1,11 +1,10 @@
# Checks a mysql instance via tcp or socket
-
define nagios::service::mysql(
$ensure = present,
$check_host = 'absent',
$check_port = '3306',
$check_username = 'nagios',
- $check_password = trocla("mysql_nagios_${::fqdn}",'plain','length: 32'),
+ $check_password,
$check_database = 'information_schema',
$check_warning = undef,
$check_critical = undef,
@@ -54,6 +53,6 @@ define nagios::service::mysql(
nagios::service { "mysql_health_${name}":
ensure => $ensure,
- check_command => "check_mysql_health!${real_check_host}!${check_port}!${check_username}!${check_password}!${check_health_mode}!${check_database}${real_check_name}${real_check_warning}${real_check_critical}",
+ check_command => "check_mysql_health!${real_check_host}!${check_port}!${check_username}!'${check_password}'!${check_health_mode}!${check_database}${real_check_name}${real_check_warning}${real_check_critical}",
}
}