Facing issue with JMX probe. Getting below error.

Error
-------
 /opt/jmx/logs/wrapper.log


INFO   | jvm 1    | 2022/01/31 12:35:20 | Connection/SSL Problem; Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
INFO   | jvm 1    | 2022/01/31 12:35:20 |       java.net.SocketTimeoutException: Read timed out] (Service URL: service:jmx:rmi://broker.x.x.xx.:44445/jndi/rmi://broker.x.x.x:1100/karaf-amq1-broker-mq)


=======================================================================

[root@NM04 ~]# systemctl status jmxprobe.service
? jmxprobe.service - JMX MiniProbe
   Loaded: loaded (/etc/systemd/system/jmxprobe.service; enabled; vendor preset: disabled)
   Active: active (exited) since Mon 2022-01-31 13:23:12 +04; 20h ago
  Process: 48703 ExecStop=/opt/jmx/bin/JMXMiniProbe stop (code=exited, status=0/SUCCESS)
  Process: 48862 ExecStart=/opt/jmx/bin/JMXMiniProbe start (code=exited, status=0/SUCCESS)
 Main PID: 48862 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/jmxprobe.service
           +-48908 /opt/jmx/bin/./wrapper-linux-x86-64 /opt/jmx/etc/wrapper.conf wrapper.syslog.ident=JMXMiniProbe wrapper.pidfile=/opt/jmx/logs/JMXMiniProbe.pid wr...
           +-48910 java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.manageme...

Jan 31 13:23:12 SV-HQF-LEP-NM04 systemd[1]: Starting JMX MiniProbe...
Jan 31 13:23:12 SV-HQF-LEP-NM04 JMXMiniProbe[48862]: Starting JMXMiniProbe...
Jan 31 13:23:12 SV-HQF-LEP-NM04 systemd[1]: Started JMX MiniProbe.
[root@SV-HQF-LEP-NM04 ~]

Article Comments

Hi there,

First, please note that the JMX Mini Probe has been thoroughly developed but meant as proof-of-concept it is officially not supported, so troubleshooting will be limited.

The error message ("Failed to retrieve RMIServer stub") most likely occurs if firewalls block the dynamic ports which are used for this connection, see:
https://serverfault.com/questions/308662/how-do-i-fix-a-failed-to-retrieve-rmiserver-stub-jmx-error

Here, I'd recommend to follow the configuration hints listed in the article.

Beside that please confirm that you've enabled the JMX Remote access as described in step 2 (Prepare and start the JMX Mini Probe):
https://helpdesk.paessler.com/en/support/solutions/articles/76000065200-how-can-i-monitor-java-applications-via-jmx-with-a-prtg-mini-probe

Best,
Sebastian


Feb, 2022 - Permalink

JMX remote probe was working fine a few months back. Since we are not using PRTG for the last 2 months, didn't notice it stop working.

I have added a new JMX probe by stopping the existing one and it is working fine. But adding the devices to the probe is getting the Connection/SSL Problem.

I am not sure if it issues with the application side SSL error.

Is there any way to check this?

Can you suggest on this?


Feb, 2022 - Permalink

Hi,

Did you notice the following remark from this article:

If you get an SSL handshake failure, it might be necessary to choose the weakened SSL security option for the web server in the PRTG System Administration! (see Setup > System Administration > User Interface

Best,
Sebastian


Feb, 2022 - Permalink

Thanks


May, 2022 - Permalink