PDA

View Full Version : remove CONFIG_STAT_FILE on agentd stop


abi
04-07-2006, 15:36
hi,

zabbix_agentd leaves its CONFIG_STAT_FILE (/tmp/zabbix_agentd.tmp)
when stopping. See here for the full bugreport in the Debian BTS:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=376681

i think zabbix_agentd should care about removing this file,
not the init scripts. I've had a look at the source and it seems
like CONFIG_STAT_FILE should be configurable within the config
file, but these parts in the source are commented out. Not sure
if thats wanted, however, i've added the needed parts to the
uninit function for removing this file on agentd stop.

The patch (also attached to the above mentioned bugreport)
can be found here:

http://people.debian.org/~abi/stat_file.diff

(sorry for the wrong forum, may one please move this thread
over to the Patch forum? Thanks!)

abi
07-07-2006, 09:47
... opinions?

Alexei
07-07-2006, 14:42
The patch is wrong. It adds new parameter but doesn't use it anywhere. I'll fix this problem today.

Alexei
07-07-2006, 15:14
New patch has been created and applied.