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

Does this still work? #12

Open
danny13-33 opened this issue Mar 8, 2018 · 1 comment
Open

Does this still work? #12

danny13-33 opened this issue Mar 8, 2018 · 1 comment

Comments

@danny13-33
Copy link

Testing out the plugin and nagios is not accepting the input. Constantly getting 'CRITICAL: Can't get GC statistics' though I've edited the sudoers file. Any suggestions?

@cookie33
Copy link
Contributor

It fails here:

gc=$(jstat -gc $pid | tail -1 | sed -e 's/[ ][ ]*/ /g')
if [ -z "$gc" ]; then
    echo "CRITICAL: Can't get GC statistics"
    exit 2
fi

Is it able to do jstat -gc at all. Is it installed on the system?

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

2 participants