Ad Widget

Collapse

PATCH: zabbix_agentd opens log file before assuming zabbix user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cameronsto
    Senior Member
    • Oct 2005
    • 148

    #1

    PATCH: zabbix_agentd opens log file before assuming zabbix user

    Ran into a problem on my new monitoring box. When starting the zabbix agent as root, the agent opens the agent's log file before assuming the zabbix user. This causes the agent to not be able to log to the file because it is owned by root. The attached patch makes the agent run under the zabbix user before writing to the log file. One thing I am confused about is that this only seems to be an issue on one of my boxes. Runs Centos 4.2, if that matters.

    Anyway, run the following from the zabbix-1.1beta5 extracted directory:
    patch -p0 < zabbix_agentd.1.1beta5.diff.txt
    -cameron
    Attached Files
  • cameronsto
    Senior Member
    • Oct 2005
    • 148

    #2
    Seems this interferes with the '-p' argument. I'm working on a new patch.

    -cameron

    Comment

    • cameronsto
      Senior Member
      • Oct 2005
      • 148

      #3
      New patch for this. Able to use the '-p' option again, and the log is created as zabbix user.

      Same instructions as before, different filename.

      -cameron
      Attached Files

      Comment

      Working...