Puppet always recreates Nagios_hosts

24 views
Skip to first unread message

Jonathan Gazeley

unread,
Apr 7, 2014, 8:23:19 AM4/7/14
to puppet...@googlegroups.com
I've been using puppet with nagios for ages without any problems.
Recently I looked into the puppet logs on my nagios server and it seems
on every puppet run, puppet throws an error and recreates all the
nagios_host objects (see below), even if none of them have been changed.
I haven't changed my config so is there a new bug?

Thanks,
Jonathan

[jg4461@monitor ~]$ sudo puppet agent -t
Notice: Ignoring --listen on onetime run
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/python_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/srvadminpkgcount.rb
Info: Loading facts in /var/lib/puppet/lib/facter/gitolite_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/lib_path.rb
Info: Loading facts in /var/lib/puppet/lib/facter/virtualenv_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ads_domain.rb
Info: Loading facts in /var/lib/puppet/lib/facter/rubyversion_major.rb
Info: Loading facts in /var/lib/puppet/lib/facter/cron_dayofmonth.rb
Info: Loading facts in /var/lib/puppet/lib/facter/partitions.rb
Info: Loading facts in /var/lib/puppet/lib/facter/winbind_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/vmparent.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/mountpoints.rb
Info: Loading facts in /var/lib/puppet/lib/facter/manufacturer.rb
Info: Loading facts in /var/lib/puppet/lib/facter/cron_dayofweek.rb
Info: Loading facts in /var/lib/puppet/lib/facter/oracle_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/cron_hour.rb
Info: Loading facts in /var/lib/puppet/lib/facter/os_maj_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/gateway.rb
Info: Loading facts in
/var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/warranty.rb
Info: Loading facts in /var/lib/puppet/lib/facter/cron_minute.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pip_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/isopenmanagesupported.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/environment.rb
Info: Caching catalog for monitor.resnet.bris.ac.uk
Error: /Stage[main]/Nagios::Server/Resources[nagios_host]: Failed to
generate additional resources using 'generate': undefined method `file='
for #<Puppet::Error:0x7f0910359ab0>
Info: Applying configuration version '1396867605'
Error: Could not prefetch nagios_host provider 'naginator': undefined
method `file=' for #<Puppet::Error:0x7f0912f92ff0>
Notice:
/Stage[main]/Nagios::Server/Nagios_host[radius01.nomadic-core.bris.ac.uk]/ensure:
created
...

Felix Frank

unread,
Apr 7, 2014, 9:10:35 AM4/7/14
to puppet...@googlegroups.com
Ugh, dammit. This does look like a bug.

What version of Puppet is this? Can you open a Jira issue?

Thanks,
Felix

On 04/07/2014 02:23 PM, Jonathan Gazeley wrote:
> I've been using puppet with nagios for ages without any problems.
> Recently I looked into the puppet logs on my nagios server and it seems
> on every puppet run, puppet throws an error and recreates all the
> nagios_host objects (see below), even if none of them have been changed.
> I haven't changed my config so is there a new bug?
>
> Thanks,
> Jonathan Error: /Stage[main]/Nagios::Server/Resources[nagios_host]:

Jonathan Gazeley

unread,
Apr 7, 2014, 10:20:21 AM4/7/14
to puppet...@googlegroups.com
On 07/04/14 14:10, Felix Frank wrote:
> Ugh, dammit. This does look like a bug.
>
> What version of Puppet is this? Can you open a Jira issue?

This is Puppet 3.4.3. I've logged issue PUP-2170 - let me know if you
want me to provide any more info.

Thanks,
Jonathan
Reply all
Reply to author
Forward
0 new messages