check_jmx command not found

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

check_jmx command not found

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_jmx command not found

Post 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.
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: check_jmx command not found

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_jmx command not found

Post 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.
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: check_jmx command not found

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_jmx command not found

Post by rkennedy »

As you have created a ticket for this, I'm going to close this thread out. We will continue there.
Former Nagios Employee
Locked