Quantcast
Channel: THWACK: Discussion List - All Communities
Viewing all articles
Browse latest Browse all 17187

swql question for Active Alerts on Volumes

$
0
0

Can someone help me out with some swql please.  I am getting an error mismatch input 'Orion' expecting 'SELECT' in From Clause.  Here is the actual script I am using:

 

Select n.Node.Capture, n.Node.StatLED, n.Node.PRIMARY_ROLE, AlertDefinitions.Name, AlertStatus.AlertDefID, AlertHistory.Description, ALERTSTATUS.TRIGGERTIMESTAMP, Volumes.DetailsUrl, Volumes.StatusLED, Volumes.VolumeSpaceAvailable, Volumes.VolumeSize, Volumes.VolumePercentUsed

 

From (Orion.AlertDefinitions INNER Join alertstatus on (Orion.AlertDefinitions.alertdefid = AlertStatus.AlertDefID) inner join volumes on (Orion.Volumes.Fullname = AlertStatus.objectname) inner join nodes on (Orion.Volumes.nodeid = nodes.nodeid) inner join AlertHistory on (Orion.AlertHistory.TimeStamp = ALERTSTATUS.TRIGGERTIMESTAMP) inner join AlertHistory on (Orion.AlertHistory.DisplayName = ALERTSTATUS.OBJECTNAME))

 

Where alertdefinitions.objecttype = 'volume'

 

 

Order by Node.Primary_Role, node.Capture, Node.StatLED, AlertDefinitions.Name, ALERTSTATUS.OBJECTNAME, ALERTSTATUS.TRIGGERTIMESTAMP, Volumes.DetailsUrl, round((Volumes.VolumeSpaceAvailable / 1024 / 1024  ),1), Volumes.VolumetypeIcon, Volumes.VolumePercentUsed, Volumes.StatusLED


Viewing all articles
Browse latest Browse all 17187

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>