【问题标题】:Nagios installation issueNagios 安装问题
【发布时间】:2018-04-23 09:32:54
【问题描述】:

make install - 命令模式

/usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/rw

 chmod g+s /usr/local/nagios/var/rw

配置的外部命令目录

制作安装配置

/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc

/usr/bin/install: invalid group ‘nagios’

make: *** [install-config] Error 1

在 Nagios 核心安装步骤中我得到了上述错误,我已经创建了

组已经

useradd -m nagios

useradd: user 'nagios' already exists

groupadd nagcmd

groupadd: group 'nagcmd' already exists

 usermod -a -G nagcmd nagios

 usermod -a -G nagcmd apache

 pwd

请建议继续进行

【问题讨论】:

    标签: nagios


    【解决方案1】:

    您已创建“nagcmd”用户组,但在安装命令中使用“nagios”组名。

    【讨论】:

      【解决方案2】:

      尝试使用以下命令完成:

      make install-groups-users
      usermod -a -G nagios apache
      make install
      

      【讨论】:

        【解决方案3】:
        adduser nagiosLearn
        groupadd nagiosTest 
        usermod -aG nagiosTest nagiosLearn
        

        当你安装nagios

        ./configure --with-command-group=nagcmd 
        

        在组名中,您必须使用分配给用户的相同组名。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2021-05-31
          相关资源
          最近更新 更多