Zabbix 1.1 included in portage tree.
Ad Widget
Collapse
Zabbix and gentoo
Collapse
X
-
Hi sauron;
I've installed zabbix-agent-1.1-r1 and zabbix-server-1.1 on a gentoo server I'm working on and I've found out that it doesn't 'chown' some relevant directories like:
/etc/zabbix
/var/log/zabbix
/var/run/zabbix
A quick look around the ebuilds seems to indicate that thei're correct... at least that's what the section 'fowners' in src_install() seems to indicate.
However, I've retried installing the packages and the same happens; the files and directories are owned by root:root.
Any ideas?
[]Comment
-
Hi,
I think the /etc/init.d/zabbix-agent/server could be further tuned to:
start:
1. if .pid file exists, check for another running instance of the agent; if none found, remove the file and start zabbix-agentd.
2. if zabbix-agentd is unable to bind to it's port, wait a while and try again until some maximum timeout reached (squid does such upon shutdown).
stop:
3. after killing process, see if program really died. check for .pid file left behind and clean it if found.
I'm suggesting this because zabbix-agent frequently chokes on itself. Sometimes /etc/init.d/zabbix-agent stop doesn't remove the .pid, sometimes the process doesn't start because the kernel hasn't let go of the port previously used...
I could do this myself, but I'm not familiar with the gentoo-way of /etc/init.d scripts so maybe there are elegant ways to do this. However I could give it a shot and hand them over to you.
What do you think about it?
Cheers,Comment
-
The TIME_WAIT issue is already fixed in CVS. There is another thread which contains a patch for all interested in ZABBIX Forums.Comment
Comment