Installing QueueMetrics on a Debian or Ubuntu server


IMPORTANT: you should install QueueMetrics manually only if you are an expert user. Unfortunately this is a non-standard installation in a non-standard environment and Loway won't be able to support you with system administraton problems (tomcat configuration, database permissions and so on), although the support on the QueueMetrics software itself will remain available as always.

Being CentOS the natural habitat for Asterisk and almost all the Asterisk-related world, we always suggest to install QueueMetrics on a CentOS machine (or whatever CentOS flavour like FreePBX or Elastix), and if you ask us CentOS is always the better solution, even in a virtual machine. Usinig CentOS is not always possible though so your are free to install QueueMetrics in whatever system you prefer.

QueueMetrics is a Java servlet application that runs over a Tomcat server. Potentially you can run QueueMetrics on every Linux distribution and Operating System, Windows as well.

Although the procedure may change amongst the various different systems, conceptually it's ever the same: install all the dependencies and put QueueMetrics on the Tomcat server.

Given that we can't cover every possible Operating System in this tutorial, we'll use a Debian machine to show you the steps to get QueueMetrics working. Your part will be to adapt the steps to your system and situation and remember that filenames and directories may be different.

1 Installing Java

2 Installing MySQL

In Debian you can install it with a simple command and follow the procedure.

update-alternatives --install /usr/bin/java java /opt/jre1.7.0_40/bin/java

3 Installing Tomcat

  • Download Tomcat:
  • Unpack it and move it where you retain suitable. tar xfvz apache-tomcat-7.0.42.tar.gz
    mv apache-tomcat-7.0.42 /opt/tomcat-7.0.42
  • Add to the /etc/rc.local the following line, to make Tomcat start with the system: /opt/tomcat-7.0.42/bin/ &
  • Restart and point the browser to the server at port 8080 (e.g. to verify that Tomcat is working correctly.

4 Installing MySQL connector for Java

  • Download the MySQL-Java connector:
  • Unpack it and move it where you retain suitable. tar xzfv mysql-connector-java-5.1.26.tar.gz
    mv mysql-connector-java-5.1.26 /opt/mysql-connector-java-5.1.26

5 Installing QueueMetrics

  • Download QueueMetrics:
  • Unpack it and move it to the Tomcat's webapp directory tar xzfv QueueMetrics-13.04.2-trial.tar.gz
    cp queuemetrics-13.04.2 /opt/tomcat-7.0.42/webapps/queuemetrics
  • Copy the MySQL-Java connector in the QueueMetrics' WEB-INF/lib directory cp /opt/mysql-connector-java-5.1.26/mysql-connector-java-5.1.26-bin.jar /opt/tomcat-7.0.42/webapps/queuemetrics/WEB-INF/lib/mysql-connector-java-5.1.26-bin.jar
  • Restart Tomcat /opt/tomcat-7.0.42/bin/

Permalink - Back to FAQs

QueueMetrics Training