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

Add option for specifying perfdata label #6

Open
niekgroot opened this issue Jan 13, 2017 · 0 comments
Open

Add option for specifying perfdata label #6

niekgroot opened this issue Jan 13, 2017 · 0 comments

Comments

@niekgroot
Copy link

niekgroot commented Jan 13, 2017

check_tomcat.py performance data label may contain characters causing incompatibility with nagiosgraph plugin:

OK connector:"http-nio-80" 1 threads busy of 200 |'conn "http-nio-80"'=1;2.0;10.0;0;200
OK rms is running|'sessions'=54

Adding an option (-l --label) to specify a performance data label can mitigate this issue:

perfdata=("'sessions'" if not args.label else args.label)+"="+application[2]

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