Page 1 of 1

check_jmx HeapMemoryUsage works from CLI, not from XI

Posted: Wed Dec 03, 2014 12:17 pm
by vAJ
Having an issue getting check_jmx to work for HeapMemoryUsage (btw, works just fine for ThreadCount)

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_jmx -U service:jmx:rmi:///jndi/rmi://aus02nqhpjava01.dev.vvvv.com:3000/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 500000000 -c 700000000
OUTPUT: JMX OK HeapMemoryUsage.used=291447856{committed=399286272;init=47246144;max=731840512;used=291447856} | committed=399286272; init=47246144; max=731840512; used=291447856;
But when XI executes the check, I get:

Code: Select all

JMX CRITICAL “java.lang:type=Memory” connecting to “java.lang:type=Memory” by URL service:jmx:rmi:///jndi/rmi://aus02nqhpjava01.dev.vvvv.com:3000/jmxrmijavax.management.InstanceNotFoundException: “java.lang:type=Memory” at com.sun.jmx.inte
Can't figure out why this isn't working...

-Andrew

Re: check_jmx HeapMemoryUsage works from CLI, not from XI

Posted: Wed Dec 03, 2014 1:35 pm
by vAJ
Ugh. Sometimes you just have to take things into notepad to find that your doublequotes are bad...

Please close.

Re: check_jmx HeapMemoryUsage works from CLI, not from XI

Posted: Wed Dec 03, 2014 1:39 pm
by slansing
Hey, it happens to all of us. :)