3 Replies Latest reply: Jan 14, 2012 2:56 PM by aLTeReGo RSS

Alerts  with Stored Procedures? Possible or dreamland

JWERLEIN
Currently Being Moderated

I have created an alert that uses HTML, and SQL, one of the fields we are looking at has the potential to have one, or more elements.

If I have the DBA's write a stored procedure to parse out the elements we need can the alerts utilize the Stored Procedure.. and is there a special place that the alerts will pull from to find it?

 

thanks

  • Re: Alerts  with Stored Procedures? Possible or dreamland
    aLTeReGo
    Currently Being Moderated

    When creating an Custom SQL Alert you select which database table the alert will be querying such as Nodes, groups, volumes, etc. as pictured below. More information can be found in the Administrators guide

    http://www.solarwinds.com/NetPerfMon/SolarWinds/OrionCoreAGSettingTriggerConditionAdvancedAlert_3.htm

    • Re: Alerts  with Stored Procedures? Possible or dreamland
      JWERLEIN
      Currently Being Moderated

      Yes I understand the Alert trigger using SQL ( I am joining the NODES and the Volume Table..

      MY question is not the trigger but the alert:  CAN I use a stored procedure in the alert section.. I.E.  I want to parse out a field that has  more than one element , and some junk.. i want to make it readable.. for the Email..

      The Trigger condition is attached

      The Alert is Here:  -EMAIL

      The first part: BASIC  ORION

      ${Node.EmailTo}
      Maintainer:        ${Node.Maintainers}
      Name (Alias):      ${Node.ServerAlias} 
      Server Name:       ${Node.Caption}
      Server Class:      ${Node.Cls}
      System(s) :        ${Node.System}
      Applications:      ${Node.Applications}

      Second Part HTML with some SQL:
      <B>Alert: </B>
      <span style='color:red'> -Current  Volume space available:   ${VolumeSpaceavailable} / Critical Threshold:: 
      ${SQL:Select round((CT/1024/1024/1024),3) from volumes where fullname ='${fullname}'} GB


      System Link: \\${Node.caption}:${SQL:Select substring (caption,1,1) from volumes where fullname ='${fullname}'}

      Full Name:       ${FullName}
      Caption (V):     ${Caption}

      <span style='color:black'> Operations:
      •       For </span><B><U><span style='color:red'> Critical threshold disk space alerts  
        </b></span> </U> <span style='color:black'> very instructional message for operations...yada yada yada.
      • For </span><B><U><span style='color:Orange'> Warning threshold disk space alerts
        </b></span> </U> <span style='color:black'>very instructional message for operations...yada yada yada.
      • For </span><B><U><span style='color:blue'>  Normal threshold disk space alerts  
        </b> </U> </span> <span style='color:black'> very instructional message for operations...yada yada yada.


       <B> Details on this Node and the services can be found here:       </B></span>
       <B><U><span style='color:Blue'> Volume:  ${VolumeDetailsURL}       </b></span> </U> 
       <B><U><span style='color:Pink'> NODE:    ${Node.NodesDetailsURL}   </b></span> </U> 
       
      To Acknowlege this alert please click here: ${AcknowledgeURL}

      Alert Name: ${AlertName}

More Like This

  • Retrieving data ...