Ad Widget

Collapse

zabbix_agentd - log file handle issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aaron Kulick
    Junior Member
    • Jan 2011
    • 2

    #1

    zabbix_agentd - log file handle issues

    Running Ubuntu 10.10 and 10.04 and centos 5.4 and 5.5. I am seeing this behavior for both the agent and the server. If the log file is rotated by zabbix and then rotated out (deleted) due to log volume and sufficiently small LogFileSize parameter the file handle remains and is clearly visible in via 'lsof | grep -i deleted | grep -i zabbix' and the space is not recovered until the agent is stopped and the file handles released:
    zabbix_ag 19178 zabbix 1w REG 251,0 196081 1439061 /var/log/zabbix-agent/zabbix_agentd.log.1 (deleted)
    zabbix_ag 19178 zabbix 2w REG 251,0 196081 1439061 /var/log/zabbix-agent/zabbix_agentd.log.1 (deleted)
    zabbix_ag 19179 zabbix 1w REG 251,0 196081 1439061 /var/log/zabbix-agent/zabbix_agentd.log.1 (deleted)
    zabbix_ag 19179 zabbix 2w REG 251,0 196081 1439061 /var/log/zabbix-agent/zabbix_agentd.log.1 (deleted)
    zabbix_ag 19180 zabbix 1w REG 251,0 196081 1439061 /var/log/zabbix-agent/zabbix_agentd.log.1 (deleted)
    zabbix_ag 19180 zabbix 2w REG 251,0 196081 1439061 /var/log/zabbix-agent/zabbix_agentd.log.1 (deleted)
    zabbix_ag 19181 zabbix 1w REG 251,0 196081 1439061 /var/log/zabbix-agent/zabbix_agentd.log.1 (deleted)

    As a result, I have set the agent to disable automatic logrotation via LogFileSize 0 and setting log debug to zero as well.

    Is anybody else seeing this issue?
  • Aaron Kulick
    Junior Member
    • Jan 2011
    • 2

    #2
    I have disabled the zabbix built logrotation and now when logrotated comes in to rotate the log file the log file handle is still held by the zabbix process. Nobody else is seeing this problem? Is there a way to completely disable the debug log?

    Comment

    Working...