You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
Very many thanks ..
Great work around .
Status Information: JMX OK - HeapMemoryUsage.used is -11359455923159021704
Performance Data: HeapMemoryUsage.used=-11359455923159021704
Original issue reported on code.google.com by
[email protected]
on 9 Aug 2010 at 8:06The text was updated successfully, but these errors were encountered: