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

Raise alerts for volume/brick status change. #288

Merged
merged 2 commits into from
Jun 7, 2017

Conversation

nnDarshan
Copy link
Contributor

This patch sends alerts when the status of volume/bricks
changes. Both from healthy to unhealthy and vice versa

tendrl-bug-id: #286
Signed-off-by: nnDarshan darshan.n.2024@gmail.com

@nnDarshan
Copy link
Contributor Author

@r0h4n @nthomas-redhat Please review
Have verified it

@nnDarshan
Copy link
Contributor Author

Have addressed all the comments in #287 here

This patch sends alerts when the status of volume/bricks
changes. Both from healthy to unhealthy and vice versa

tendrl-bug-id: Tendrl#286
Signed-off-by: nnDarshan <darshan.n.2024@gmail.com>
alert['time_stamp'] = tendrl_now().isoformat()
alert['alert_type'] = 'status'
severity = "info"
if curr_value == "Stopped":
Copy link
Contributor

Choose a reason for hiding this comment

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

please use lower case for string comparison

@r0h4n r0h4n merged commit b3e878b into Tendrl:develop Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants