The discovery process was only passing SNMPv2c credentials (community string) to the SNMP client, causing SNMPv3 devices to fail discovery even when v3 credentials were configured. Changes: - Updated build_client_opts in discovery.ex to include SNMPv3 credentials (security_name, security_level, auth_protocol, auth_password, priv_protocol, priv_password) when version is "3" - Updated build_snmp_opts in client.ex to pass v3 credentials to SnmpKit - Added parse functions for security_level, auth_protocol, and priv_protocol - Updated connection_opts typespec to include v3 parameters - Fixed parameter names to match SnmpKit expectations (security_name vs sec_name) This enables full SNMPv3 discovery on devices like MikroTik routers that use v3 authentication, allowing them to discover the same sensors and data that SNMPv2c would show. |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||