Nagios Core安装报错:无效组‘nagios’问题求助
Looks like the issue is straightforward: even though you've created the nagios user, the nagios group doesn't exist (or the user isn't properly associated with it). The make install-config step tries to set file permissions for the nagios group, which fails because it can't find the group.
Here's how to resolve this step-by-step:
First, verify if the
nagiosgroup exists on your system:getent group nagiosIf you get no output, the group is missing.
Create the
nagiosgroup:groupadd nagiosEnsure the
nagiosuser is added to thenagiosgroup (in case it wasn't linked during user creation):usermod -a -G nagios nagiosWhile you're at it, double-check that the
nagcmdgroup (required for external command access) exists too, since your earlier logs mention it:groupadd nagcmd usermod -a -G nagcmd nagios # Add your web server user to nagcmd as well (use www-data for Debian/Ubuntu, httpd for RHEL/CentOS) usermod -a -G nagcmd www-dataNow re-run the failed installation step:
make install-config
This should fix the group permission error and let you proceed with the Nagios Core installation.
内容的提问来源于stack exchange,提问作者Manikandan

