Skip to content
New issue

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

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

Already on GitHub? # to your account

FIM System tests: 0202 - Realtime monitoring #549

Merged

Conversation

spothound
Copy link
Contributor

Closes #531

Ready for review. I'm getting a lot of error generating alerts with realtime when the scan frequency is high. I'm investigating it but meanwhile, you could review the changes.

Best regards.

Copy link
Contributor

@jm404 jm404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job @grg121!

I have some suggested changes, please check them.

Best regards,

Jose

verify_alerts_json.py -i {{ item.path }} -e {{ event }}
-o {{ missing_alerts_json_path }}
verify_alerts_json.py -i {{ item.path }} -e {{ event }}
-o {{ missing_alerts_json_path }} {{ alert_verification_extra_arguments }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{ elastic_verification_extra_arguments }} is also an alert verification, please consider changing it to {{ json_verification_extra_arguments }} as it's related to alerts.json` verification

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But what if those scripts accept different parameters in the future?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The {{ elastic_verification_extra_arguments }} will accept multiple parameters and will be declared using set_fact. E.G:

set_fact:
   elastic_verification_extra_arguments: "-s 60 -w True"

@jm404 jm404 linked an issue Mar 2, 2020 that may be closed by this pull request
5 tasks
@jm404 jm404 marked this pull request as ready for review March 2, 2020 11:20
Copy link
Contributor

@jm404 jm404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@jm404 jm404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jm404 jm404 merged commit 858939b into feature-493-create-test-scenarios Mar 2, 2020
@jm404 jm404 deleted the feature-531-realtime-scenario branch March 2, 2020 20:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FIM System tests: 0202 - Realtime monitoring
2 participants