dduenasd / check_tomcat.py

This is a nagios plugin to monitorize tomcat servers
Other
9 stars 18 forks source link

Add option for specifying perfdata label #6

Open niekgroot opened 7 years ago

niekgroot commented 7 years ago

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]