From a65fa4e1c0b33f3b8372e06df973cab46b170127 Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Wed, 3 Nov 2021 16:38:34 +0100 Subject: [PATCH] nagios_server: Update hostname where zodbot is running Zodbot is running on value02 now. --- roles/nagios_server/files/nagios/plugins/restart_httpd | 4 ++-- roles/nagios_server/files/nagios/plugins/restart_rsyslog | 4 ++-- .../files/nagios/services/iad2_internal/fedmsg.cfg | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/nagios_server/files/nagios/plugins/restart_httpd b/roles/nagios_server/files/nagios/plugins/restart_httpd index f461f45553..7cbb09ce44 100755 --- a/roles/nagios_server/files/nagios/plugins/restart_httpd +++ b/roles/nagios_server/files/nagios/plugins/restart_httpd @@ -49,7 +49,7 @@ CRITICAL) 2) echo -n "Restarting HTTP service (3rd soft critical state)..." # Call the init script to restart the HTTPD server - echo "#fedora-noc $hostalias - Attempting to reload httpd. $servicedesc is $servicestate (2nd check)" | /usr/bin/nc -w 1 value01 5050 + echo "#fedora-noc $hostalias - Attempting to reload httpd. $servicedesc is $servicestate (2nd check)" | /usr/bin/nc -w 1 value02 5050 /usr/lib64/nagios/plugins/check_nrpe -H $remotehost -c service_httpd_reload ;; esac @@ -62,7 +62,7 @@ CRITICAL) # point (unless you disabled notifications for this service) HARD) echo -n "Restarting HTTP service..." - echo "#fedora-noc $hostalias - Attempting to reload httpd. $servicedesc is $servicestate" | /usr/bin/nc -w 1 value01 5050 + echo "#fedora-noc $hostalias - Attempting to reload httpd. $servicedesc is $servicestate" | /usr/bin/nc -w 1 value02 5050 # Call the init script to restart the HTTPD server /usr/lib64/nagios/plugins/check_nrpe -H $remotehost -c service_httpd_restart ;; diff --git a/roles/nagios_server/files/nagios/plugins/restart_rsyslog b/roles/nagios_server/files/nagios/plugins/restart_rsyslog index 2ece8a3e42..a2e44e43de 100755 --- a/roles/nagios_server/files/nagios/plugins/restart_rsyslog +++ b/roles/nagios_server/files/nagios/plugins/restart_rsyslog @@ -49,7 +49,7 @@ CRITICAL) 2) echo -n "Restarting rsyslog service (3rd soft critical state)..." # Call the init script to restart the rsyslog server - echo "#fedora-noc $hostalias - Attempting to reload rsyslog. $servicedesc is $servicestate (2nd check)" | /usr/bin/nc -w 1 value01 5050 + echo "#fedora-noc $hostalias - Attempting to reload rsyslog. $servicedesc is $servicestate (2nd check)" | /usr/bin/nc -w 1 value02 5050 /usr/lib64/nagios/plugins/check_nrpe -H $remotehost -c service_rsyslog_reload ;; esac @@ -62,7 +62,7 @@ CRITICAL) # point (unless you disabled notifications for this service) HARD) echo -n "Restarting rsyslog service..." - echo "#fedora-noc $hostalias - Attempting to restart rsyslog. $servicedesc is $servicestate" | /usr/bin/nc -w 1 value01 5050 + echo "#fedora-noc $hostalias - Attempting to restart rsyslog. $servicedesc is $servicestate" | /usr/bin/nc -w 1 value02 5050 # Call the init script to restart the HTTPD server /usr/lib64/nagios/plugins/check_nrpe -H $remotehost -c service_rsyslog_restart ;; diff --git a/roles/nagios_server/files/nagios/services/iad2_internal/fedmsg.cfg b/roles/nagios_server/files/nagios/services/iad2_internal/fedmsg.cfg index e548d18b47..b6a8cb82c3 100644 --- a/roles/nagios_server/files/nagios/services/iad2_internal/fedmsg.cfg +++ b/roles/nagios_server/files/nagios/services/iad2_internal/fedmsg.cfg @@ -84,7 +84,7 @@ define service { # Odd one, check for the supybot fedmsg plugin define service { - host_name value01.iad2.fedoraproject.org + host_name value02.iad2.fedoraproject.org service_description Check supybot fedmsg plugin check_command check_by_nrpe!check_supybot_fedmsg_plugin use defaulttemplate