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

90 lines
2.9 KiB
Plaintext
Raw Normal View History

<% @hosts_app_prod.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,aws_host,web,frontends,prod_frontends,pageable_servers
}
<% end -%>
<% @hosts_fullstack.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
}
<% end -%>
<% @hosts_app_staging.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,aws_host,web,frontends,staging_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,non_aws_host,zmirror,zmirror_main,flaky_servers
}
<% end -%>
<% @hosts_zmirrorp.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,non_aws_host,zmirror,zmirrorp,flaky_servers
}
<% end -%>
<% @hosts_postgresql_primary.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,aws_host,postgresql,postgresql_primary,pageable_servers
}
<% end -%>
<% @hosts_postgresql_replica.each do |host| -%>
2016-03-23 17:24:12 +01:00
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,aws_host,postgresql,pageable_servers
2016-03-23 17:24:12 +01:00
}
<% end -%>
2016-03-23 17:24:12 +01:00
<% @hosts_redis.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %>.<%= @default_host_domain %>
hostgroups all,aws_host,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,aws_host,pageable_servers,smokescreen
}
<% end -%>