diff options
Diffstat (limited to 'manifests/service/mysql.pp')
-rw-r--r-- | manifests/service/mysql.pp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/manifests/service/mysql.pp b/manifests/service/mysql.pp index 2fde402..2c74717 100644 --- a/manifests/service/mysql.pp +++ b/manifests/service/mysql.pp @@ -1,11 +1,10 @@ -# Checks a mysql instance via tcp or socket - +# 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 = $nagios_mysql_password, + $check_password, $check_database = 'information_schema', $check_warning = undef, $check_critical = undef, @@ -51,9 +50,9 @@ 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}", } } |