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

100 lines
3.5 KiB
Plaintext
Raw Normal View History

<% @hosts_fullstack.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,fullstack,non_aws_host,frontends,not_pageable_servers,postgresql
}
<% end -%>
<% @hosts_app_prod.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,aws_host,prod_frontends,pageable_servers
}
<% end -%>
<% @hosts_app_staging.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,aws_host,staging_frontends,not_pageable_servers
}
<% end -%>
<% @hosts_zmirror.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,non_aws_host,zmirror,flaky_servers
}
<% end -%>
<% @hosts_zmirrorp.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,non_aws_host,zmirrorp,flaky_servers
}
<% end -%>
<% @hosts_postgresql_primary.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,aws_host,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 %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,aws_host,postgresql_replica,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 %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
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 %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,aws_host,pageable_servers,smokescreen
}
<% end -%>
2022-06-14 02:12:01 +02:00
<% @hosts_other.each do |host| -%>
define host{
use generic-host
host_name <%= host %>
alias <%= host %>
address <%= host %><% unless host.include?(".") %>.<%= @default_host_domain %><% end %>
hostgroups all,<% if host.include?(".") %>non_<% end %>aws_host,not_pageable_servers,other
2022-06-14 02:12:01 +02:00
}
<% end -%>