-
Notifications
You must be signed in to change notification settings - Fork 125
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
Utilities for configuring deferred restarts NRPE checks #669
Utilities for configuring deferred restarts NRPE checks #669
Conversation
* Added new NRPE plugin 'check_deferred_restarts.py'. Charms can use copy_nrpe_checks() to move it to the nagios plugin directory. * Added {add,remove}_deferred_restarts_check utilities for adding and removing the NRPE checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice patch; just a few thoughts/comments for your consideration.
""" | ||
Return a list of deferred events dicts from policy-rc.d files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's a touch picky, but please could you put the header of the docstring on the same line as the triple quotes (""")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. I didn't do the same in nrpe.py because the rest of the file has them on different lines. Let me know if you think I should change those as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No that's fine. I'm generally in favor of just gradually improving code, but to make those changes as well would probably just confuse the purpose of this PR. Thanks for make the changes!
charmhelpers/contrib/openstack/files/check_deferred_restarts.py
Outdated
Show resolved
Hide resolved
* nrpe.py * Add docstrings to the new functions. * check_deferred_restarts.py * Add copyright header. * Improve error handling for known error conditions. * Improve docstrings to add raised exceptions.
6d285db
to
0dd0638
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; thanks for the patch.
copy_nrpe_checks() as needed to move it to the nagios plugin directory.
removing the NRPE checks.