Agreed with what Matthias said. Puppet's naginator stuff doesn't play
very well with non-Puppet nagios configurations. Essentially, you have
to pick one of:
- remove the default template from that file, and create it with Puppet
elsewhere
- put all of the contents of that file in Puppet
- totally remove all of the default object configuration, and have
Puppet do everything (what I do)
On the other hand, I don't use templates in Nagios anymore, I find them
to be redundant. I use a combination of defines and parameterized
classes (hiera would be good here too, though I don't use it) and have
Puppet write out complete definitions for hosts/services/etc without any
templates. I find that makes it much more clear to look at one resource
in Puppet and know what it does, and reduces the likelihood that a
template will get modified and have unintended consequences for objects
that use it.
-Jason