summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-20 22:40:18 +0000
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-02-20 22:40:18 +0000
commit9b327191c775b8d73bfc1f8e5da062703cf7f377 (patch)
tree9c19543930867c5f4ba13c6bc632ae8350d9eba3
parent0f817282af914c531dcbe19c1be6ac3209986984 (diff)
parenta2d32440d0915324cfb899b846caa66b9d1dc12e (diff)
Merge branch 'document_nagios_custom_logic' into 'master'
Document nagios custom logic Add some note for ppl who need to inject their own logic before creating nagios-related checks. See merge request !1
-rw-r--r--README10
1 files changed, 7 insertions, 3 deletions
diff --git a/README b/README
index f0ef1ed..75cde46 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 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
to mysql::server and should be a mysql md5 hash. These should be set before you
@@ -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
--------