Closed as not planned
Closed as not planned
Description
Hello,
This is to reopen plan/discussion around an issue where CustomPluginMonitor behaves in an unexpected way (#566).
In short, when there are multiple rules for the same condition in configuration, the NPD will generate events for all of them causing the condition to flip-flop.
Current behavior
Described in #566
Suggestions/Ideas
As discussed in the original issue, I believe it would be reasonable for CustomPluginMonitor to behave in this way.
- Produce one event for each condition.
- If different rules for a condition return both
NonOK/True
andOK/False
, resolve to the "worst" case (condition isNonOK/True
). - If multiple rules evaluate to
NonOK/True
, current condition's reason/rule (NonOK/True
) takes precedence. If it just so happens that the particular reason/rule returnsOK/False
in current interval, we can take the first rule that evaluates toNonOK/True
.