Author Topic: asterisk/mysql and queuemetrics in different servers  (Read 9714 times)

adolfo

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
    • Email
asterisk/mysql and queuemetrics in different servers
« on: June 23, 2008, 14:50:56 »
hello

I'm trying to monitorize with queuemetrics my asterisk server. Queuemetrics is installed a remote server (same net).
Asterisk , MySQL and Qloader are running in the same server.
When I access to queuemetrics web interface I recibe this message:
"Errore JDBC:java.sql.SQLException: Server connection failure during transaction. Due to underlying exception: 'java.net.ConnectException: Connection refused'. - Attempted reconnect 3 times. Giving up."

I execute JDBC Connection tester link and show the message:

Problem encountered:
Please set the correct server address, database name, user name and password to access the MySQL database.
To do so, edit the JDBC_URL property of WEB-INF/web.xml

Java Error:
java.sql.SQLException: Server connection failure during transaction. Due to underlying exception: 'java.net.ConnectException: Connection refused'. Attempted reconnect 3 times. Giving up.

I suppose that's mean the queuemetrics application can't access to the queuemetrics database created in asterisk server.
The permission access is granted at the way described in the installation manual.

I'm sure Qloaderd loads data in queuemetrics database

Somebody Knows how to solve this?
What is the right way to connect queuemetrics server to asterisk/mysql server?
Any help will be accept

My configurations are:

Queuemetrics:
In web.xml file

param-name>JDBC_URL</param-name>
            <param-value>jdbc:mysql://192.168.30.123/queuemetrics?autoReconnect=true&amp;zeroDateTimeBehavior=convertToNull&amp;jdbcCompliantTruncation=false&amp;user=queuemetrics&amp;password=javadude</param-value>
 
In configuration.propierties file:
default.queue_log_file=sql:P01
.....
cluster.trix.manager=tcp:admin:amp111@192.168.30.123
cluster.trix.queuelog=sql:P01
cluster.trix.monitored_calls=z:/qm_streamcall/server_trix
cluster.trix.callfilesdir=
cluster.trix.audioRpcServer=
cluster.trix.agentSecurityKey=
----------------------------------------------
Qloaderd config:
qloader=/usr/local/qloaderd-1.11/qloader.pl
partition=P01
queuelog=/var/log/asterisk/queue_log
logfile=/var/log/asterisk/qloader.log
-------------------------------------------------------
Qloader.pl
my $mysql_host = $options{h} || "127.0.0.1";
my $mysql_db   = $options{d} || "queuemetrics";
my $mysql_user = $options{u} || "queuemetrics";
my $mysql_pass = $options{p} || "javadude";

THANKS IN ADVANCE

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: asterisk/mysql and queuemetrics in different servers
« Reply #1 on: June 23, 2008, 16:57:11 »
Connection refused makes me think that MySQL is not answering on port 3306 and/or there is some firewall or binding rule taht prevents it to do so. Otherwise it would print something to state that your user was incotrrect.

adolfo

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
    • Email
Re: asterisk/mysql and queuemetrics in different servers
« Reply #2 on: June 24, 2008, 14:17:06 »
thank you.
I am going to check what you says.

adolfo

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
    • View Profile
    • Email
Re: asterisk/mysql and queuemetrics in different servers
« Reply #3 on: June 26, 2008, 17:06:47 »
OK , solved.

The problem was a incorrect  bind address in  my.cnf mysql's file.
Now Qmetrics is working fine.

Best Regads

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: asterisk/mysql and queuemetrics in different servers
« Reply #4 on: June 27, 2008, 16:47:29 »
That's fine.  ;D