Ad Widget

Collapse

Zabbix 1.1 agentd creates log with wrong owner

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jshprentz
    Junior Member
    • May 2006
    • 3

    #1

    Zabbix 1.1 agentd creates log with wrong owner

    Zabbix agentd creates its log file owned by root. Later, when running as user zabbix, agentd cannot open or write to that file.

    When logging to a file, Zabbix agentd opens and closes the log file immediately after reading the configuration file. If no previous log file exists, a new file is created with the current owner and group: root and root on Gentoo.

    Later, agentd executes setuid and setgid to set the appropriate process owner and group, typically zabbix and zabbix. Now it can no longer open its log file.

    Workaround: Assure that a log file exists with the appropriate owner prior to running zabbix_agentd:

    Code:
    touch /var/log/zabbix/zabbix_agentd.log
    chown zabbix:zabbix /var/log/zabbix/zabbix_agentd.log
  • cameronsto
    Senior Member
    • Oct 2005
    • 148

    #2
    I reported this awhile back but appears to still be an issue even with the latest 1.1 release. I submitted a patch for it at the time for 1.1beta5. I'll see if I can knock one out for 1.1 too.

    -cameron

    Comment

    Working...