Bug 234952 - net-mgmt/cacti: fix issues with graphs
Summary: net-mgmt/cacti: fix issues with graphs
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steve Wills
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2019-01-14 21:19 UTC by Daniel Austin
Modified: 2019-01-16 13:00 UTC (History)
1 user (show)

See Also:
freebsd-ports: maintainer-feedback+
freebsd-ports: merge-quarterly?


Attachments
add option to force use of snmpget/snmpwalk binaries instead of php built-ins (1.52 KB, patch)
2019-01-14 21:19 UTC, Daniel Austin
freebsd-ports: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 freebsd_triage 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 freebsd_triage 2019-01-16 13:00:41 UTC
Committed, thanks!