Project

General

Profile

Tigase Monitoring Not Starting

Adegoke Obasa
Added almost 5 years ago

Hi

I'm using the latest version of tigase xmpp server and I want to use the monitoring tool provided by tigase to monitor the server. I've enabled monitoring by adding

--monitoring=jmx:9050,http:9080,snmp:9060

to my init.properties file.

I then tried connecting using the Server Monitoring tool by tigase

I get this error

Mar 09, 2014 4:33:31 PM tigase.stats.JavaJMXProxyOpt$StatisticsUpdater$1 run

WARNING: Connection refused: connect, domain.com, retrying in 10 seconds

Thanks in anticipation.


Replies (5)

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

Is the monitoring on the server side starting correctly (no issues or exceptions in the server logs)? Are you trying to connect on the same machine? Are the ports open?

Added by Adegoke Obasa almost 5 years ago

There are no firewall restrictions on the server and the server starts up with no errors. Also, no services are listening on ports 9050, 9060 and 9080. Shouldn't a service be started for the Tigase monitor ?

I tried to telnet and this is what I got.

[root@tigase---derby admin]# telnet localhost 9050
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@tigase---derby admin]# telnet localhost 9060
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@tigase---derby admin]# telnet localhost 9080
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@tigase---derby admin]#

Thanks in anticipation.

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

Yes, there should be a service listening on configured port. Can you share complete @logs/tigase-console.log@? Have you build Tigase yourself or use pre-build packages?

Added by Adegoke Obasa almost 5 years ago

Sorry I'm just replying.

I used the prebuilt packages. It's a vanilla build from the tigase website.

Here's the error in the tigase.console.log file

java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]
java.lang.ClassNotFoundException: tigase.management.MonitoringSetup not found by tigase-server [39]
        at tigase.conf.ConfiguratorAbstract.initMonitoring(ConfiguratorAbstract.java:975) [tigase-server.jar:5.2.0-b3447/48635d0a (2014-02-12/17:29:15)]

I think I know what's wrong, the question is how do I add the tigase extras jar to the classpath for it to run.

Thanks

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

I suggest using -dist-max package, which includes all required dependencies.

Alternatively you can get Tigase Extras sources, build it yourself and then put resulting jar in jars/ directory of your tigase-server installation.

    (1-5/5)