Page 1 of 1

check_jmx command not found

Posted: Thu Mar 03, 2016 10:01 am
by dlukinski
Hello Nagios XI support

We are using this manual:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

To test check_jmx plugin against our JMX-enabled application
For some reason it refuses to work in this example (while trying to access JMX at 10.102.35.102:50500)

[root@fikc-nagxidev01 libexec]# ./check_jmx -U service:jmx:rmi///jndi/rmi://10.102.35.102:50500/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -w 4248302272 -c 5498760192
./check_jmx: line 6: java: command not found

What wpould be the next troubleshooting step?
Thank you

Re: check_jmx command not found

Posted: Thu Mar 03, 2016 10:13 am
by rkennedy
As check_jmx depends on java, you'll need to have it installed on your system.

Check out your environmental variables if you do have it installed, otherwise you'll need to install java.

Re: check_jmx command not found

Posted: Thu Mar 03, 2016 10:29 am
by dlukinski
rkennedy wrote:As check_jmx depends on java, you'll need to have it installed on your system.

Check out your environmental variables if you do have it installed, otherwise you'll need to install java.
You means installed on XI or on servers we are trying to monitor?
We run XI appliance 5.2.3, servers we are trying to monitor do run Java

Re: check_jmx command not found

Posted: Thu Mar 03, 2016 11:24 am
by hsmith
https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-JMX-with-Nagios-XI.pdf wrote:Prerequisites
This document assumes you have the following:

A server running JMX that is configured to support remote access

Nagios XI server with Java installed and a network route to the JMX server
Your XI server will need to have Java installed.

Re: check_jmx command not found

Posted: Thu Mar 03, 2016 2:16 pm
by dlukinski
hsmith wrote:
https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring-JMX-with-Nagios-XI.pdf wrote:Prerequisites
This document assumes you have the following:

A server running JMX that is configured to support remote access

Nagios XI server with Java installed and a network route to the JMX server
Your XI server will need to have Java installed.

Is there document about installing Java on XI appliance?
- lmiltchev once told me that Java is already installed on XI appliance

Re: check_jmx command not found

Posted: Thu Mar 03, 2016 3:07 pm
by rkennedy
As you have created a ticket for this, I'm going to close this thread out. We will continue there.