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
+15
View File
@@ -40,3 +40,18 @@ create table if not exists scan_ports (
create index if not exists idx_scan_ports_scan_id_checked_at
on scan_ports (scan_id, checked_at desc);
create table if not exists scan_snmp (
id bigserial primary key,
scan_id text not null references scan_jobs(id) on delete cascade,
ip inet not null,
success boolean not null,
sys_name text null,
sys_descr text null,
sys_object_id text null,
error_text text null,
checked_at timestamptz not null
);
create index if not exists idx_scan_snmp_scan_id_checked_at
on scan_snmp (scan_id, checked_at desc);