zabbix_agentd cannot run as root

I recently came across an issue where I re-installed zabbix agent on a Linux machine and tried to start it up but got the following error messages:

[code lang=”js”]

Starting Zabbix agent: zabbix_agentd [10808]: user zabbix does not exist

zabbix_agentd [10808]: cannot run as root![/code]

It appears during the re-installation of the zabbix agent, the zabbix user account needed by the agent was not created. To workaround this, run the following commands:

[code lang=”js”]groupadd zabbix[/code]

[code lang=”js”]useradd -g zabbix zabbix[/code]

[code lang=”js”]chown zabbix:zabbix /var/log/zabbix/[/code]

<p style="text-align: justify;">
  <p>
    [code lang=&#8221;js&#8221;]chown zabbix:zabbix /var/run/zabbix/[/code]
  </p>

  <p style="text-align: justify;">
    <p>
      [code lang=&#8221;js&#8221;]rm -f /var/log/zabbix/*[/code]
    </p>

    <p style="text-align: justify;">
      <p>
        [code lang=&#8221;js&#8221;]rm -f /var/run/zabbix/*[/code]
      </p>

      <p style="text-align: justify;">
        <p>
          [code lang=&#8221;js&#8221;]service zabbix-agent restart[/code]
        </p>

        <p style="text-align: justify;">
          <p>
            [code lang=&#8221;js&#8221;]chkconfig zabbix-agent on[/code]
          </p>

          <p style="text-align: justify;">
            This should fix the agent start-up problem.
          </p>
 
comments powered by Disqus