I am trying to run an icinga2 satellite in an hosted Openshift Cluster. The issue is that the container gets started on the OpenShift Container Platform with an arbitrarily assigned user ID. This is due to security and we can’t change that. If I try to start the icinga2 service in the container I am getting the following error:
$ /usr/sbin/icinga2 daemon -x debug -c /etc/icinga2/icinga2.conf -e /var/log/icinga2/icinga2.err
critical/cli: setgroups() failed with error code 1, “Operation not permitted”
critical/cli: Please re-run this command as a privileged user or using the “nagios” account.
Is this just a matter of permissioning? What can I change within the Container to be able to start icinga2 with any user? Any help is welcome. Thanks in advance. Regards.
I am trying to deploy my Icinga master on openshift and am encountering the same issue, but am not having any luck. I am pulling the latest Icinga docker image and modifying it. I’m tried the link provided above to spoof the icinga user and I have changed the gid permissions on /data. (In the offical icinga docker image /etc/icinga2 and /var are linked to /data). Any suggestions?