Skip to content

Add runtime detection and bypass toggle for php-snmp #6669

@somethingwithproof

Description

@somethingwithproof

When php-snmp is installed, Cacti uses it for SNMP operations instead of the net-snmp CLI tools. This causes problems in several scenarios:

The README recommends removing php-snmp, but this isn't always practical — FreeBSD ports pull it in as a Cacti dependency, and other applications on the same host may require it.

Proposed changes:

  1. Add a Settings > Poller toggle to force net-snmp CLI mode even when php-snmp is present
  2. Add a notice on the System Utilities page when php-snmp is detected
  3. Log a NOTICE-level message at poller startup when php-snmp is loaded

Ref #6644, #3818

/cc @TheWitness @xmacan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions