From a38a8331678408e3f1faa3322bb686f0d200f9ca Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Fri, 20 Feb 2015 16:14:43 -0500 Subject: README: fix variable name for nagios Documentation mentions something but the manifests use another name for the variable. --- README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README b/README index f0ef1ed..cb8057f 100644 --- a/README +++ b/README @@ -123,8 +123,8 @@ Debian's /etc/mysql/debian.cnf. Nagios ------ -If you wish nagios to check mysql, you should set the variable "use_nagios" to -"true" in hiera along with the "nagios_check_mysql" variable to "true". A +If you wish nagios to check mysql, you should set the variable "manage_nagios" to +"true" in hiera along with the "nagios_check_mysql" variable to "true". A password for the nagios mysql user will be created for you with reduced privileges used only for nagios checks. This will be what you passed as nagios_password_hash to mysql::server and should be a mysql md5 hash. These should be set before you -- cgit v1.2.3 From a2d32440d0915324cfb899b846caa66b9d1dc12e Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Fri, 20 Feb 2015 16:24:45 -0500 Subject: README: mention why using manage_nagios can be used for inserting logic If you need to avoid creating certain nagios checks for some reason that's specific to your local policies, you can avoid letting the module from automatically managing nagios services and then include it whenever you need it. --- README | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README b/README index cb8057f..75cde46 100644 --- a/README +++ b/README @@ -123,7 +123,7 @@ Debian's /etc/mysql/debian.cnf. Nagios ------ -If you wish nagios to check mysql, you should set the variable "manage_nagios" to +If you wish nagios to check mysql, you can set the variable "manage_nagios" to "true" in hiera along with the "nagios_check_mysql" variable to "true". A password for the nagios mysql user will be created for you with reduced privileges used only for nagios checks. This will be what you passed as nagios_password_hash @@ -139,7 +139,11 @@ mysql::server::nagios::check_health { [ 'connection-time', 'uptime', 'threads-co See the files/nagios/check_mysql_health script for the various mysql health checks that you can perform. Additionally, see the define "check_health" in -manifests/server/nagios.pp for various options that you can pass to check_health. +manifests/server/nagios.pp for various options that you can pass to check_health. + +Note that if you need to use some specific logic to decide whether or not to +create a nagios service check, you should set $manage_nagios to false, and +include mysql::server::nagios from within your own manifests. Firewall -------- -- cgit v1.2.3