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 Check not reporting correctly #100

Open
draper7 opened this issue Aug 25, 2013 · 0 comments
Open

replset_state Check not reporting correctly #100

draper7 opened this issue Aug 25, 2013 · 0 comments

Comments

@draper7
Copy link

draper7 commented Aug 25, 2013

It looks like neither the warning nor critical states of the replset_state check are working correctly:

def check_replset_state(con, perf_data, warning="", critical=""):
    try:
        warning = [int(x) for x in warning.split(",")]
    except:
        warning = [0, 3, 5]
    try:
        critical = [int(x) for x in critical.split(",")]
    except:
        critical = [8, 4, -1]

    ok = range(-1, 8)  # should include the range of all posiible values
...

Example results (should be WARNING):

OK - State: 3 (Recovering)

I hacked this in to get it going:

def check_replset_state(con, perf_data, warning="", critical=""):
    warning = []
    # most of these states are critical imho
    critical = [0,5,3,8,4,-1]
    ok = range(-1,8) #should include the range of all posiible values
...

Thoughts?

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