implement system_reports and convert PortErrorDisabled to system report
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user