Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 423 Bytes
<% mktags = [] -%>
<% system "host #{mkhostname}" -%>
<% if (has_variable?("checkmk_no_resolve") || ( $? != 0 )) then -%>
ipaddresses["<%= mkhostname -%>"] = "<%= override_ip %>"
<% mktags << "brokendns" -%>
<% end -%>
<% scope.to_hash.keys.each do |k| -%>
<% if k.include?("check_mk_tags") -%>
<% mktags << scope.to_hash[k] -%>
<% end -%>
<% end -%>
all_hosts += [
"<%= mkhostname -%>|<%= mktags.sort.join('|') %>",
]