Here is a SWQL query that may help, using different vendors since I have no Fortigate
SELECT n.Vendor,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 '9' THEN 1 else NULL end) AS UNMANAGEDFROM Orion.Nodes nWHERE n.Vendor like 'Cisco' or n.Vendor like 'Windows'GROUP BY n.Vendor
[View:/cfs-file/__key/communityserver-discussions-components-files/46/Device-Count-Error-02.gif:640:480]
I keep getting the following error.
I would like to use this one on the Classic Dashboards if possible.
@CourtesyIT, Something like this?
Add a custom query widget and below code:
SELECT n.Vendor,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 '9' THEN 1 else NULL end) AS UNMANAGED,CONCAT('/NetPerfMon/Images/Vendors/',N.VendorIcon) AS [_IconFor_Vendor]FROM Orion.Nodes nWHERE n.Vendor like 'Cisco' or n.Vendor like 'Windows'GROUP BY n.Vendor, N.VendorIcon