Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-2170

Puppet always recreates Nagios_hosts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 3.4.3
    • Fix Version/s: PUP 3.5.1
    • Component/s: Types and Providers
    • Labels:
      None
    • Environment:
    • Template:

      Description

      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
      ...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ffrank Felix Frank
              Reporter:
              dj_judas21 Jonathan Gazeley
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support