Quantcast
Viewing all articles
Browse latest Browse all 20607

Re: Re: Re: Custom SWQL resource

Hi tdanner

 

Thanks for the pointers.  This has pretty much achieved what I was looking for.  Like you mentioned, it's a shame about the formatting.

 

I made a few changes - VolumeType Icon for volume status icon and corrected the typo on your line 31 (my line 38 below)

 

SELECT       n.caption as Node,       '/Orion/images/StatusIcons/Small-' + n.StatusLED AS [_IconFor_Node],       n.ipaddress as IP_Address,       n.ObjectSubType as Polling_Method,       n.StatusDescription as Status,      n.NodeID,      1 AS Kind  
FROM orion.nodes n  


UNION ALL (  
SELECT       
I.Caption as Interface,      '/Orion/images/StatusIcons/Small-' + i.StatusLED AS [_IconFor_Interface],    
NULL as IP_Address,    
NULL as Polling_Method,       NULL as Status,      I.NodeID,      2 AS Kind  
FROM Orion.NPM.Interfaces I   )


UNION ALL (  
SELECT       V.Caption as Interface,      '/NetPerfMon/images/Volumes/' + V.VolumeTypeIcon AS [_IconFor_Interface],       NULL as IP_Address,       NULL as Polling_Method,       NULL as Status,      V.NodeID,      3 AS Kind  
FROM Orion.Volumes V  
)  


ORDER bY NodeID, Kind 







 

This will be perfect for now.  Thanks again.

 

Stuart


Viewing all articles
Browse latest Browse all 20607

Trending Articles