Skip to content

Conversation

@pnedkov
Copy link

@pnedkov pnedkov commented Apr 1, 2017

Before the fix:
# ./check_mongodb.py -H mongodb-primary -A replication_lag_percent -W 50 -C 75 -u user -p pass
OK - This is the primary.

# ./check_mongodb.py -H mongodb-secondary -A replication_lag_percent -W 50 -C 75 -u user -p pass
CRITICAL - General MongoDB Error: name must be an instance of basestring

After the fix:
# ./check_mongodb.py -H mongodb-primary -A replication_lag_percent -W 50 -C 75 -u user-p pass
OK - This is the primary.

# ./check_mongodb.py -H mongodb-secondary -A replication_lag_percent -W 50 -C 75 -u user -p pass
OK - Lag is 0 percents

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.

1 participant