in More Search Options

Orion 8.1 Advanced Alerting variable from other DB tables?

Last post 07-11-2008 2:24 PM by Tuchux. 7 replies.
Page 1 of 1 (8 items)
Sort Posts:
  • 06-13-2007 12:01 PM

    • AaronK
    • Not Ranked
    • Joined on 11-27-2006
    • USA
    • Posts 11
    • Points 30

    Orion 8.1 Advanced Alerting variable from other DB tables?

    I need to populate an advanced alert email with data from another table in the database.  For example, I have an advanced alert on a custom MIB poller for an APC UPS.  This alerts when the temp gets over 85 degrees in an IDF.  When it triggers, I want it to send an email that says "IDF b28-1 is 87 Degrees"  where "b28-1" is a value in ${Nodes.Closet} and the "87" is stored in ${CustomPollerStatus.Rate}

    I can only seem to access data in the table holding the data that was alerted on.

     

    How can I pull data from a different table in the database?
     

    • Post Points: 3
  • 06-13-2007 6:49 PM In reply to

    • SteveSW
    • Top 100 Contributor
    • Joined on 09-29-2006
    • Posts 67
    • Points 164
    • SolarWinds Employee

    Re: Orion 8.1 Advanced Alerting variable from other DB tables?

    Assuming closet is set up as a custom property Try ${SQL: select Closet from Nodes where NodeID = ${NodeID}} instead of ${Nodes.Closet}

     For a non-custom property like 'Location' you can use ${Node.Location}.

    • Post Points: 5
  • 06-14-2007 12:15 AM In reply to

    • bashley
    • Top 500 Contributor
    • Joined on 11-27-2006
    • USA
    • Posts 22
    • Points 79

    Re: Orion 8.1 Advanced Alerting variable from other DB tables?

    I have tried the above mentioned SQL variable and wasn't able to get this to work.  For some reason, It did not like the embedded variable within the SQL variable and never worked.  I created a custome property for each node called Service and was able to access this field from within the email message using ${Node.Service}.  Even though this field was in the Nodes (plural) table, I was only able to access this value using the Node.Service macro variable.  If Closet is a custom property on Nodes, I would try ${Node.Closet} (singular) in the message.

    • Post Points: 3
  • 08-08-2007 4:29 PM In reply to

    • SteveSW
    • Top 100 Contributor
    • Joined on 09-29-2006
    • Posts 67
    • Points 164
    • SolarWinds Employee

    Re: Orion 8.1 Advanced Alerting variable from other DB tables?

    The SQL macro should work. I use it all the time. Make sure that you are including the colon and have a closing curly brace for each opening curly brace.

    • Post Points: 3
  • 08-10-2007 3:28 PM In reply to

    • WINNT
    • Top 75 Contributor
    • Joined on 06-22-2004
    • USA
    • Posts 99
    • Points 580

    Re: Orion 8.1 Advanced Alerting variable from other DB tables?

    This actually works! 

    • Post Points: 1
  • 09-15-2007 1:09 PM In reply to

    • WINNT
    • Top 75 Contributor
    • Joined on 06-22-2004
    • USA
    • Posts 99
    • Points 580

    Re: Orion 8.1 Advanced Alerting variable from other DB tables?

    I am running a SQL query in 8.5 and it is only returning the first result. Is anyone else experiencing this? 

    • Post Points: 3
  • 02-28-2008 12:34 PM In reply to

    • SteveSW
    • Top 100 Contributor
    • Joined on 09-29-2006
    • Posts 67
    • Points 164
    • SolarWinds Employee

    Re: Orion 8.1 Advanced Alerting variable from other DB tables?

    It is designed to only return the first record in the dataset. You should use the where clause to filter to the object you want. If you are interested in the number of records you would get you can get the count(*).

    • Post Points: 1
  • 07-11-2008 2:24 PM In reply to

    • Tuchux
    • Not Ranked
    • Joined on 01-11-2008
    • Pittsburgh
    • Posts 7
    • Points 7

    Re: Orion 8.1 Advanced Alerting variable from other DB tables?

    Have you ever used a custom property within a Advanced Alert Trap??? I have created a custom Trap for Advanced Alerts and would like to include a custom Property field.

    • Post Points: 1
Page 1 of 1 (8 items)