Jira (PUP-2170) Puppet always recreates Nagios_hosts

2019-08-14 Thread Alexandru Popa (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alexandru Popa updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-2170  
 
 
  Puppet always recreates Nagios_hosts   
 

  
 
 
 
 

 
Change By: 
 Alexandru Popa  
 
 
Fix Version/s: 
 PUP 6.8.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.31126.1396880201000.55513.1565789880260%40Atlassian.JIRA.


Jira (PUP-2170) Puppet always recreates Nagios_hosts

2019-08-14 Thread Alexandru Popa (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alexandru Popa updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-2170  
 
 
  Puppet always recreates Nagios_hosts   
 

  
 
 
 
 

 
Change By: 
 Alexandru Popa  
 
 
Fix Version/s: 
 PUP 6.8.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.31126.1396880201000.55216.1565779740358%40Atlassian.JIRA.


Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-05-08 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Hi Jonathan Gazeley,
can you test your nagios server with the recently released 3.6.0-rc agent?












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-05-08 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Pleased to report that 3.6.0-rc1 runs cleanly and seems to do the right thing. Thanks for your efforts on this.












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-12 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Okay, interesting.
Apparently I can reproduce with all 3.x versions, I won't even bother looking at 2.x.
It seems to happen when 1. I'm purging resources and 2. There are nagios hosts with empty parameter values, e.g. parents.
Manifest to reproduce:



nagios_host { $::fqdn:
	ensure = present,
	parents= ,
}

resources { 'nagios_host': purge = true }















   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 


   

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-12 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Master works without error iff there is no trailing space on the line with the empty option. Pre-3.5 still fails with the same error.












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-12 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Wait, what?
Correction - master works without error. 3.5.1-rc1 produces the error



Error: /Stage[main]/Main/Resources[nagios_host]: Failed to generate additional resources using 'generate': Could not parse configuration for nagios_host: line 4: syntax error at value '
' : }

Error: Could not prefetch nagios_host provider 'naginator': Could not parse configuration for nagios_host: line 4: syntax error at value '
' : }



Trailing whitespace has nothing to do with it after all.












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 
 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-12 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Turns out the 

PUP-1041
 fix is not yet in 3.5 after all. That may mean that this is a duplicate.












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-09 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Yes, I have a block like this



  # Purge old configs
  resources { [
'nagios_host',
'nagios_service',
'nagios_hostextinfo',
'nagios_servicedependency',
'nagios_contact',
'nagios_contactgroup',
'nagios_command',
'nagios_servicegroup',
'nagios_hostgroup',
'nagios_hostdependency'
  ]:
purge  = true,
notify = Service['nagios'],
  }















   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 







 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-09 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank updated an issue


















 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 










Change By:

 Felix Frank




Assignee:

 KyloGinsberg FelixFrank












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-09 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










All right, awesome, thanks for the info. We may have regressed on the detection of existing nagios configuration entities. I'll try to get to the bottom of this so that we can perhaps fix this in a 3.4.4 release.












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-09 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Thanks for looking into this - I appreciate it. Let me know if you want me to gather more information etc. I can do some testing but we don't currently have a dev puppet environment and I'm reluctant to tinker too much with my production puppetmaster 












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-08 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Hi,
is there a resource  { nagios_host: }
 in your manifest? Can you share that code snippet?
Also, the resource declaration of Nagios_host[radius01.nomadic-core.bris.ac.uk] would be of interest, as would be its sate on disk.
Thanks, Felix












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-08 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Every puppet-managed server runs this snippet:
 @@nagios_host  { $::fqdn: ensure = present, address = $::ipaddress, use = 'resnet-server', tag = $::domain, parents = $::vmparent, default = undef, }
,
And the nagios server collects them simply like this:
 Nagios_host | |  { notify = [ Exec['set_nagios_perms'], Service['nagios'] ], }
When the error occurs, it rewrites all nodes config out again - I only included radius01.nomadic-core.bris.ac.uk as it was the first to throw an error on that occasion. This is how it appears on disk.
define host  { action_url /nagios/pnp4nagios/graph?host=radius-dev.nomadic-core.bris.ac.uk address 137.222.7.119 contact_groups dev,all,superadmins host_name radius-dev.nomadic-core.bris.ac.uk hostgroups dev,all parents gnt6.fog.priv use resnet-server }












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-08 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Interesting. I still don't understand a couple of things, honestly.


How are things like action_url and hostgroups being set?


What does default = undef do?














   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-08 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










Apologies, default = undef was a copy/paste error. The code block should be



  $hostgroups = hiera_array(hostgroups, 'all')
  $contactgroups = unique(concat(hiera_array(hostgroups), ['superadmins']))
  @@nagios_host { $::fqdn:
ensure = present,
address= $::ipaddress,
use= 'resnet-server',
tag= $::domain,
# Insert parent value if we are a VM
parents= $::virtual ? {
  'vmware' = $::vmparent,
  /xen/   = 'gnt6.fog.priv',
  default  = undef,
},
action_url = /nagios/pnp4nagios/graph?host=${::fqdn},
hostgroups = inline_template(%= hostgroups.join(',') %),
contact_groups = inline_template(%= contactgroups.join(',') %),
  }















   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)

   

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-08 Thread Felix Frank (JIRA)
Title: Message Title










 

 Felix Frank commented on an issue


















  Re: Puppet always recreates Nagios_hosts 










OK thanks again 
Final question: Is there a



resources { nagios_host: }



declaration in your nagios server's manifest?












   

 Add Comment

























 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 







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















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-07 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley created an issue


















 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 










Issue Type:

  Bug




Affects Versions:


 3.4.3




Assignee:

 Kylo Ginsberg




Components:


 Types and Providers




Created:


 07/Apr/14 7:16 AM




Environment:


[jg4461@monitor ~]$ puppet -V 3.4.3 [jg4461@monitor ~]$ ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] [jg4461@monitor ~]$ cat /etc/redhat-release  CentOS release 6.5 (Final)




Priority:

  Normal




Reporter:

 Jonathan Gazeley










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 

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-07 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley updated an issue


















 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 










Change By:

 Jonathan Gazeley









  I'vebeenusingpuppetwithnagiosforageswithoutanyproblems.RecentlyIlookedintothepuppetlogsonmynagiosserveranditseemsoneverypuppetrun,puppetthrowsanerrorandrecreatesallthenagios_hostobjects(seebelow),evenifnoneofthemhavebeenchanged.Ihaven'tchangedmyconfigsoisthereanewbug?Thanks,Jonathan ``` [jg4461@monitor~]$sudopuppetagent-tNotice:Ignoring--listenononetimerunInfo:RetrievingpluginfactsInfo:RetrievingpluginInfo:Loadingfactsin/var/lib/puppet/lib/facter/concat_basedir.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/python_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/srvadminpkgcount.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/gitolite_basedir.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/lib_path.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/virtualenv_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/ads_domain.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/rubyversion_major.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_dayofmonth.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/partitions.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/winbind_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/vmparent.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/facter_dot_d.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/root_home.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/puppet_vardir.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/mountpoints.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/manufacturer.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_dayofweek.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/oracle_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_hour.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/os_maj_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/gateway.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/iptables_persistent_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/warranty.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_minute.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/pip_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/iptables_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/ip6tables_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/isopenmanagesupported.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/pe_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/environment.rbInfo:Cachingcatalogformonitor.resnet.bris.ac.ukError:/Stage[main]/Nagios::Server/Resources[nagios_host]:Failedtogenerateadditionalresourcesusing'generate':undefinedmethod`file='for#Puppet::Error:0x7f0910359ab0Info:Applyingconfigurationversion'1396867605'Error:Couldnotprefetchnagios_hostprovider'naginator':undefinedmethod`file='for#Puppet::Error:0x7f0912f92ff0Notice:/Stage[main]/Nagios::Server/Nagios_host[radius01.nomadic-core.bris.ac.uk]/ensure:created... ```












  

Jira (PUP-2170) Puppet always recreates Nagios_hosts

2014-04-07 Thread Jonathan Gazeley (JIRA)
Title: Message Title










 

 Jonathan Gazeley updated an issue


















 Puppet /  PUP-2170



  Puppet always recreates Nagios_hosts 










Change By:

 Jonathan Gazeley









 I'vebeenusingpuppetwithnagiosforageswithoutanyproblems.RecentlyIlookedintothepuppetlogsonmynagiosserveranditseemsoneverypuppetrun,puppetthrowsanerrorandrecreatesallthenagios_hostobjects(seebelow),evenifnoneofthemhavebeenchanged.Ihaven'tchangedmyconfigsoisthereanewbug?Thanks,Jonathan ``` [jg4461@monitor~]$sudopuppetagent-tNotice:Ignoring--listenononetimerunInfo:RetrievingpluginfactsInfo:RetrievingpluginInfo:Loadingfactsin/var/lib/puppet/lib/facter/concat_basedir.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/python_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/srvadminpkgcount.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/gitolite_basedir.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/lib_path.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/virtualenv_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/ads_domain.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/rubyversion_major.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_dayofmonth.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/partitions.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/winbind_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/vmparent.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/facter_dot_d.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/root_home.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/puppet_vardir.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/mountpoints.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/manufacturer.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_dayofweek.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/oracle_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_hour.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/os_maj_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/gateway.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/iptables_persistent_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/warranty.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/cron_minute.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/pip_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/iptables_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/ip6tables_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/isopenmanagesupported.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/pe_version.rbInfo:Loadingfactsin/var/lib/puppet/lib/facter/environment.rbInfo:Cachingcatalogformonitor.resnet.bris.ac.ukError:/Stage[main]/Nagios::Server/Resources[nagios_host]:Failedtogenerateadditionalresourcesusing'generate':undefinedmethod`file='for#Puppet::Error:0x7f0910359ab0Info:Applyingconfigurationversion'1396867605'Error:Couldnotprefetchnagios_hostprovider'naginator':undefinedmethod`file='for#Puppet::Error:0x7f0912f92ff0Notice:/Stage[main]/Nagios::Server/Nagios_host[radius01.nomadic-core.bris.ac.uk]/ensure:created... ```