############################################################################### # # Host configuration file # # Created by: # Date: <%= Date.new %> # Version: Nagios 3.x config file # # --- DO NOT EDIT THIS FILE BY HAND --- # cloudstack-cli will overwite all manual settings during the next update # ############################################################################### <% routers.each do |router| -%> define host { host_name <%= router['name'] %> alias <%= router['name'] %> display_name <%= router['name'] %> <%= " - #{router['project']}" if router['project'] %> address <%= router['linklocalip'] %> hostgroups Cloudstack-Host-Group check_command check-host-alive use Linux-Host,host-pnp notification_period S1 _COMMUNITY public register 1 } <% end -%> ############################################################################### # # Host configuration file # # END OF FILE # ###############################################################################