nagios has duplicate declarations in /etc/nagios3/conf.d/ on first deploy
- [monitor1] notice: /Stage[main]/Check_mk::Config/Concat[/etc/check_mk/main.mk]/File[/etc/check_mk/main.mk]/content: content changed '{md5}aae1e6437bc4280d6d056f70bf29cadf' to '{md5}06871cc240f4e9a418f74d8d169b5939' - [monitor1] notice: /Stage[main]/Check_mk::Config/Exec[check_mk-refresh]: Triggered 'refresh' from 1 events - [monitor1] err: /Stage[main]/Check_mk::Config/Exec[check_mk-reload]: Failed to call refresh: /bin/su -l -c '/usr/bin/check_mk -O' returned 1 instead of one of [0] at /srv/leap/puppet/modules/check_mk/manifests/config.pp:89 - [monitor1] err: /Stage[main]/Nagios::Base/Service[nagios]: Failed to call refresh: Could not start Service[nagios]: Execution of '/etc/init.d/nagios3 start' returned 1: at /srv/leap/puppet/modules/nagios/manifests/base.pp:15 - [monitor1] notice: Finished catalog run in 85.19 seconds - [monitor1] Puppet apply complete (changes made).
Warning: Duplicate definition found for contactgroup 'admins' (config file '/etc/nagios3/conf.d/nagios_contactgroup.cfg', starting on line 4) Error: Could not add object property in file '/etc/nagios3/conf.d/nagios_contactgroup.cfg' on line 5. Error processing object config files! root@monitor1:~# ls -la /etc/nagios3/conf.d/ total 80 drwxr-x--- 3 root nagios 4096 Feb 12 12:17 . drwxr-xr-x 6 root root 4096 Feb 12 12:17 .. drwxr-x--- 2 root nagios 4096 Feb 12 12:18 check_mk -rwxr-x--- 1 root nagios 1695 Nov 1 14:11 contacts_nagios2.cfg -rwxr-x--- 1 root nagios 418 Nov 1 14:11 extinfo_nagios2.cfg -rwxr-x--- 1 root nagios 1152 Nov 1 14:11 generic-host_nagios2.cfg -rwxr-x--- 1 root nagios 1803 Nov 1 14:11 generic-service_nagios2.cfg -rwxr-x--- 1 root nagios 678 Nov 1 14:11 hostgroups_nagios2.cfg -rwxr-x--- 1 root nagios 2167 Nov 1 14:11 localhost_nagios2.cfg -rw-r--r-- 1 root root 5592 Feb 12 12:17 nagios_command.cfg -rw-r--r-- 1 root root 577 Feb 12 12:17 nagios_contact.cfg -rw-r--r-- 1 root root 332 Feb 12 12:17 nagios_contactgroup.cfg -rw-r--r-- 1 root root 1239 Feb 12 12:17 nagios_host.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_hostdependency.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_hostescalation.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_hostextinfo.cfg -rw-r--r-- 1 root root 565 Feb 12 12:17 nagios_hostgroup.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_hostgroupescalation.cfg -rw-r--r-- 1 root root 805 Feb 12 12:17 nagios_service.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_servicedependency.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_serviceescalation.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_serviceextinfo.cfg -rw-r--r-- 1 root root 0 Feb 12 12:17 nagios_servicegroup.cfg -rw-r--r-- 1 root root 2921 Feb 12 12:17 nagios_templates.cfg -rw-r--r-- 1 root root 1526 Feb 12 12:17 nagios_timeperiod.cfg -rwxr-x--- 1 root nagios 657 Nov 1 14:11 services_nagios2.cfg -rwxr-x--- 1 root nagios 1609 Nov 1 14:11 timeperiods_nagios2.cfg
this only happens on first deploy, because purging of conf.d/ happens before the nagios packages are installed.
(from redmine: created on 2014-02-12, closed on 2014-03-04)