SNMPv3 auth/priv flags

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
KizzelD
Posts: 2
Joined: Sat Nov 23, 2019 12:22 am

SNMPv3 auth/priv flags

Post by KizzelD »

Looking for some possible info on where I need to change the SNMPv3 flags within the snmp.php file or global array.

I can successfully snmpwalk/get devices via CLI - - but am required to use the -3k/-3K flags to retrieve any info as opposed to the native -A/-X and all lookups fail within cacti when changing these flags.

Code: Select all

snmpwalk -v 3 -u USERMON -a MD5 -3k LONGHEXHERE -x DES -3K LONGHEXHERE -l authPriv udp6:IPv6ADDY
I've only seen the -A/-X flags exposed under function cacti_get_snmpv3_auth field within snmp.php

Code: Select all

function cacti_get_snmpv3_auth($auth_proto, $auth_user, $auth_pass, $priv_proto, $priv_pass, $context, $engineid) {
        $sec_details = ' -a ' . snmp_escape_string($auth_proto) . ' -A ' . snmp_escape_string($auth_pass);
        if ($priv_proto == '[None]' || $priv_pass == '') {
                if ($auth_pass == '' || $auth_proto == '[None]') {
                        $sec_level   = 'noAuthNoPriv';
                        $sec_details = '';
                } else {
                        $sec_level   = 'authNoPriv';
                }

                $priv_proto = '';
                $priv_pass  = '';
        } else {
                $sec_level = 'authPriv';
                $priv_pass = '-X ' . snmp_escape_string($priv_pass) . ' -x ' . snmp_escape_string($priv_proto);
Any guidance or help would be appreciated - thanks!
KizzelD
Posts: 2
Joined: Sat Nov 23, 2019 12:22 am

Re: SNMPv3 auth/priv flags

Post by KizzelD »

Well, after looking through the github (and the docker image I was using). I added the php_snmp_support = false; flag to the config.php file, re applied my 3k/3k settings and it worked!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests