Icinga / chef-icinga2

Icinga 2 Chef Cookbook
https://supermarket.chef.io/cookbooks/icinga2
Apache License 2.0
41 stars 55 forks source link

icinga2 fails to start on fresh CentOS 7 install #311

Closed hfinucane closed 7 years ago

hfinucane commented 7 years ago

I see this in the journal:

    Sep 21 23:47:08 ip-172-29-1-231.us-west-2.compute.internal prepare-dirs[14350]: Try 'chmod --help' for more information.
    Sep 21 23:47:08 ip-172-29-1-231.us-west-2.compute.internal prepare-dirs[14350]: chmod: missing operand after ‘750’
    Sep 21 23:47:08 ip-172-29-1-231.us-west-2.compute.internal prepare-dirs[14350]: Try 'chown --help' for more information.
    Sep 21 23:47:08 ip-172-29-1-231.us-west-2.compute.internal prepare-dirs[14350]: chown: missing operand after ‘icinga:icinga’
    Sep 21 23:47:08 ip-172-29-1-231.us-west-2.compute.internal prepare-dirs[14350]: Try 'mkdir --help' for more information.
    Sep 21 23:47:08 ip-172-29-1-231.us-west-2.compute.internal prepare-dirs[14350]: mkdir: missing operand

I think it is because this cookbook is now out of sync with this change, and /etc/sysconfig/icinga2 is missing ICINGA2_CACHE_DIR.

vkhatri commented 7 years ago

Thank you for reporting. Will look into it.

scopenco commented 7 years ago

My PR regarding this issue https://github.com/Icinga/chef-icinga2/pull/313

vkhatri commented 7 years ago

Closing, fixed by PR #313