Hi @all, I got stucked in the configuration of Nagios resources from Puppet. I've wrote a some classes setting up a Nagios server, collect virtual resources from the client and push them to the Nagios server. So far so good, it's working. Now I try to group the hosts and services and the problems start. I've created a basline class rolled out on all clients with entries like this:
@@nagios_host { "${::fqdn}": ensure => present, alias => $::hostname, address => $::ipaddress, use => "linux-server", hostgroups => ["baseline"] } @@nagios_service { "check-host-alive_${::hostname}": check_command => "check-host-alive!100.0,20%!500.0,60%", use => "generic-service", host_name => $::fqdn, notification_period => "24x7", service_description => "${::hostname}_check-host-alive", servicegroups => ["baseline"], require => Nagios_host["$::fqdn"] } And a server class with entries like this: Nagios_host <<||>> { notify => Service["nagios"] } Nagios_hostextinfo <<||>> { notify => Service["nagios"] } Nagios_hostgroup <<||>> { notify => Service["nagios"] } Nagios_servicegroup <<||>> { notify => Service["nagios"] } Nagios_service <<||>> { notify => Service["nagios"] } But instead of creating a file with hostgroup baseline and a file with servicegroup baseline I got the following error: $ puppet agent --test info: Retrieving plugin info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb err: Could not retrieve catalog from remote server: Error 400 on SERVER: Another local or imported resource exists with the type and title Nagios_servicegroup[baseline] on node nagios2.domain.local warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run $ Anyone any idea how to fix this? Regards, Thomas -- Linux ... enjoy the ride! -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.