implement system_reports and convert PortErrorDisabled to system report

This commit is contained in:
Oliver Gorwits
2018-02-22 21:31:17 +00:00
parent 2aaec6b059
commit 8d82023ac6
3 changed files with 20 additions and 49 deletions

View File

@@ -148,6 +148,23 @@ device_port_col_idx_right: -1
jobqueue_refresh: 10
safe_password_store: true
reports: []
system_reports:
- tag: portserrordisabled
label: 'Error Disabled Ports'
category: Port
columns:
- { ip: Device }
- { dns: DNS }
- { port: Port }
- { name: Description }
- { reason: Reason }
query: |
SELECT dp.ip, d.dns, dp.port, dp.name, properties.error_disable_cause AS reason
FROM device_port dp
INNER JOIN device_port_properties properties USING (ip, port)
LEFT JOIN device d USING (ip)
WHERE properties.error_disable_cause IS NOT NULL
ORDER BY dp.ip, dp.port
table_pagesize: 10
table_showrecordsmenu:
- [10, 25, 50, 100, '-1']