Plugin: check-jmx can't handle value more than 1G for -w and -c options

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Plugin: check-jmx can't handle value more than 1G for -w and -c options

Post by Guest »

---------- Forwarded message ----------
From: Mahesh Kunjal
Date: Jul 15, 2007 8:08 AM
Subject: Plugin: check-jmx can't handle value more than 1G for -w and -c options
To: [email protected]


We run Java VMs with 3G heap. Looks like the check_jmx plugin can
handle only upto a value of 1G for cammand line option of -w and -c.

Sourcecode doesn't come with the plugin. I can volunteer to fix the
code. Where can i get the source code?

[root@scopslapm01 plugin]# ./check_jmx -U
service:jmx:rmi:///jndi/rmi://scproluap04-mgmt:9134/jmxrmi -O
java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J
used -vvvv -w 1099577209 -c 1246194688
JMX CRITICAL HeapMemoryUsage.used=2141276184{committed=3246194688;init=3246391296;max=3246194688;used=2141276184}


[root@scopslapm01 plugin]# ./check_jmx -U
service:jmx:rmi:///jndi/rmi://scproluap04-mgmt:9134/jmxrmi -O
java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J
used -vvvv -w 1099577209 -c 3000000000
JMX UNKNOWN java.lang.NumberFormatException: For input string:
"3000000000" connecting to java.lang:type=Memory by URL
service:jmx:rmi:///jndi/rmi://scproluap04-mgmt:9134/jmxrmiorg.nagios.ParseError:
java.lang.NumberFormatException: For input string: "3000000000"
at org.nagios.JMXQuery.parse(JMXQuery.java:250)
at org.nagios.JMXQuery.main(JMXQuery.java:74)
Caused by: java.lang.NumberFormatException: For input string: "3000000000"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:459)
at java.lang.Integer.parseInt(Integer.java:497)
at org.nagios.JMXQuery.parse(JMXQuery.java:242)
... 1 more
Usage: check_jmx -help





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked