Unable to connect to Tomcat server
search cancel

Unable to connect to Tomcat server

book

Article ID: 135642

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Tomcat server is running and able to access from the hub, however the probe is not able to connect, getting the following error.

Host Response

Failed to query the host <ip address >

The reason for this could be one of many, please check:

- the hostname or ip address is illegal or wrong

- the port number is wrong

- the handlerclass is wrong

Environment

Release : 9.1.0

Component : UIMTOM : UIM - TOMCAT

Resolution

Validate the hostname and port.

Validate the JMX JAVA_OPTS is enabled for Tomcat

Unix:

JAVA_OPTS="-Dcom.sun.management.jmxremote.port=9050 \

-Dcom.sun.management.jmxremote.ssl=false \  

-Dcom.sun.management.jmxremote.authenticate=false"  

export JAVA_OPTS

Windows:

SET JAVA_OPTS=-Dcom.sun.management.jmxremote.port=9050 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false

If you are using Windows, it is easiest to set this in the Tomcat properties (Tomcat8w.exe):

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/tomcat-tomcat-server-monitoring/tomcat-preconfiguration-requirements.html


Use the JMX port in the probe configuration:

 

Screenshot from 2019-08-05 10-32-36.png