Hello, I'm encoutering a strange issue with a trigger. It triggered into problem state because of a true expression, but is not going back to resolved state. And I cannot find the reason...
The trigger (and the used item from the expression) is created by a trigger prototype from a discovery-rule in a template. It is using a scoped macro's as threshold, which is defined in the template as well.
Even more strange: when I clone the template-generated trigger into a new trigger at host-level (only change is prefix name with DEBUG), the new trigger stays 'OK'.
FYI: the trigger is just detecting unexpected increases of rowcounts in DB-tables. Implemented as "last() - max(28d,1d) > {$Threshold}"
I've also added calculated items to doublecheck the components in the expression. Here are the numbers:
last value: 2411523
max value previous 4 weeks before yesterday: 2621201
difference/result of expression (had to make 'numeric float', base item is 'numeric unsigned'): -209678
threshold: 172800
since " -209678 > 172800 " evaluates to false I would expect a recovery of the trigger.
zbx version is 3.4.2
Below you can find screenshot of the 'broken' template trigger and it's cloned version, as well as the config of the trigger prototype.


Hope someone can explain what's going on...
The trigger (and the used item from the expression) is created by a trigger prototype from a discovery-rule in a template. It is using a scoped macro's as threshold, which is defined in the template as well.
Even more strange: when I clone the template-generated trigger into a new trigger at host-level (only change is prefix name with DEBUG), the new trigger stays 'OK'.
FYI: the trigger is just detecting unexpected increases of rowcounts in DB-tables. Implemented as "last() - max(28d,1d) > {$Threshold}"
I've also added calculated items to doublecheck the components in the expression. Here are the numbers:
last value: 2411523
max value previous 4 weeks before yesterday: 2621201
difference/result of expression (had to make 'numeric float', base item is 'numeric unsigned'): -209678
threshold: 172800
since " -209678 > 172800 " evaluates to false I would expect a recovery of the trigger.
zbx version is 3.4.2
Below you can find screenshot of the 'broken' template trigger and it's cloned version, as well as the config of the trigger prototype.
Hope someone can explain what's going on...

Comment