nagios_server: Update hostname where zodbot is running
Zodbot is running on value02 now.
This commit is contained in:
parent
137f156d5a
commit
a65fa4e1c0
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue