-
Problem report
-
Resolution: Fixed
-
Trivial
-
5.0.44rc1, 6.0.34rc1, 6.4.19rc1, 7.0.4rc1, 7.2.0alpha1
-
S24-W42/43, S24-W44/45
-
2
Problem description: In case if a host has both macro (for example {$TEST}) and macro with context (like {$TEST:regex:"x"}) and then this macro is used in trigger expression or in operational data, then it is possible that the context macro will be resolved with plain macro value in the event details form. To observe the problem, please follow the steps below.
Steps to reproduce:
- Create host with the following macros:
- {$TEST} => 33
- {$TEST:regex:"x"} => 15
- Create a trapper item with key "trap" on this host
- Create a trigger that will use the TEST macro in its operational data and in its function in the following way:
- Operational data =>Some text {$TEST:regex:x}
- {<host name>:trap.last()}>{$TEST:regex:x}
- Send a value to the trapper item, that would be higher then the value of the context macro but lower than the value of the plain user macro, for example 17
- Go to Monitoring => Problems and make sure that the problem is created
- Open event details of the created problem
- Check "Problem expression" and "Operational data" fields
Result: "Problem expression" and "Operational data" fields contain the value of macro {$TEST} even though it was the {$TEST:regex:"x"} macro that was resolved when creating the problem (33 instead of 15).
Expected:
The context macro should've been resolved in "Operational data" and "Problem expression" fields.
- mentioned in
-
Page Loading...