This is the same bug that does not permit to perform log rotation in zabbix.
Log rotation is broken now (agent sometimes dies during log rotation, that's why log rotation should be disabled until this is fixed). I believe before it was blamed on stderr being incorrectly closed but this is the real problem - every time zabbix dies from log rotation I see the same message in the log file. /Eugene Zillow.com, Your Edge in Real Estate > -----Original Message----- > From: Patryk Dawidziuk [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 06, 2007 2:06 PM > To: [EMAIL PROTECTED] > Subject: Bug#413740: zabbix-agents dies if restarted too many times > > Package: zabbix-agent > Version: 1.1.6-1 > Severity: normal > > restarting zabbix-agent several times a row causes > zabbix-agent die with the following info in zabbix-agent.log: > > 030087:20070306:224732 Cannot bind to port 10050. Error > [Address already in use]. Another zabbix_agentd already running ? > > > how to reproduce: > > rtr:~# ps -ef | grep -i zabbix_agent | grep -v grep | wc -l > 6 > rtr:~# /etc/init.d/zabbix-agent restart > Stopping Zabbix agent: zabbix_agentd > Starting Zabbix agent: zabbix_agentd > rtr:~# /etc/init.d/zabbix-agent restart > Stopping Zabbix agent: zabbix_agentd > Starting Zabbix agent: zabbix_agentd > rtr:~# ps -ef | grep -i zabbix_agent | grep -v grep | wc -l 0 rtr:~# > > (notice < 1s delay between restarts) > > tried to reproduce on grsec kernel and no grsec kernels, same > behavior. > > strange, seems like a ghost of #377038. Correct me if I'm wrong. > > solution is to hack init.d script and add 'sleep 1' between > stop and start, just like in #377038. > I was not able to kill zabbix-agent by excessive amount of > restarts after this little hack. > > > Regards, > > -- > [: Patryk Dawidziuk ~~~ :] > > > >

