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 #1

Updated by Kill Bill over 8 years ago

There's no maintainer for this. And I'm tired of the PBI BS. The non-LTS packages are gone from 2.3, move on.

Actions #2

Updated by Kill Bill over 8 years ago

Fixed by removing the nonsense altogether. https://github.com/pfsense/pfsense-packages/pull/1218

Actions #3

Updated by Eduardo Stelmaszczyk over 8 years ago

Thank you for the very quick response and action.

As for the "move on" comment, I'm sorry but I didn't quite understand what you mean.

- "Move on" from pfSense 2.2.5 to 2.3? It's still in alpha, I can't use it on production systems.

- "Move on" from the non-LTS Zabbix packages (release 2.4) to the current LTS ones (release 2.2)? Impossible... I wouldn't be 'moving on' but 'moving back' since the LTS version is older than the current one (not to mention they're incompatible)

- "Move on" from the non-LTS Zabbix packages (2.4) to the new LTS ones (3.0)? Impossible since Zabbix 3.0 isn't out yet.

If you could clarify what you meant I'd be grateful.

Anyway, thank you again. I'm just waiting for your pull requests on Github to get approved.

Eduardo

Actions #4

Updated by Kill Bill over 8 years ago

This package will go away (read, already gone from pfSense 2.3). Simple. Don't expect any other fixes here; pointless waste of time.

Actions #5

Updated by Anonymous over 8 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF