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.

Using a Macro for email alerts in Advanced Alert Manager

So, I recently (yesterday) stumbled upon the fact that when I setup an advanced alert using Email as the Trigger Action I can use a Macro in the To section of the email. 

What this will allow me to do is create a custom property for my nodes called "Primary Contact" and put an email address in that field.  Then I when I setup alerts instead of using a specific email address I can just use "${Node.PrimaryContact}" so that when the alert is triggered it will send an email alert to whom ever is listed in the "Primary Contact" field on the node.

This is where my question comes in...

What will happen if an email tries to send but there is no data in the "Primary Contact" field?  I am concerned that this might break something so I wanted verification that this won't cause a problem.

Thanks in advance for any help on this!

Parents
  • Thanks for stumbling on this!  I had no idea it was that easy, now I can re-configure all my alerts. 

    During my testing, I found that not having an email address in the Primary Contact field didn't appear to break anything, just didn't send the email.

  • Glad I was able to help.  Thanks for your response it's good to hear that this doesn't seem to break anything.

    I am thinking that this could be pretty useful going forward.

  • byrona,

    Thanks for posting; it's always great to see community members help each other.  I haven't tested this myself, but jainsworth's observations sound right; it just won't send an email.

    -Craig

  • I guess my next question regarding this for SolarWinds would be; is this intended behavior and therefore will it stay around and not be removed at some point?

    I ask because I think this is awesome but would hate to build a bunch of stuff that relies on it only to have this functionality go away.

    Hey, just because I am paranoid doesn't mean they aren't watching!  = )

Reply
  • I guess my next question regarding this for SolarWinds would be; is this intended behavior and therefore will it stay around and not be removed at some point?

    I ask because I think this is awesome but would hate to build a bunch of stuff that relies on it only to have this functionality go away.

    Hey, just because I am paranoid doesn't mean they aren't watching!  = )

Children