Sha256: dc28af479e3c39ac624d067a30a7ee949d10dd3d4556567bfe685f30d97ae066

Contents?: true

Size: 1.37 KB

Versions: 4

Compression:

Stored size: 1.37 KB

Contents

###############################################################################
#
# Host configuration file
#
# Created by: cloudstack-nagios
# Date:       <%= date %>
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# cloudstack-nagios will overwite all manual settings during the next update
#
###############################################################################

define hostgroup {
        hostgroup_name                 Cloudstack-SystemVM
        alias                          Cloudstack-SystemVM
        register                       1
}
<% routers.each do |router| -%>
  <% if router['linklocalip'] -%>

define host {
        host_name                     <%= router['name'] %>
        display_name                  <%= router['name'] %> (<%= router['linklocalip'] %>)<%= " - #{router['project']}" if router['project'] %> - <%= router['zonename'] %>
        address                       <%= router['linklocalip'] %>
        use			                  Linux-Host,host-pnp
        hostgroups                    Cloudstack-SystemVM
        check_command                 check-host-alive
        register                      1
}
  <% end -%>
<% end -%>

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cloudstack-nagios-0.5.1 lib/cloudstack-nagios/templates/cloudstack_routers_hosts.cfg.erb
cloudstack-nagios-0.4.2 lib/cloudstack-nagios/templates/cloudstack_routers_hosts.cfg.erb
cloudstack-nagios-0.4.1 lib/cloudstack-nagios/templates/cloudstack_routers_hosts.cfg.erb
cloudstack-nagios-0.4.0 lib/cloudstack-nagios/templates/cloudstack_routers_hosts.cfg.erb