Skip to content

Problem using SNMP Backend and SNMPv3 #160

@Kramdin-thinklogistics

Description

@Kramdin-thinklogistics

Hi,

I'm trying to use the new SNMP discovery backend with a simple test policy based on the one supplied in the docs. The test target is a Cisco 3850 stack using SNMPv3 which we successfully poll regularly via LibreNMS.

The run of the agent seems to interpret and apply the policy successfully (I can't see any errors), however, the second to last line says SNMP crawl complete policy=xxxxxxx entityCount=0 which I would expect to have a number other than 0?

The same credentials, auth, and privacy settings as those used for LibreNMS are what I supplied in the policy yaml. The only thing that may be of interest is the privacy protocol used in production is AES-128; your config only allows for AES - could that be the issue?

Log:

{"time":"2025-07-29T21:06:48.012793916Z","level":"INFO","msg":"backends loaded","backends":{"common":{"diode":{"agent_name":"netdm1-p5j","client_id":"diode-ingest","client_secret":"xxxxxxx","target":"grpc://localhost:8080/diode"}},"snmp_discovery":null}}
{"time":"2025-07-29T21:06:48.013037912Z","level":"INFO","msg":"no secrets manager specified or invalid type, skipping"}
{"time":"2025-07-29T21:06:48.013111411Z","level":"INFO","msg":"agent started","version":"v2.2.0","routine":"agentRoutine"}
{"time":"2025-07-29T21:06:48.013230109Z","level":"INFO","msg":"requested backends","values":{"common":{"diode":{"agent_name":"netdm1-p5j","client_id":"diode-ingest","client_secret":"xxxxxx","target":"grpc://localhost:8080/diode"}},"snmp_discovery":null}}
{"time":"2025-07-29T21:06:48.013307008Z","level":"INFO","msg":"registered backends","values":["device_discovery","network_discovery","worker","snmp_discovery","pktvisor","otel"]}
{"time":"2025-07-29T21:06:48.013819501Z","level":"INFO","msg":"snmp-discovery startup","arguments":["--host","localhost","--port","8070","--diode-target","grpc://localhost:8080/diode","--diode-client-id","diode-ingest","--diode-client-secret","********","--diode-app-name-prefix","netdm1-p5j"]}
{"time":"2025-07-29T21:06:48.185752126Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:48.185Z level=INFO msg=\"starting snmp-discovery server at: localhost:8070\""}
{"time":"2025-07-29T21:06:49.014687395Z","level":"INFO","msg":"snmp-discovery process started","pid":20}
{"time":"2025-07-29T21:06:49.016682866Z","level":"INFO","msg":"snmp-discovery readiness ok, got version ","network_discovery_version":"1.8.0"}
{"time":"2025-07-29T21:06:49.016740365Z","level":"INFO","msg":"managing agent policy from core","action":"manage","name":"xxxxxx","dataset":"97138c5c-518b-482f-99bd-e4f708dc6d58","backend":"snmp_discovery","id":"e50c2c42-e8db-5998-a3bc-a657b44e16ae","version":1}
{"time":"2025-07-29T21:06:49.017761651Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:49.017Z level=INFO msg=\"Received policies\" policyCount=1"}
{"time":"2025-07-29T21:06:49.096253421Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:49.096Z level=INFO msg=\"Loaded device lookup extensions\" directory=\"\""}
{"time":"2025-07-29T21:06:49.096498318Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:49.096Z level=INFO msg=\"Starting policy runner\" policy=xxxxxx"}
{"time":"2025-07-29T21:06:49.096579217Z","level":"INFO","msg":"policy applied successfully","policy_id":"e50c2c42-e8db-5998-a3bc-a657b44e16ae","policy_name":"xxxxxxx"}
{"time":"2025-07-29T21:06:49.096616016Z","level":"INFO","msg":"heartbeat routine started"}
{"time":"2025-07-29T21:06:50.096998622Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:50.096Z level=INFO msg=\"Starting SNMP crawl of targets\" targetCount=1"}
{"time":"2025-07-29T21:06:50.097041922Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:50.096Z level=INFO msg=\"Querying targets\" targetCount=1 objectCount=12"}
{"time":"2025-07-29T21:06:50.097048921Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:50.096Z level=INFO msg=Scanning host=xxxxxxx"}
{"time":"2025-07-29T21:06:51.10030349Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:51.100Z level=INFO msg=\"SNMP crawl complete\" policy=xxxxxxx entityCount=0"}
{"time":"2025-07-29T21:06:51.10033909Z","level":"INFO","msg":"snmp-discovery stdout","log":"time=2025-07-29T21:06:51.100Z level=INFO msg=\"No entities to ingest\" policy=xxxxxxx"}```

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