Bug #3779
closedZabbix Agent 1.x - ZABBIX_AGENT_BASE not defined
0%
Description
Problem:
Zabbix 1.x agent does not start automatically and complains on boot that it cannot find ZABBIX_AGENT_BASE/etc/zabbix/zabbix_agentd.conf
Additionally, it does not symlink zabbix_agentd.conf into /usr/local/etc/zabbix.
Background:
ZABBIX_AGENT_BASE appears to be defined in zabbix-agent.xml, within the <custom_php_install_command> context. However, this doesn't carry over to the other contexts within the xml file.
Workaround:
To workaround this I added the following block into each context that tried to reference ZABBIX_AGENT_BASE: switch ($pfs_version) {
case "1.2":
case "2.0":
case "2.1":
define('ZABBIX_AGENT_BASE','/usr/local');
break;
default:
define('ZABBIX_AGENT_BASE', '/usr/pbi/zabbix-agent-' . php_uname("m"));
}
I'm sure there is way to define this just once.
Let me know if I have provided enough information.
Updated by Kill Bill almost 10 years ago
Should be fixed in Zabbix Agent LTS 0.8.5