This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

HTTPS monitor component URL variable?

Is there a way to use the URL of an HTTP or HTTPS monitor component in an alert?  I don't see it on any of the guides.  If not, is there a way to utilize ${UserNotes} or ${UserDescription} in the URL field?  That way I can make the template with one of those as the URL, which would in turn let me use that in the alert.  Curious about other people's approaches for monitoring their websites.  Making a template for every site you want to monitor doesn't seem very template-like.

Parents
  • If your alert is on the Application Component (and not on the parent Application), this macro will get the URL:

    ${N=SWQL;M=SELECT Value from Orion.APM.ComponentSetting where ComponentID=${N=SwisEntity;M=ComponentID} and Key='Url'}

  • I'm attempting the response above but am unable to get the variable to populate; ${N=SwisEntity;M=ComponentID} seems to be populating to the correct ID. So i'm getting:

    ${N=SWQL;M=SELECT Value from Orion.APM.ComponentSetting where ComponentID=8090 and Key='Url'}

    On the database and I don't see where I can get this value; note I am alerting on component under trrigger actions

  • Did you override the template value for the URL? If you're using the default URL value from the template (https://${IPAddress}, I think), there may not be anything to retrieve.

  • It is set to an actual URL.

    I wonder if its the trigger settings, I'm alerting on component, scope of the alert being "Component" then Instance 'is' 9 objects (the 9 each being a component that makes up the application), actual trigger being "application" status is "down"

    When I query the DB for the component ID [dbo].[APM_ComponentSetting] it does not exist, is there anywhere else it may be?

Reply
  • It is set to an actual URL.

    I wonder if its the trigger settings, I'm alerting on component, scope of the alert being "Component" then Instance 'is' 9 objects (the 9 each being a component that makes up the application), actual trigger being "application" status is "down"

    When I query the DB for the component ID [dbo].[APM_ComponentSetting] it does not exist, is there anywhere else it may be?

Children
  • Hmm. I created a new component alert that uses this macro to get the Url:

    ${N=SWQL;M=SELECT Value from Orion.APM.ComponentSetting where ComponentID=${N=SwisEntity;M=ComponentID}  and Key='Url'}

    I set the alert message to:

    The URL is ${N=SWQL;M=SELECT Value from Orion.APM.ComponentSetting where ComponentID=${N=SwisEntity;M=ComponentID}  and Key='Url'}

    and got the result:

    The URL is https://${IP}:${PORT}/login

    which is correct for my test node/app/component.