Open for Voting
over 2 years ago

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?

Comment
  • 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?

Children