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: Move staging and prod hostgroups adjacent.

Alex Vandiverd804de871d7a
diff --git a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
index c761a8513c9..78c985a9bf1 100644
--- a/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
+++ b/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb
@@ -1,20 +1,20 @@
-<% @hosts_app_prod.each do |host| -%>
+<% @hosts_fullstack.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
- address <%= host %>.<%= @default_host_domain %>
- hostgroups all,aws_host,web,prod_frontends,pageable_servers
+ address <%= host %>
+ hostgroups all,non_aws_host,web,frontends,staging_frontends,not_pageable_servers,postgresql,postgresql_primary
}
<% end -%>
-<% @hosts_fullstack.each do |host| -%>
+<% @hosts_app_prod.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
- address <%= host %>
- hostgroups all,non_aws_host,web,frontends,staging_frontends,not_pageable_servers,postgresql,postgresql_primary
+ address <%= host %>.<%= @default_host_domain %>
+ hostgroups all,aws_host,web,prod_frontends,pageable_servers
}
<% end -%>