Add SNMP v2c probing and results endpoint.

Probe sysName/sysDescr/sysObjectID for alive hosts, persist SNMP outcomes, and expose scan SNMP data via REST.

Made-with: Cursor
This commit is contained in:
Andrey Lutsenko
2026-04-09 21:56:31 +10:00
parent e9452dcc0a
commit cca4477792
10 changed files with 234 additions and 3 deletions
+4 -1
View File
@@ -20,7 +20,10 @@ func main() {
defer dbClose()
}
runner := scans.NewRunner(scanStore)
runner := scans.NewRunner(scanStore, scans.RunnerConfig{
SNMPEnabled: cfg.SNMPEnabled,
SNMPCommunity: cfg.SNMPCommunity,
})
handler := api.NewHandler(scanStore, runner)
server := &http.Server{