Project

General

Profile

Actions

Bug #3779

closed

Zabbix Agent 1.x - ZABBIX_AGENT_BASE not defined

Added by Andrew Bauer almost 11 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/28/2014
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
All

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.

Actions #1

Updated by Kill Bill almost 10 years ago

Should be fixed in Zabbix Agent LTS 0.8.5

Actions #2

Updated by Kill Bill over 9 years ago

No such issue with current packages.

Actions #3

Updated by Chris Buechler over 9 years ago

  • Status changed from New to Resolved

thanks

Actions

Also available in: Atom PDF