If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to REGISTER before you can post. To start viewing messages, select the forum that you want to visit from the selection below.
Ad Widget
Collapse
Can't get correct AND/OR combination in Action conditions
I think the AND/OR action condition calculation should be described as follows in the documentation:
Conditions of the same type are grouped and OR'ed together
Multiple groups are AND'ed together
The documentation is ambiguous as it doesn't address whether or not the order in which you add the action conditions has any effect:
For example this set of conditions (calculation type: AND/OR):
Host group = Oracle servers
Host group = MySQL servers
Trigger name like 'Database is down'
Trigger name like 'Database is unavailable'
is evaluated as
(Host group = Oracle servers or Host group = MySQL servers) and (Trigger name like 'Database is down' or Trigger name like 'Database is unavailable')
i.e. It's not obvious that if you added another Host group, it would not become:
(Host group = Oracle servers or Host group = MySQL servers) and (Trigger name like 'Database is down' or Trigger name like 'Database is unavailable') and (Host group = <New Host group>)
as opposed to the actual behaviour:
(Host group = Oracle servers or Host group = MySQL servers or Host group = <New Host group>) and (Trigger name like 'Database is down' or Trigger name like 'Database is unavailable')
Agreed.
Myself, I'm not a fan of the Actions conditions setup interface, looks a little rough around the edges,
hope they give it some love in a next subrelease.
Comment