Project

General

Profile

Remote server monitoring using JConsole

Peter Rajcani
Added over 3 years ago

I am trying to set up remote monitoring of the Tigase server using JConsole. I have completed all the prerequisite steps as described in

http://docs.tigase.org/tigase-server/snapshot/Administration_Guide/webhelp/setUpRemoteMonitoring.html

My init.porperties has monitoring enabled:

--monitoring=jmx:9050,http:9080

The monitoring port (9050) is exposed through firewall and I can connect to it via telnet. I have added the monitor user / password to jmx.access and jmx.password files:

jmx.access:

monitor readonly

jmx.password:

monitor tigase

However I am unable to connect to the server on 9050 port using the monitor user / password. Does the monitor user have to be explicitly created using HTTP API? Are there other settings that I am missing?

I have downloaded and installed the jdmkrt.jar file as specified in the documentation and we are running Tigase 7.0.0 b3736


Replies (2)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

What error JConsole gives? Or it just times out? Can you try using Tigase Monitor It's possible, that explicitly configuring JMX IP could help: https://projects.tigase.org/projects/tigase-server/wiki/JMX.

Added by Peter Rajcani over 3 years ago

I got the JConsole and Tigase monitor working. What was missing was the setting in the tigase.conf file to set the JMX IP address:

JMX_REMOTE_IP="-Djava.rmi.server.hostname=ip_address”

I also needed to add the admin user to jmx.access and jmx.password files with read-write privileges and use admin credentials to log into JConsole.

    (1-2/2)