[Puppet Users] Puppet nagios integration problem

Jonathan Gazeley
Mon, 04 Apr 2011 10:37:41 -0000

Hi all,

I''m working on setting up Puppet to write out my Nagios configs. A few
weeks back I inserted a few dummy Nagios checks into my Puppet config,
and the Nagios configs were written out properly.

I''ve now added loads of Nagios host and service checks like this:

@@nagios_service { "check_smtp_${hostname}":
    check_command => "check_nrpe!check_smtp",
    host_name => "$fqdn",
    service_description => "SMTP",
}

and then I collect them like this:

Nagios_host <<||>>
Nagios_service <<||>>
Nagios_hostextinfo <<||>>
Nagios_servicedependency <<||>>

But today I spotted that my Nagios configs in /etc/nagios/ haven''t
actually been updated for ages. I''ve prodded at the puppet server and
client but I can''t see anything wrong with my setup. That said, I
don''t
really know how to debug this.

Can anyone offer any pointers?

Thanks,