can't attach tomcat probe to spectrum oneclick
search cancel

can't attach tomcat probe to spectrum oneclick

book

Article ID: 262257

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

In trying to gain insight into internal Spectrum OneClick tomcat metrics, I'm trying to deploy the tomcat probe to my Spectrum OneClick servers.

I'm getting an error message (below).    

Nov 17 10:11:02:947 [IC#0, com.nimsoft.nimbus.probe.application.jsr160.ConnectionHolder] Etter certificate+++(1500) , Naming problem, reason: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.InvalidNameException: Malformed IPv6 address at index 7: rmi://[127.0.0.1]:8008 [Root exception is java.lang.IllegalArgumentException: Malformed IPv6 address at index 7: rmi://[127.0.0.1]:8008]: Failed to retrieve RMIServer stub: javax.naming.InvalidNameException: Malformed IPv6 address at index 7: rmi://[127.0.0.1]:8008 [Root exception is java.lang.IllegalArgumentException: Malformed IPv6 address at index 7: rmi://[127.0.0.1]:8008]

I'm not specifying an ipv6 address.

Environment

Release : 20.4
tomcat 1.30

Resolution

There are several configuration changes to make. 
First, in the tomcat probe:

  1. Go to the tomcat raw configure ->properties ->Add new sections->section name "java_options"
  2. In the new section (java_options), add a new key, key =1 and value =  -Dcom.sun.jndi.rmiURLParsing=legacy
    https://api-broadcom-ca.wolkenservicedesk.com/attachment/get_attachment_content?uniqueFileId=On6NmbJ2VHzzP/8gVJVChg==
  3. Apply and ok
  4. Deactivate and activate Tomcat probe

Then, in the Spectrum side:

Please add the following to the OneClickService.conf file
jvm_opt=-Dcom.sun.jndi.rmiURLParsing=legacy
jvm_opt=-Dcom.sun.management.jmxremote.port=9004
jvm_opt=-Dcom.sun.management.jmxremote.ssl=false
jvm_opt=-Dcom.sun.management.jmxremote.authenticate=false

 

Additional Information

https://community.datastax.com/questions/13941/dsetool-javaioioexception-failed-to-retrieve-rmise.html

Also, it can help to increase the janitor memory limit in the probe from 100000 to 300000 as described in the below article:
https://knowledge.broadcom.com/external/article/221802/tomcat-with-a-new-configuration-is-throw.html