From 0bc898160b57b69bb766c97f25a5b9545eb91ee3 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 28 Mar 2025 22:04:58 -0400 Subject: mysql/icinga fixes --- .../etc/icinga2/conf.d/services.conf.icinga_server | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'files/usr/local/etc/icinga2/conf.d/services.conf.icinga_server') diff --git a/files/usr/local/etc/icinga2/conf.d/services.conf.icinga_server b/files/usr/local/etc/icinga2/conf.d/services.conf.icinga_server index ce08657..dbff174 100644 --- a/files/usr/local/etc/icinga2/conf.d/services.conf.icinga_server +++ b/files/usr/local/etc/icinga2/conf.d/services.conf.icinga_server @@ -165,6 +165,16 @@ apply Service "postgres" { assign where "postgresql-servers" in host.groups } +apply Service "mysql" { + check_command = "mysql" + vars.mysql_warning = ${icinga_response_time_warn} + vars.mysql_critical = ${icinga_response_time_crit} + vars.mysql_username = "${icinga_username}" + vars.mysql_password = IcingaPassword + vars.mysql_ssl = true + assign where "mysql-servers" in host.groups +} + apply Service "eap-cert" { check_command = "eapol" vars.eapol_secret = IcingaRadiusSecret @@ -233,6 +243,28 @@ apply Service for (vhost in host.vars.xmpp_vhosts) { vars.tcp_expect = "