Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

nagios: Rename `zmirror_main` into `zmirror` hostgroup.

Alex Vandiverd9d0014fb468
diff --git a/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg b/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
index a3d73052637..eb0d28ad388 100644
--- a/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
+++ b/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
@@ -55,19 +55,14 @@ define hostgroup {
alias Redis servers
}
-define hostgroup {
- hostgroup_name zmirror
- alias Zephyr mirror servers
-}
-
define hostgroup {
hostgroup_name zmirrorp
alias Zephyr mirror personals servers
}
define hostgroup {
- hostgroup_name zmirror_main
- alias Zephyr mirror main servers
+ hostgroup_name zmirror
+ alias Zephyr mirror classes servers
}
define hostgroup {
diff --git a/puppet/zulip_ops/files/nagios4/conf.d/services.cfg b/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
index 9ce7623290e..a3577d38f59 100644
--- a/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
+++ b/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
@@ -152,7 +152,7 @@ define service {
define service {
use generic-service
service_description zephyr mirror forwarding
- hostgroup_name zmirror_main
+ hostgroup_name zmirror
check_command check_zephyr_mirror_forwarding!22
normal_check_interval 2
# Note: the actual check is run via cron, so retry_check_interval
@@ -165,7 +165,7 @@ define service {
define service {
use generic-service
service_description zmirror subscriptions syncing
- hostgroup_name zmirror_main
+ hostgroup_name zmirror
check_command check_sync_public_streams!22
normal_check_interval 2
retry_check_interval 2
diff --git a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
index 31c79a7003f..f011986fb2e 100644
--- a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
+++ b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
@@ -34,7 +34,7 @@ define host{
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
- hostgroups all,non_aws_host,zmirror,zmirror_main,flaky_servers
+ hostgroups all,non_aws_host,zmirror,flaky_servers
}
<% end -%>
@@ -44,7 +44,7 @@ define host{
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
- hostgroups all,non_aws_host,zmirror,zmirrorp,flaky_servers
+ hostgroups all,non_aws_host,zmirrorp,flaky_servers
}
<% end -%>