mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 20:10:02 +08:00
nagios_server: Update hostname where zodbot is running
Zodbot is running on value02 now.
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
@@ -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
|
||||
;;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user