#921 Devices with Multiple Addresses report
This commit is contained in:
@@ -174,11 +174,11 @@ system_reports:
|
|||||||
label: 'Error Disabled Ports'
|
label: 'Error Disabled Ports'
|
||||||
category: Port
|
category: Port
|
||||||
columns:
|
columns:
|
||||||
- { ip: Device }
|
- { ip: Device }
|
||||||
- { dns: DNS }
|
- { dns: DNS }
|
||||||
- { port: Port }
|
- { port: Port }
|
||||||
- { name: Description }
|
- { name: Description }
|
||||||
- { reason: Reason }
|
- { reason: Reason }
|
||||||
query: |
|
query: |
|
||||||
SELECT dp.ip, d.dns, dp.port, dp.name, properties.error_disable_cause AS reason
|
SELECT dp.ip, d.dns, dp.port, dp.name, properties.error_disable_cause AS reason
|
||||||
FROM device_port dp
|
FROM device_port dp
|
||||||
@@ -186,6 +186,21 @@ system_reports:
|
|||||||
LEFT JOIN device d USING (ip)
|
LEFT JOIN device d USING (ip)
|
||||||
WHERE properties.error_disable_cause IS NOT NULL
|
WHERE properties.error_disable_cause IS NOT NULL
|
||||||
ORDER BY dp.ip, dp.port
|
ORDER BY dp.ip, dp.port
|
||||||
|
- tag: deviceaddresscount
|
||||||
|
label: 'Devices with Multiple Addresses'
|
||||||
|
category: Device
|
||||||
|
columns:
|
||||||
|
- { 'ip': 'Device IP', _searchable: true }
|
||||||
|
- { 'devname': 'Name' }
|
||||||
|
- { 'count': 'Addresses Count' }
|
||||||
|
- { 'contact': 'Contact' }
|
||||||
|
- { 'location': 'Location' }
|
||||||
|
query: |
|
||||||
|
SELECT ip, COALESCE(NULLIF(device.dns,''), NULLIF(name,''), '(none)') AS devname, count(alias), contact, location
|
||||||
|
FROM device_ip LEFT JOIN device USING (ip)
|
||||||
|
GROUP BY ip, devname, contact, location
|
||||||
|
HAVING count(alias) > 1
|
||||||
|
ORDER BY count(alias) DESC
|
||||||
table_pagesize: 10
|
table_pagesize: 10
|
||||||
table_showrecordsmenu:
|
table_showrecordsmenu:
|
||||||
- [10, 25, 50, 100, '-1']
|
- [10, 25, 50, 100, '-1']
|
||||||
|
|||||||
Reference in New Issue
Block a user