Shared Files for the Orion Platform
  • Query Orion Views

    Quick query to view the Orion (classic) views. SELECT v.ViewID ,v.ViewTitle ,v.ViewGroupName ,v.ViewType ,v.LimitationID FROM Orion.Views AS v WHERE v.ViewID IN ( 1, 2 )
    • 8 downloads
    • 23 Feb 2022
  • SQL Advanced Find/Replace within email alert actions

    I had the need to update the email action message (subject) of email actions, and also the email address fields in bulk and this is what I used to do that. Note these are both SQL queries - not SWQL -- Update the Email Message of Actions -- with the following query UPDATE dbo.ActionsProperties SET dbo.ActionsProperties.PropertyValue = replace (dbo.ActionsProperties.PropertyValue, 'oldval', 'newval') FROM dbo.ActionsProperties INNER JOIN dbo.Actions ON dbo.ActionsProperties.ActionID =...
    • 12 downloads
    • 17 Feb 2022
  • Orion agent plugin details

    SELECT a.Plugins.PluginId ,a.Plugins.Status ,a.Plugins.StatusMessage ,a.Plugins.Version ,a.Name ,a.IP ,a.AgentId ,a.AgentGuid ,a.Node.NodeID ,a.AgentStatus ,a.AgentStatusMessage ,a.ConnectionStatus ,a.ConnectionStatusMessage FROM Orion.AgentManagement.Agent AS a WHERE a.Node.NodeID = 1
    • 6 downloads
    • 17 Feb 2022
  • Node enabled pollers query

    Query has NetObjectID = 1 as an example, simply replace with the node id necessary (or adjust as needed to show all data). SELECT n.Caption ,p.PollerID ,p.PollerType ,p.Enabled ,p.NetObjectID FROM Orion.Pollers AS p INNER JOIN Orion.Nodes AS n ON n.NodeID = p.NetObjectID AND p.NetObjectType = 'N' AND p.Enabled = 1 INNER JOIN Orion.DeviceStudio.PollerAssignments AS d ON d.NetObjectID = n.NodeID AND d.NetObjectType = 'N' AND d.Enabled = 1 WHERE p.NetObjectID = 1 UNION ALL ( SELECT...
    • 11 downloads
    • 17 Feb 2022
  • Conditional email addresses within email actions SWQL query

    This may belong in the alert lab - but it's not explicitly an alert of xml file type and is in essence a SWQL query. Regardless I wanted to show how you can use the custom SWQL variables within the to / cc / bcc fields in email actions to send email conditionally to specific folks. This could also be a custom SQL variable also but works out better to be SWQL. Similar custom variables can also be leveraged in other alert actions such as filling in the data of a text custom property conditionally...
    • 7 downloads
    • 17 Feb 2022
  • Query for agent status and response time pollers enabled and disabled

    SELECT n.Caption ,n.IP_Address ,n.Engine.ServerName ,n.ObjectSubType ,n.Uri AS [NodeUri] ,p1.PollerType1 AS [EnabledPoller1] ,p2.PollerType2 AS [EnabledPoller2] ,p3.PollerType3 AS [DisabledPoller3] ,p4.PollerType4 AS [DisabledPoller4] ,p1.p1Uri AS [EnabledPollerUri1] ,p2.p2Uri AS [EnabledPollerUri2] ,p3.p3Uri AS [DisabledPollerUri3] ,p4.p4Uri AS [DisabledPollerUri4] FROM Orion.Nodes AS n LEFT JOIN ( SELECT p.PollerID, p.PollerType AS [PollerType1], p.Enabled, p.NetObjectID...
    • 9 downloads
    • 17 Feb 2022
  • Node application component assigned credentials SWQL query

    Update 04/20/2022... re-wrote the SQL query into a SWQL query, the file to download is the SWQL query but I'll keep both versions available here for reference. SWQL: SELECT n.NodeID ,n.Caption AS [DisplayName] ,n.SysName AS [Hostname] ,n.IP_Address AS [IP Address] ,n.ObjectSubType AS [Monitoring Method] ,a.ID as ApplicationID ,a.Name as [Application] ,c.ComponentID as ComponentId ,c.Name as Component ,cts.Value as TemplateCredId ,cs.[Value] as OverridenCredId ,cred.Name...
    • 16 downloads
    • 17 Feb 2022
  • Node assigned credentials SWQL query

    Update 04/20/2022... re-wrote the SQL query into a SWQL query, the file to download is the SWQL query but I'll keep both versions available here for reference. SWQL: SELECT n.NodeID ,n.Caption AS [DisplayName] ,n.SysName AS [Hostname] ,n.IP_Address AS [IP Address] ,n.ObjectSubType AS [Monitoring Method] ,n.Community AS [Snmpv1/2c-RO] ,n.RWCommunity AS [Snmpv1/2c-RW] ,c1.Name AS [SNMPv3-RO] ,c2.Name AS [SNMPv3-RW] ,c3.Name AS [WMI-Cred] FROM Orion.Nodes AS n LEFT JOIN Orion...
    • 17 downloads
    • 17 Feb 2022
  • Query nodes down with the most recent note and last time seen up

    This query will pull from both the NetObjectDownTime table, and the Events table (default to NetObjectDownTime via the ISNULL function, fallback to Events) to pull the last time node was seen up along with the most recent note. SELECT n.Caption ,n.DetailsUrl AS [_LinkFor_Caption] ,n.Status ,CONCAT('/NetPerfMon/images/Small-', n.StatusLED) AS [_IconFor_Caption] ,nn2.Note AS [Most Recent Note] ,TOLOCAL(ISNULL(d.DateTimeUntil, e.EventTime)) AS [Last Time Reported UP (EST)] FROM Orion...
    • 11 downloads
    • 17 Feb 2022
  • Query for agent info source via the agent tables

    SELECT n.Caption AS [NodeCaption] ,n.ObjectSubType AS [NodePollingMethod] ,n.IP_Address AS [NodeIP] ,a.IP AS [AgentIP] ,n.NodeID AS [RealNodeID] ,a.NodeId AS [AgentNodeID] ,n.SysName AS [NodeHostName] ,a.Hostname AS [AgentHostName] ,a.AgentGuid ,a.AgentId FROM Orion.AgentManagement.Agent AS a LEFT JOIN Orion.Nodes AS n ON n.NodeID = a.NodeId
    • 10 downloads
    • 17 Feb 2022
  • Group Detail Page - Busiest Interfaces on group members

    Hi all, This is a fairly simple script made based on a request from user aliaksei_halouka in this thread: https://thwack.solarwinds.com/product-forums/network-performance-monitor-npm/f/forum/93863/custom-widget-for-default-group-view Create a custom query widget on your group details page and it will change based on the group you are looking at by using the ${ID} variable. (Note: this won't work as is straight in SWQL studio as the variable is only parsed when it's run on a group details...
    • 39 downloads
    • 11 Feb 2022
  • Alert & Action History

    Alert triggers and actions for the last 7 days.
    • 47 downloads
    • 1 Feb 2022
  • I am trying to run a report, but looks like the db tables changed recently

    Anyone have any ideas which tables changed SELECT OrionNodes.Caption, OrionNodes.DetailsUrl, OrionNodes.Status, OrionNodes.ChildStatus, NcmEntityPhysical.EntityName, OrionNodes.IP_Address, NcmEntityPhysical.EntityDescription, NcmEntityPhysical.Serial, NcmEntityPhysical.Manufacturer, NcmEntityPhysical.Model, NcmNodeProperties.NodeComments, OrionNodes.SysName, OrionNodes.NodeDescription, OrionNodes.Location, OrionNodes.Contact, OrionNodes.MachineType, OrionNodes.LastBoot, OrionNodes.IOSVersion...
    • 19 downloads
    • 18 Jan 2022
  • Orion HA Failover Details

    A query to add to a custom resource. It display by default the last 15 failover, and it can be configured to display the today failover or the last 2 days failover. -- today failover -- -- AND tolocal(e.EventTime) > DateTrunc('day',GETDATE()) -- last 2 days failover -- -- AND tolocal(e.EventTime) < DateTrunc('day',GETDATE()) -- AND tolocal(e.EventTime) > DateTrunc('day',addday(-2,GETDATE()))
    • 43 downloads
    • 16 Dec 2021
  • Node Level Events

    I found this on my server, so I must have set it up sometime in the past. I figured that I'd share it. It's designed to be placed on a Node Details or Application Details page so it inherits the NodeID from the page.
    • 56 downloads
    • 15 Dec 2021
  • Asset Inventory: VMWare CI's for VCenter, Cluster, Data Center, Datastore, hosts and relationships

    Asset Inventory: VMWare CI's for VCenter, Cluster, Data Center, Datastore, hosts and relationships
    • 93 downloads
    • 9 Dec 2021
  • Asset Inventory: Network Interfaces

    Inventory of network interfaces
    • 66 downloads
    • 9 Dec 2021
  • Asset Inventory: Network Devices (from NCM)

    Network device inventory from NCM
    • 60 downloads
    • 9 Dec 2021
  • Asset Inventory: Linux Servers

    Linux Servers with details from Server & Application Monitor .
    • 52 downloads
    • 9 Dec 2021
  • Asset Inventory: Windows Server

    Lists Windows Servers in Orion with details from SAM
    • 55 downloads
    • 9 Dec 2021