Good afternoon,
We`ve been trying to create a trigger for a discovery item that checks its value is equal to a macro. And it worked fine with a “<>” comparison.
However, we have a new value to be checked, and would like to add it to the same macro, in a way that it would not matter if it is one, two or three values to be compared. It would like as a regex comparison.
Ex.:
Macro = (abc|cdb)
Item value = abc
Trigger = itemValue = macro [true]
Ex.2:
Macro = (abc|cdb)
Item value = jkl
Trigger = itemValue = macro [false]
Ex.3:
Macro = (abc|cdb)
Item value = cdb
Trigger = itemValue = macro [true]
Is it possible, or is there a better solution for this?
We`ve been trying to create a trigger for a discovery item that checks its value is equal to a macro. And it worked fine with a “<>” comparison.
However, we have a new value to be checked, and would like to add it to the same macro, in a way that it would not matter if it is one, two or three values to be compared. It would like as a regex comparison.
Ex.:
Macro = (abc|cdb)
Item value = abc
Trigger = itemValue = macro [true]
Ex.2:
Macro = (abc|cdb)
Item value = jkl
Trigger = itemValue = macro [false]
Ex.3:
Macro = (abc|cdb)
Item value = cdb
Trigger = itemValue = macro [true]
Is it possible, or is there a better solution for this?
Comment