Hi,
I have a requirement to work on, where a user wants to see the list of all the nodes which is grouped by custom properties along with their status. I have below query that shows the count of nodes based on their custom properties and its status:
SELECT n.CustomProperties.Comments,
COUNT (CASE n.Status WHEN '1' THEN 1 else NULL end) AS UP,
COUNT (CASE n.Status WHEN '2' THEN 1 else NULL end) AS DOWN,
COUNT (CASE n.Status WHEN '3' THEN 1 else NULL end) AS WARNING,
COUNT (CASE n.Status WHEN '14' THEN 1 else NULL end) AS CRITICAL,
COUNT (CASE n.Status WHEN '9' THEN 1 else NULL end) AS UNMANAGED,
CONCAT('/NetPerfMon/Images/Vendors/',N.VendorIcon) AS [_IconFor_Vendor]
FROM Orion.Nodes n
--WHERE n.Vendor like 'Cisco' or n.Vendor like 'Windows'
GROUP BY n.CustomProperties.Comments, N.VendorIcon
The output looks like this in below screenshot.

However, in addition to this, I would like to attach an hyperlink that displays all the nodes that belongs to custom property (Active directory) and its status. So, if i click on Active directory, it should show me all the nodes that belongs to it.
Can anyone help here please?
Thank you in advance.