I have a swql report:
SELECT N.Caption AS NodeName
,N.IPAddress
,SME.Description AS Type
,SME.StatusDescription AS STATUS
,SME.AncestorDisplayNames AS Object_details --, N.NodeStatusRootCause
FROM Orion.Nodes AS N
JOIN System.ManagedEntity AS SME ON SME.AncestorDisplayNames LIKE CONCAT (
'%'
,N.Caption
,'%'
)
JOIN Orion.NodesCustomProperties AS CP ON N.NodeID = CP.NodeID
WHERE CP.Team = 'NetSecOps'
AND N.Vendor LIKE 'Cisco'
AND SME.Description NOT LIKE ''
AND SME.StatusDescription NOT IN (
'Up'
,'Node status is Up.'
,'Unknown'
,'Shutdown'
,'Unmanaged'
)
--AND N.StatusDescription NOT LIKE '%Unmanaged%'
AND N.Caption NOT IN (
SELECT N.Caption
FROM Orion.AlertSuppression AS A
JOIN Orion.nodes AS N ON N.uri = A.EntityURI
)
ORDER BY N.Caption
This gives me a report with these columns:
| zzlcapd5 | 15.14.10.55 | RAM | Critical | [Physical memory, zzlcapd5] |
| zzlcapd5 | 15.14.10.55 | Other | Critical | [Cached memory, zzlcapd5] |
| zzlcapd5 | 15.14.10.55 | Other | Critical | [Shared memory, zzlcapd5] |
| zzlcapd8 | 15.14.10.58 | RAM | Critical | [Physical memory, zzlcapd8] |
| zzlcapd8 | 15.14.10.58 | Other | Critical | [Cached memory, zzlcapd8] |
| zzlcapd8 | 15.14.10.58 | Other | Critical | [Shared memory, zzlcapd8] |
So this report is providing exactly what I need, when I run it in SWIS or SWQL studio.
But if I run it as a scheduled report inside of solarwinds, the last column comes over as System.String[].
| zzlcapd5 | 15.14.10.55 | RAM | Critical | System.String[] |
| zzlcapd5 | 15.14.10.55 | Other | Critical | System.String[] |
| zzlcapd5 | 15.14.10.55 | Other | Critical | System.String[] |
| zzlcapd8 | 15.14.10.58 | RAM | Critical | System.String[] |
| zzlcapd8 | 15.14.10.58 | Other | Critical | System.String[] |
| zzlcapd8 | 15.14.10.58 | Other | Critical | System.String[] |
How can I show the data that is supposed to be in that column? The json that is emitted in SWIS has between one and three entries, the first one being CRITICAL to the meaning of the row. Without it all I know is I have 257 critical "other" problems. That the descriptive name of the object is lost is a major problem. How can I produce these reports in the "all reports" section so the report displays the data in the System.String[]?
George