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: Remove unnecessary `web` hostgroup.

Alex Vandiverb5ecfc327fa8
diff --git a/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg b/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
index eb0d28ad388..625793ce31d 100644
--- a/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
+++ b/puppet/zulip_ops/files/nagios4/conf.d/hostgroups.cfg
@@ -29,11 +29,6 @@ define hostgroup {
alias Servers for whom we do not page, and have flakier net
}
-define hostgroup {
- hostgroup_name web
- alias Web servers
-}
-
define hostgroup {
hostgroup_name frontends
alias Frontend web servers
diff --git a/puppet/zulip_ops/files/nagios4/conf.d/services.cfg b/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
index a3577d38f59..c4f6723b05b 100644
--- a/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
+++ b/puppet/zulip_ops/files/nagios4/conf.d/services.cfg
@@ -136,17 +136,6 @@ define service {
### Service groups
-#### Web
-
-define service {
- use generic-service
- service_description HTTPS
- hostgroup_name web
- check_command check_https_status
- contact_groups page_admins
-}
-
-
#### zmirror / zmirrorp
define service {
@@ -184,6 +173,14 @@ define service {
#### Application frontends
+define service {
+ use generic-service
+ service_description HTTPS
+ hostgroup_name frontends
+ check_command check_https_status
+ contact_groups page_admins
+}
+
define service {
use generic-service
service_description Check send receive time
diff --git a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
index ba3404acdd7..1e5f3a1e1b6 100644
--- a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
+++ b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
@@ -4,7 +4,7 @@ define host{
host_name <%= host %>
alias <%= host %>
address <%= host %>
- hostgroups all,non_aws_host,web,frontends,not_pageable_servers,postgresql_primary
+ hostgroups all,non_aws_host,frontends,not_pageable_servers,postgresql_primary
}
<% end -%>
@@ -14,7 +14,7 @@ define host{
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
- hostgroups all,aws_host,web,prod_frontends,pageable_servers
+ hostgroups all,aws_host,prod_frontends,pageable_servers
}
<% end -%>
@@ -24,7 +24,7 @@ define host{
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
- hostgroups all,aws_host,web,staging_frontends,not_pageable_servers
+ hostgroups all,aws_host,staging_frontends,not_pageable_servers
}
<% end -%>