Page 1 of 2
Jboss/wildfly jmx errro
Posted: Tue May 14, 2019 10:12 am
by eSailVite
Hi,
I have update my nagiosxi and I have had a sorprise.. Jboss/wildfly are in de wizard
I have follow the documentation (
https://assets.nagios.com/downloads/nag ... ios-XI.pdf)
I would like use jmx. The error i have is "(No output on stdout) stderr: execvp(JAVA_ABS_PATH, ...) failed. errno is 2: No such file or directory"
I have connection with that server because from my computer and jvmconsole i can reach.
Can you help me, please?
Re: Jboss/wildfly jmx errro
Posted: Tue May 14, 2019 4:11 pm
by cdienger
Did you install java on the XI machine? Install it(in the guide) if you haven't and then change the check_xi_java_as command under Configure > Core Config Manager > Commands > _Commands, from:
Code: Select all
JAVA_ABS_PATH -Djava.class.path=$ARG2$:$USER1$/check_jvm.jar GenericASCheck $ARG1$
to:
Code: Select all
/usr/bin/java -Djava.class.path=$ARG2$:$USER1$/check_jvm.jar GenericASCheck $ARG1$
and then test again and let us know your results.
Re: Jboss/wildfly jmx errro
Posted: Wed May 15, 2019 2:05 am
by eSailVite
Hi cdienger,
Java was installed in XI. I have changed command but now i have a warning... (No output on stdout) stderr: Error: Could not find or load main class JAVA_ABS_PATH
Thank so much for your help
Re: Jboss/wildfly jmx errro
Posted: Wed May 15, 2019 9:47 am
by cdienger
Corrected my last post. Please make the change and test again.
Re: Jboss/wildfly jmx errro
Posted: Thu May 16, 2019 1:57 am
by eSailVite
Now I have another error
Error: Could not find or load main class GenericASCheck

Re: Jboss/wildfly jmx errro
Posted: Thu May 16, 2019 1:51 pm
by cdienger
Use the 'Run Check Command' found on the service and take a screenshot of the full command and results(make sure to remove sensitve info like creds, ip, etc... if needed).
Re: Jboss/wildfly jmx errro
Posted: Fri May 17, 2019 1:27 am
by eSailVite
Hi,
[nagios@nagiosxi ~]$ /usr/bin/java -Djava.class.path=/usr/local/nagios/libexec/jboss-client.jar:/usr/local/nagios/libexec/check_jvm.jar GenericASCheck -s service:jmx:remote+
http://192.168.3.14:9990 -u 'user' -p 'password' -t jboss -C 'MemorySimpleHeap,MemoryMetaspace,ProcessCPUUsage,SystemCPUUsage,Uptime' -w '3145728000,34359738368,50,70,1500000:' -c '4089446400,68719476736,70,90,300000:'
Re: Jboss/wildfly jmx errro
Posted: Fri May 17, 2019 2:12 pm
by cdienger
That appaers to be correct and works when I lab it up. What version of java is isntalled on the XI machine ( java -version)?
Re: Jboss/wildfly jmx errro
Posted: Mon May 20, 2019 1:08 am
by eSailVite
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
Re: Jboss/wildfly jmx errro
Posted: Mon May 20, 2019 1:21 pm
by cdienger
Is /usr/local/nagios/libexec/check_jvm.jar available? What is the output of "ll /usr/local/nagios/libexec/check_jvm.jar" ?