snmpwalk -v3 -u User -a SHA256 -A "Password" -x aes256 -X "Password" -l authPriv IP
如果是正常的, 但是Cacti no response, internal error
可能是php8.1-snmp不能正常運作, 測試刪除後反而可以正常了
Version 1.2.30
root@cacti:~# dpkg --list | grep -i snmp
ii libsnmp-base 5.9.1+dfsg-1ubuntu2.8 all SNMP configuration script, MIBs and documentation
ii libsnmp40:amd64 5.9.1+dfsg-1ubuntu2.8 amd64 SNMP (Simple Network Management Protocol) library
ii php8.1-snmp 8.1.2-1ubuntu2.22 amd64 SNMP module for PHP
ii snmp 5.9.1+dfsg-1ubuntu2.8 amd64 SNMP (Simple Network Management Protocol) applications
ii snmpd 5.9.1+dfsg-1ubuntu2.8 amd64 SNMP (Simple Network Management Protocol) agents
apt remove php8.1-snmp
root@cacti:~# dpkg --list | grep -i snmp
ii libsnmp-base 5.9.1+dfsg-1ubuntu2.8 all SNMP configuration script, MIBs and documentation
ii libsnmp40:amd64 5.9.1+dfsg-1ubuntu2.8 amd64 SNMP (Simple Network Management Protocol) library
rc php8.1-snmp 8.1.2-1ubuntu2.22 amd64 SNMP module for PHP
ii snmp 5.9.1+dfsg-1ubuntu2.8 amd64 SNMP (Simple Network Management Protocol) applications
ii snmpd 5.9.1+dfsg-1ubuntu2.8 amd64 SNMP (Simple Network Management Protocol) agents