Project

General

Profile

Actions

Bug #5639

closed

Zabbix agent and proxy causing pfSense to crash

Added by Eduardo Stelmaszczyk over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/14/2015
Due date:
% Done:

0%

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

Description

Hello,

I've installed the current non-LTS Zabbix proxy and agent packages (Zabbix version 2.4.3, pfSense package version 0.8.5) in a clean pfSense 2.2.5 box. Since then I've been getting crash reports in the GUI showing the following error:

PHP Fatal error: Cannot redeclare php_zabbix2_pfs_version() (previously declared in /usr/local/pkg/zabbix2-agent.inc:37) in /usr/local/pkg/zabbix2-proxy.inc on line 39

The same error happens with the php_zabbix2_pkg_base() function.

The problem is related to the last changes made to the package, when the maintainer stopped sharing a file between Zabbix proxy and agent. The last changes can we viewed in the following URL:

https://github.com/pfsense/pfsense-packages/commits/master/config/zabbix2

For simplicity's sake, I'll quote the relevant commits comments here:

- Add split include file for zabbix2-proxy package (Nov 16, 2015)
- Stop sharing include file between two packages Bug #3495 (Nov 16, 2015)
- Stop sharing include file between two packages Bug #3495 (Nov 16, 2015)
- Remove zabbix2-proxy code from the split file (Nov 16, 2015)
- Stop sharing a single include file between two packages (Bug #3495) (Nov 16, 2015)

The simplest solution in this case is to rename the functions php_zabbix2_pfs_version() and php_zabbix2_pkg_base() and the calls to them in the files zabbix2-agent.inc and zabbix2-proxy.inc.

Regards,

Eduardo Stelmaszczyk

Actions

Also available in: Atom PDF