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:
+4
-1
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user