sensor-snmp: identity evidence for polled devices (observer role) #537
Labels
No labels
area:frontend
area:gui
area:transfer
area:zenoh
breaking-change
bug
correlation
deployment
documentation
duplicate
enhancement
good first issue
help wanted
invalid
keyspace-v2
netring-0.27
netring-0.28
netring-0.29
nlink-0.24
performance
priority:p0
priority:p1
priority:p2
prototype
question
redesign
rerun
research
security
sensor:logs
sensor:netlink
sensor:netring
sensor:parallax
sensor:snmp
sensor:sysinfo
sensor:systemd
v3-roadmap
wave:0
wave:1
wave:2
wave:3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
marcpardo/zensight#537
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #525.
Problem
Polled devices contribute no identity evidence: the sensor only publishes
state/snmp/evidence/self(the poller host's own identity viawith_identity()).zensight-common/src/evidence.rsexplicitly anticipates SNMP as the canonical third-party observer ("snmp sysName"), andHostEvidence.observerexists for exactly this — but the registry (zensight-common/registry/snmp.toml) has noevidence/device/{device}subject. Result: routers/switches never appear in the correlator's entity catalog or topology; SNMP data can't be fused with netring/netlink observations of the same devices.Proposal
HostEvidencewithobserver = Some(<poller host_id>):hostname← sysName;vendor/platform← parsed sysDescr + sysObjectID enterprise arc;macs← ifPhysAddress walk (filter empty/virtual);ips← ipAddrTable / ipAddressTable walk (plus the address we poll);host_idderivation (decide: hash of engine ID / chassis MAC / sysName+address — must survive re-IP).evidence/device/{device}(state,HostEvidence) tosnmp.toml; refresh on a slow cadence (e.g. every 10th poll).HostEntitys and they render in topology/entity views.Acceptance
HostEntityin@catalogwith SNMP-sourced names, MACs, IPs.introspectinclude the new subject;docs/reference.mdupdated.