Menu

#2752 event not fired if value disappears and reappears in next run

disman
open
nobody
None
5
2016-10-24
2016-10-24
No

Version used: 5.7.3

I am running a monitor on an OID with multiple values.
If one of the values disappears in one run and then reappears in the next, then the value stays stuck as unarmed and the monitor event never fires. If the value is missing for two runs the issue does not occur. Also if the value is the last in the list the issue does not occur.

Looking at the code in mteTrigger.c (around line 350), a dummy object is created with an OID when that OID has just disappeared. However the armed flags value is not copied. Copying the armed flags to the new dummy object seems to solve the issue.

Can you confirm this fix makes sense here or is there a reason the armed flags should not be copied to the dummy object?

Discussion


Log in to post a comment.