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

replset_state should check the state of all hosts #214

Open
BastianVoigt opened this issue Apr 19, 2017 · 1 comment
Open

replset_state should check the state of all hosts #214

BastianVoigt opened this issue Apr 19, 2017 · 1 comment

Comments

@BastianVoigt
Copy link
Contributor

BastianVoigt commented Apr 19, 2017

Recently we had a live fuckup where one of the MongoDB hosts (mongodb-1) changed its IP address and got kicked out of the replica set because it was hardwired there with its old IP address.
MongoDB-1 became PRIMARY on its own, while mongodb-2 and -3 elected a new PRIMARY and continued operation normally.

rs.state() on mongodb-1 showed no problems.
rs.state() on mongodb-2 showed mongodb-1 as unreachable / not healthy.

However, the icinga check "replset_state" was green on all three hosts although there was a big fuckup.
So I think replset_state check should consider the state of all hosts in the cluster, not just the "mystate".

BastianVoigt added a commit to BastianVoigt/nagios-plugin-mongodb that referenced this issue Apr 19, 2017
@BastianVoigt
Copy link
Contributor Author

Created a pull request #215

mzupan added a commit that referenced this issue Apr 19, 2017
Issue #214 - replset_state now checks the state of all hosts
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