<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Old message, but I had the same problem. check_jmx  was built using Integer's for numbers and the Java Integer type is not able to handle values larger than 2^31-1(2147483647.) When you pass a value larger than this NumberFormatException is thrown. I have no idea who the original author is, but the source code was with the bundle I downloaded so I've updated it to use a Long rather than an Integer and values up to 2^63-1 are now supported.</div><div><br></div><div>I have uploaded the patched version to NagiosExchange at <a href="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F3002.html;d=1">http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F3002.html;d=1</a></div><div><br></div><div>Hope it helps.</div><div><br></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Adam Serediuk</div><div><a href="mailto:serediuk@gmail.com">serediuk@gmail.com</a></div><div><br></div></div></div></div><div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: verdana; line-height: 14px; ">> This works:<br>> [nagios@monitor1 libexec]$ ./check_jmx -U<br>> service:jmx:rmi:///jndi/rmi://server:9000/jmxrmi -O<br>> java.lang:type=Memory -A HeapMemoryUsage -K used -w 2147483647<br>> <br>> JMX CRITICAL HeapMemoryUsage.used=-1942171464<br>> <br>> But this doesn't:<br>> [nagios@monitor1 libexec]$ ./check_jmx -U<br>> service:jmx:rmi:///jndi/rmi://server:9000/jmxrmi -O<br>> java.lang:type=Memory -A HeapMemoryUsage -K used -w 2147483648<br>> <br>> JMX UNKNOWN For input string: "2147483648" Usage: check_jmx -help<br>> <br>> Does anyone have source code for jmxquery.jar? Or perhaps a newer<br>> version that can cope with larger heap size?</span></div><div><br></div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br></div></div></div></span></div></body></html>