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, Jonathan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Apr 4, 2011 at 11:37 AM, Jonathan Gazeley <jonathan.gazeley@bristol.ac.uk> wrote:> Can anyone offer any pointers?Go to the one of the clients, then run: puppetd -vt and take a look at the output? Usually a good pointer :) Cheers, Steph -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jonathan Gazeley
2011-Apr-04 11:38 UTC
Re: [Puppet Users] Puppet nagios integration problem
On 04/04/2011 12:09 PM, FRLinux wrote:> On Mon, Apr 4, 2011 at 11:37 AM, Jonathan Gazeley > <jonathan.gazeley@bristol.ac.uk> wrote: >> Can anyone offer any pointers? > Go to the one of the clients, then run: puppetd -vt and take a look at > the output? > > Usually a good pointer :) > Cheers, > StephThanks for your reply. Running with -vt seems to give the same output as --test. Neither output shows any nagios declarations being run, despite the fact that the manifests show that I''m applying @@nagios {} config like I showed in my previous email. These Nagios calls are built-in Puppet functionality, right? Or do I have to install something extra? I''m running puppet 0.25.5 on server and clients. This is being installed on CentOS from the rpmfusion repo, although I''m not massively averse to packaging a newer version if this would help. Cheers, Jonathan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 04/04/2011 01:38 PM, Jonathan Gazeley wrote:> On 04/04/2011 12:09 PM, FRLinux wrote: >> On Mon, Apr 4, 2011 at 11:37 AM, Jonathan Gazeley >> <jonathan.gazeley@bristol.ac.uk> wrote: >>> Can anyone offer any pointers? >> Go to the one of the clients, then run: puppetd -vt and take a look at >> the output? >> >> Usually a good pointer :) >> Cheers, >> Steph > > Thanks for your reply. Running with -vt seems to give the same output as > --test. Neither output shows any nagios declarations being run, despite > the fact that the manifests show that I''m applying @@nagios {} config > like I showed in my previous email. > > These Nagios calls are built-in Puppet functionality, right? Or do I > have to install something extra? I''m running puppet 0.25.5 on server and > clients. This is being installed on CentOS from the rpmfusion repo, > although I''m not massively averse to packaging a newer version if this > would help.Have you made sure store-configs are working all right? Can you inspect your database and see if you can spot some of your nagios checks? HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jonathan Gazeley
2011-Apr-05 09:20 UTC
Re: [Puppet Users] Puppet nagios integration problem
On 04/05/2011 08:15 AM, Felix Frank wrote:> On 04/04/2011 01:38 PM, Jonathan Gazeley wrote: >> On 04/04/2011 12:09 PM, FRLinux wrote: >>> On Mon, Apr 4, 2011 at 11:37 AM, Jonathan Gazeley >>> <jonathan.gazeley@bristol.ac.uk> wrote: >>>> Can anyone offer any pointers? >>> Go to the one of the clients, then run: puppetd -vt and take a look at >>> the output? >>> >>> Usually a good pointer :) >>> Cheers, >>> Steph >> Thanks for your reply. Running with -vt seems to give the same output as >> --test. Neither output shows any nagios declarations being run, despite >> the fact that the manifests show that I''m applying @@nagios {} config >> like I showed in my previous email. >> >> These Nagios calls are built-in Puppet functionality, right? Or do I >> have to install something extra? I''m running puppet 0.25.5 on server and >> clients. This is being installed on CentOS from the rpmfusion repo, >> although I''m not massively averse to packaging a newer version if this >> would help. > Have you made sure store-configs are working all right? > Can you inspect your database and see if you can spot some of your > nagios checks? > > HTH, > Felix >Thank you - that was it. At some point since it last worked, I moved my puppetmaster under puppet management, and apparently broke my puppet.conf to the store-configs weren''t working. Too much of a good thing... Cheers, Jonathan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.