After rename systemuser and group -- Invalid group specified

Hi All,

We want (have) changed the default username and group from our default installation icinga2.
From “nagios” to “icinga”, why… hmm we think it have to. We use the repo from icinga.

usermod -l icinga nagios
groupmod --new-name icinga nagios

Changed the following file: → “/etc/default/icinga2”

# default settings for icinga2's initscript

ICINGA2_USER="icinga"
ICINGA2_GROUP="icinga"

#DAEMON_ARGS="-e /var/log/icinga2/icinga2.err"

we can stop, start, reload, restart … and so one… works like a charm… so far so good

● icinga2.service - Icinga host/service/network monitoring system
Loaded: loaded (/lib/systemd/system/icinga2.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/icinga2.service.d
└─limits.conf
Active: active (running) since Tue 2021-09-14 11:08:43 CEST; 12min ago
Process: 781 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/default/icinga2 (code=exited, status=0/SUCCESS)
Main PID: 795 (icinga2)
Status: “Startup finished.”

but… if we want to check the config icinga2 daemon -C we got this error

critical/cli: Invalid group specified: nagios

with -x debug it also not working to get more information.
I tried do change directly username and group in /usr/lib/icinga2/prepare-dirs but dind’t help either

Somebody a idea, or is it compiled with group “nagios”?
Many thanks

1 Like