From a84163007e2b3900c6f5bfc02daa5f3509744e84 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 3 Jun 2015 23:51:06 +0000 Subject: [PATCH] Adjust nagios for the db05 to db03 changes. --- roles/nagios_server/files/nagios/hosts/db03.cfg | 7 +++++++ roles/nagios_server/files/nagios/hosts/db05.cfg | 14 +++++++------- .../files/nagios/services/db_backups.cfg | 2 +- roles/nagios_server/files/nrpe.cfg | 2 +- 4 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 roles/nagios_server/files/nagios/hosts/db03.cfg diff --git a/roles/nagios_server/files/nagios/hosts/db03.cfg b/roles/nagios_server/files/nagios/hosts/db03.cfg new file mode 100644 index 0000000000..04d4f27580 --- /dev/null +++ b/roles/nagios_server/files/nagios/hosts/db03.cfg @@ -0,0 +1,7 @@ +define host { + host_name db03 + alias db03.phx2.fedoraproject.org + use defaulttemplate + address db03.phx2.fedoraproject.org + parents virthost02 +} diff --git a/roles/nagios_server/files/nagios/hosts/db05.cfg b/roles/nagios_server/files/nagios/hosts/db05.cfg index 43ceeadd9a..151397c748 100644 --- a/roles/nagios_server/files/nagios/hosts/db05.cfg +++ b/roles/nagios_server/files/nagios/hosts/db05.cfg @@ -1,7 +1,7 @@ -define host { - host_name db05 - alias db05.phx2.fedoraproject.org - use defaulttemplate - address db05.phx2.fedoraproject.org - parents virthost15 -} +#define host { +# host_name db05 +# alias db05.phx2.fedoraproject.org +# use defaulttemplate +# address db05.phx2.fedoraproject.org +# parents virthost15 +#} diff --git a/roles/nagios_server/files/nagios/services/db_backups.cfg b/roles/nagios_server/files/nagios/services/db_backups.cfg index ed4283576a..7ac0555f67 100644 --- a/roles/nagios_server/files/nagios/services/db_backups.cfg +++ b/roles/nagios_server/files/nagios/services/db_backups.cfg @@ -1,5 +1,5 @@ define service { - host_name db05 + host_name db02 service_description Check MySQL Backup check_command check_by_nrpe!check_mysql_backup use defaulttemplate diff --git a/roles/nagios_server/files/nrpe.cfg b/roles/nagios_server/files/nrpe.cfg index ed251f5be4..629abc6081 100644 --- a/roles/nagios_server/files/nrpe.cfg +++ b/roles/nagios_server/files/nrpe.cfg @@ -210,7 +210,7 @@ command[check_swap]=/usr/lib64/nagios/plugins/check_swap -w 15% -c 10% command[check_temp]=/usr/lib64/nagios/plugins/check_ipmi -t command[check_fans]=/usr/lib64/nagios/plugins/check_ipmi -f command[check_mirrorlist_cache]=/usr/lib64/nagios/plugins/check_file_age -w 86400 -c 129600 -f /var/lib/mirrormanager/mirrorlist_cache.pkl -command[check_mysql_backup]=/usr/lib64/nagios/plugins/check_file_age -w 86400 -c 129600 -f /backups/db05.phx2.fedoraproject.org/fpo-mediawiki.xz +command[check_mysql_backup]=/usr/lib64/nagios/plugins/check_file_age -w 86400 -c 129600 -f /backups/fpo-mediawiki.xz command[check_pgsql_koji_backup]=/usr/lib64/nagios/plugins/check_file_age -w 86400 -c 129600 -f /backups/db04.phx2.fedoraproject.org/koji.db command[check_pgsql_backup]=/usr/lib64/nagios/plugins/check_file_age -w 86400 -c 129600 -f /backups/db-fas01.phx2.fedoraproject.org/fas2.db command[check_puppetmaster]=/usr/lib64/nagios/plugins/check_procs -c 8:8 -a '/usr/bin/ruby /usr/sbin/puppetmasterd' -u puppet