Open for Voting

If...Then...Else statements for Alert Manager

I think it would make managing alerts much easier if we were able to build an if-then-else statement into the actions for an alert.

My example...

I create an alert for a particular set of criteria, but I want to enable a different response depending on who is responsible for solving the issue.

IF Node.Owner = "Server" THEN do(Action1)

IF Node.Owner = "Network" THEN do(Action2)

I gather it would be fairly complicated to implement, but I think it would really improve the alert manager.

Parents
  • If you mean to send an email to a different person depending on the type of device then there's another way.  Create a node custom property called 'Contact_Email' (or something similar) and populate it with comma-delimited email addresses (i.e., foo@example.com,bar@example.com).  Create your alert, but in the 'To:' field of the email put ${Node.Contact_Email}.  That way, when the email is sent, whoever you have set for the contact_email for that node will get the message.

    What other actions did you have in mind?

  • While I see that that would solve my problem, considering we still don’t have pre-defined custom variable selections, etc… I think it would be pretty messy to set it up that way.

    I think there are a number of uses for if..then..else in alerting that would be helpful.

  • Easy there, tiger. I upvoted your suggestion - was just offering you an alternative while you wait. emoticons_wink.png

Comment Children