There are two solutions for this problem: First off Nagios has a nice bug regarding empty host groups in older versions. If you run Nagios prior to version 3.4.0 the config will fail to load with an empty host group. If you're compiling from source or using a distribution that has 3.4.0 or later you can enable a new flag that was added: allow_empty_hostgroup_assignment. A while back I added a check to see if the user was installing via source and if so, the feature would be enabled automatically. That was before any distros were shipping version 3.4.0+ in packages. So if you install via source it'll just work. If not for now you can manually enable that by editing the nagios.cfg.erb template and taking out the check for the source install method. I'll file a bug to allow turning that on via attribute. My second recommendation would be looking at adding hosts via the nagios_unmanagedhosts data bag. I added that so that I could manage hosts that were not yet migrated into Chef. You create a data bag item per host and assign it to one or more host groups. You could add your old load balancers using this method. There's an example in the readme. Let me know if you have any other issue. -Tim On Sep 19, 2013, at 3:13 PM, Graham Christensen <
">
> wrote:
|
Archive powered by MHonArc 2.6.16.