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

.contrib.charmsupport.nrpe.NRPE.write to preserve old entries in the monitors key #312

Closed
auria opened this issue Apr 25, 2019 · 2 comments

Comments

@auria
Copy link
Contributor

auria commented Apr 25, 2019

When running the following, all entries on the monitors keymap will be overrid.

nrpe_setup = NRPE()
nrpe_setup.add_check(shortname='test', description='test desc', check_cmd='')
nrpe_setup.write()

The PR on #311 will preserve old entries provided nrpe_setup.remove_check(shortname='test') has not been called. Otherwise, it will remove the expected checks but it will preserve the rest.

@auria
Copy link
Contributor Author

auria commented Jul 1, 2019

This patch has been merged into master, but it has not been released yet.

@auria auria closed this as completed Jul 3, 2019
@auria
Copy link
Contributor Author

auria commented Jul 3, 2019

Released on 0.19.14

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

No branches or pull requests

1 participant