Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark alerts as triggered in DB when timer > threshold_timer #74

Open
extremeunix opened this issue Dec 24, 2016 · 0 comments
Open

Mark alerts as triggered in DB when timer > threshold_timer #74

extremeunix opened this issue Dec 24, 2016 · 0 comments
Labels
Milestone

Comments

@extremeunix
Copy link
Member

@evelynleems reported the following:

Current problem:
When citoengine receives multiple alerts of the same event within the same second, duplicated event actions are triggered.

How to replicate?

  • Create an event action.
  • Set Threshold Count to 1 and Threshold Timer to 60.
  • Use event_publisher.py to send multiple alerts to citoengine within a second.
  • You will notice the corresponding event action is triggered more than once.

Proposed Fix:

  • Reorder the if-else statement in def is_action_required(self): if self.timer > self.event_action.threshold_timer has to be the first condition.
  • Mark alert as triggered and save to database when threshold is reached (when timer exceeds configured threshold timing).
@extremeunix extremeunix added this to the 1.4.0 milestone Dec 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant