Issue #17872 has been updated by eric sorenson. Category set to nagios Status changed from Unreviewed to Investigating
Clustering bugs together while I try to find some nagios_* expertise to give these some love. ---------------------------------------- Bug #17872: Nagios type constantly chaning an entry https://projects.puppetlabs.com/issues/17872#change-79449 Author: Chris Mague Status: Investigating Priority: Normal Assignee: Category: nagios Target version: Affected Puppet version: 3.0.1 Keywords: Branch: Actual Behavior: /Stage[main]/Icinga_server::Host_templates/Nagios_host[generic-host]/check_command: check_command changed ['check-host-alive'] to 'check-host-alive' /Stage[main]/Icinga_server::Host_templates/Nagios_host[generic-host]/max_check_attempts: max_check_attempts changed ['3'] to '3' /Stage[main]/Icinga_server::Host_templates/Nagios_host[generic-host]/check_interval: check_interval changed ['15'] to '15' /Stage[main]/Icinga_server::Host_templates/Nagios_host[generic-host]/active_checks_enabled: active_checks_enabled changed ['1'] to '1' /Stage[main]/Icinga_server::Host_templates/Nagios_host[generic-host]/passive_checks_enabled: passive_checks_enabled changed ['1'] to '1' Expected Behavior: No changes are made to a resource after it is written to a file Note: it only happens if more than 1 host type is in the file Repro Steps: 1) use the manifest below 2) run puppet twice 3) notice the update "/Stage[main]//Nagios_host[gen-error]/use: use changed ['generic-host'] to 'generic-host'" Manifest nagios_host { 'generic-host': ensure => present, contact_groups => 'mague-contact-oncall', check_period => '24x7', notification_period => '24x7', notification_options => 'd,u,r', notification_interval => '15', check_command => 'check-host-alive', max_check_attempts => '3', check_interval => '15', process_perf_data => '1', retain_status_information => '1', flap_detection_enabled => '1', retain_nonstatus_information => '1', active_checks_enabled => '1', passive_checks_enabled => '1', event_handler_enabled => '1', notifications_enabled => '1', obsess_over_host => '0', check_freshness => 22, register => '0', target => '/tmp/h.cfg', } nagios_host { 'gen-error': ensure => present, use => 'generic-host', contact_groups => 'bob-oncall', target => '/tmp/h.cfg', } Facter Output: architecture => amd64 arp_eth0 => fe:ff:ff:ff:ff:ff arp => fe:ff:ff:ff:ff:ff facterversion => 1.6.14 hardwareisa => x86_64 hardwaremodel => x86_64 hostname => puppet01 id => cmague interfaces => eth0,lo ipaddress => 10.101.21.47 ipaddress_eth0 => 10.101.21.47 ipaddress_lo => 127.0.0.1 is_virtual => false kernel => Linux kernelmajversion => 3.2 kernelrelease => 3.2.0-29-virtual kernelversion => 3.2.0 lsbdistcodename => precise lsbdistdescription => Ubuntu 12.04.1 LTS lsbdistid => Ubuntu lsbdistrelease => 12.04 lsbmajdistrelease => 12 macaddress => 12:31:3b:0f:16:c5 macaddress_eth0 => 12:31:3b:0f:16:c5 memoryfree => 5.85 GB memorysize => 7.28 GB memorytotal => 7.28 GB netmask => 255.255.255.0 netmask_eth0 => 255.255.255.0 netmask_lo => 255.0.0.0 network_eth0 => 10.101.21.0 network_lo => 127.0.0.0 operatingsystemrelease => 12.04 operatingsystem => Ubuntu osfamily => Debian path => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games physicalprocessorcount => 1 processor0 => Intel(R) Xeon(R) CPU E5507 @ 2.27GHz processor1 => Intel(R) Xeon(R) CPU E5507 @ 2.27GHz processorcount => 2 ps => ps -ef puppetversion => 3.0.1 rubysitedir => /usr/local/lib/site_ruby/1.9.1 rubyversion => 1.9.3 selinux => false swapfree => 2.00 GB swapsize => 2.00 GB timezone => UTC uniqueid => 650a2f15 uptime => 1 day uptime_days => 1 uptime_hours => 25 uptime_seconds => 91088 virtual => physical -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
