Bug 234952

Summary: net-mgmt/cacti: fix issues with graphs
Product: Ports & Packages Reporter: Daniel Austin <freebsd-ports>
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Some People CC: swills
Priority: --- Keywords: patch
Version: LatestFlags: freebsd-ports: maintainer-feedback+
freebsd-ports: merge-quarterly?
Hardware: Any   
OS: Any   
Attachments:
Description Flags
add option to force use of snmpget/snmpwalk binaries instead of php built-ins freebsd-ports: maintainer-approval+

Description Daniel Austin 2019-01-14 21:19:57 UTC
Created attachment 201140 [details]
add option to force use of snmpget/snmpwalk binaries instead of php built-ins

Due to bugs/incompatabilities with the PHP 7.x SNMP functions in PHP and cacti, some graphs do not update within cacti.
The workaround is to uninstall phpXX-snmp but this is not desirable as other installed software may use it successfully.
An alternative is to forcibly cause cacti to use the binaries and skip the autodetection of the PHP functions.

This patch adds an option (default on) to override the automatic detection and force the use of the binary utils.

Committer: please ignore gettext warnings, cacti has internal gettext handling.

I've requested merge-quarterly as it affects the basic usage of cacti for users.

Poudriere testport logs for 11.2/i386 and 11.2/amd64 located at:

https://poudriere.dan.tm/poudriere/data/latest-per-pkg/cacti/1.2.0_2/

testport logs for 12.0/i386 and 12.0/amd64 located at:

https://poudriere2.dan.tm/poudriere/data/latest-per-pkg/cacti/1.2.0_2/
Comment 1 commit-hook freebsd_committer 2019-01-16 12:59:43 UTC
A commit references this bug:

Author: swills
Date: Wed Jan 16 12:59:38 UTC 2019
New revision: 490477
URL: https://svnweb.freebsd.org/changeset/ports/490477

Log:
  net-mgmt/cacti: fix issues with graphs

  PR:		234952
  Submitted by:	Daniel Austin <freebsd-ports@dan.me.uk> (maintainer)

Changes:
  head/net-mgmt/cacti/Makefile
  head/net-mgmt/cacti/files/extra-patch-lib_snmp.php
Comment 2 Steve Wills freebsd_committer 2019-01-16 13:00:41 UTC
Committed, thanks!