Jira (PUP-8479) nagios_servicegroup resource type has invalid parameter alias

2018-02-21 Thread Jonathan Gazeley (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jonathan Gazeley created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-8479  
 
 
  nagios_servicegroup resource type has invalid parameter alias   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 PUP 5.3.4  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Types and Providers  
 
 
Created: 
 2018/02/21 7:46 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Jonathan Gazeley  
 

  
 
 
 
 

 
 Puppet Version: 5.3.4 Puppet Server Version: 5.1.5 OS Name/Version: The nagios_servicegroup resource type has a parameter alias which configures a parameter in the Nagios object (a human-readable name). In our previous version of Puppet Enterprise (2017.2, with Puppet 4.10) this worked. It seems in Puppet 5, alias is also a metaparameter which prevents the above from working. The obvious solution is to rename the alias parameter of nagios_servicegroup to something else, e.g. servicegroup_alias to avoid conflict. Desired Behavior: Puppet configures a Nagios service group which contains an alias directive. Actual Behavior: Puppet reports an error as it interprets the alias parameter as a metaparameter.  
 
 
 
 
 Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Cannot alias Nagios_servicegroup[check_] to " record" at (file: /etc/puppetlabs/code/environments/1005_duplicate_servicegroups/modules/nagios/manifests/servicegroup.pp, line: 7); resource ["Nagios_servicegroup", " record"] 

Jira (FACT-1592) Networking key/value pair for Interface Speed and Duplex State

2017-12-20 Thread Jonathan Gazeley (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jonathan Gazeley commented on  FACT-1592 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Networking key/value pair for Interface Speed and Duplex State  
 
 
 
 
 
 
 
 
 
 
This is something I would definitely benefit from. Our use case is that Nagios monitoring of network link utilisation requires it to know the nominal speed of the link. So far, all our systems have been 1Gbit so we've just hard-coded the value but now we have started using systems with 10Gbit interfaces so we could do with handling this value programmatically. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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 https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2782) Yumrepo target attribute does not work

2016-09-13 Thread Jonathan Gazeley (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jonathan Gazeley commented on  PUP-2782 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Yumrepo target attribute does not work  
 
 
 
 
 
 
 
 
 
 
I'm working on a manifest that manages the stock yum.repos.d definitions from CentOS and can override some settings. This is tested and working on CentOS 7 but produces different behaviour on CentOS 6. Both platforms are running Puppet 3.8.7 
 
 
 
 
 
 
yumrepo { 'CentOS-Base': 
 
 
 
 
  name   => 'base', 
 
 
 
 
  target => '/etc/yum.repos.d/CentOS-Base.repo', 
 
 
 
 
  baseurl=> $baseurl, 
 
 
 
 
  mirrorlist => $mirrorlist, 
 
 
 
 
  descr  => 'CentOS-$releasever - Base', 
 
 
 
 
  enabled=> $enabled, 
 
 
 
 
  gpgcheck   => '1', 
 
 
 
 
  gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-${::repo_centos::releasever}", 
 
 
 
 
}
 
 
   

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