Changes between Version 6 and Version 7 of OMDconfiguration

Show
Ignore:
Timestamp:
10/04/11 11:17:09 (7 years ago)
Author:
jonmills (IP: 152.54.8.104)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OMDconfiguration

    v6 v7  
    5858 
    5959== hostgroups.mk == 
     60This is fairly self-explanatory.  The only innovation here is that, unlike with Nagios, hosts are not directly mapped to hostgroups; but instead, hostgroups are derived from the tags you place on hosts in your hosts.mk file. 
     61 
     62{{{ 
     63host_groups = [ 
     64( 'cc', [ 'cc' ], ALL_HOSTS ), 
     65( 'nodes', [ 'nodes' ], ALL_HOSTS ), 
     66( 'vm', [ 'vm' ], ALL_HOSTS ), 
     67] 
     68 
     69define_hostgroups = { 
     70        "cc" : "Cloud Controllers", 
     71        "nodes" : "Worker Nodes", 
     72        "vm" : "Virtual Machines", 
     73} 
     74}}} 
     75 
     76The second construct, 'define_hostgroups', isn't strictly necessary.  It is only there to allow us to define pretty names (nagios aliases) for the hostgroups above. 
    6077 
    6178== hosts.mk ==