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

Feature Req: Add pipe to output perf data #10

Open
GoogleCodeExporter opened this issue Sep 14, 2015 · 3 comments
Open

Feature Req: Add pipe to output perf data #10

GoogleCodeExporter opened this issue Sep 14, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Adding a pipe to output perf data would be greatly helpful in graphing jmx 
stats.


Original issue reported on code.google.com by [email protected] on 9 Aug 2010 at 8:06

@GoogleCodeExporter
Copy link
Author

Having perfdata generated by this plug-in would help make trending easier to 
deploy.

Original comment by [email protected] on 23 Mar 2011 at 1:00

@GoogleCodeExporter
Copy link
Author

Hi, I have a small workaround for this. It's just a small linux script that 
calls the check_jmx script and parse the output to include the pipe character. 
Maybe this can be included in your shell script which calls the .jar file

- note you must enter the argument enclosed within “”. Example usage: 
./check_jmx_perfdata "-U service:jmx:rmi:///jndi/rmi://localhost:9003/jmxrmi -O 
Catalina:type=ThreadPool,name=http-8080 -A currentThreadCount"

- contents of check_jmx_perfadata:
#!/bin/sh

plugin_output=$(/root/monitoring/usr/local/nagios/libexec/check_jmx $1)

metric=$(echo $plugin_output | cut -d " " -f 4)
value=$(echo $plugin_output | cut -d " " -f 6)

echo "$plugin_output | $metric=$value"

Original comment by [email protected] on 13 Jun 2011 at 7:55

@GoogleCodeExporter
Copy link
Author

Very many thanks ..
Great work around .
Status Information: JMX OK - HeapMemoryUsage.used is -11359455923159021704
Performance Data:   HeapMemoryUsage.used=-11359455923159021704

Original comment by [email protected] on 23 Sep 2011 at 2:25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant