zulip/puppet/zulip_ops/templates/nagios4/hosts.cfg.template.erb

100 lines
3.1 KiB
Plaintext

<% @hosts_app_prod.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,web,frontends,prod_frontends,singletornado_frontends,pageable_servers
}
<% end -%>
<% @hosts_fullstack.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>
hostgroups all,web,frontends,staging_frontends,singletornado_frontends,not_pageable_servers,postgresql,postgresql_primary
}
<% end -%>
<% @hosts_app_staging.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,web,frontends,staging_frontends,singletornado_frontends,not_pageable_servers
}
<% end -%>
<% @hosts_zmirror.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,zmirror,zmirror_main
}
<% end -%>
<% @hosts_zmirrorp.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,zmirror,zmirrorp
}
<% end -%>
<% @hosts_postgresql_primary.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,postgresql,postgresql_primary,pageable_servers
}
<% end -%>
<% @hosts_postgresql_replica.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,postgresql,pageable_servers
}
<% end -%>
<% @hosts_stats.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,not_pageable_servers
}
<% end -%>
<% @hosts_redis.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,not_pageable_servers, redis
}
<% end -%>
<% @hosts_smokescreen.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,pageable_servers,smokescreen
}
<% end -%>