Jboss/wildfly jmx errro

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
eSailVite
Posts: 22
Joined: Thu Feb 14, 2019 2:18 am

Jboss/wildfly jmx errro

Post 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?
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Jboss/wildfly jmx errro

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
eSailVite
Posts: 22
Joined: Thu Feb 14, 2019 2:18 am

Re: Jboss/wildfly jmx errro

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Jboss/wildfly jmx errro

Post by cdienger »

Corrected my last post. Please make the change and test again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
eSailVite
Posts: 22
Joined: Thu Feb 14, 2019 2:18 am

Re: Jboss/wildfly jmx errro

Post by eSailVite »

Now I have another error

Error: Could not find or load main class GenericASCheck

:-(
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Jboss/wildfly jmx errro

Post 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).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
eSailVite
Posts: 22
Joined: Thu Feb 14, 2019 2:18 am

Re: Jboss/wildfly jmx errro

Post 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:'
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Jboss/wildfly jmx errro

Post 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)?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
eSailVite
Posts: 22
Joined: Thu Feb 14, 2019 2:18 am

Re: Jboss/wildfly jmx errro

Post 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)
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Jboss/wildfly jmx errro

Post by cdienger »

Is /usr/local/nagios/libexec/check_jvm.jar available? What is the output of "ll /usr/local/nagios/libexec/check_jvm.jar" ?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked