Search for:

Version 2 of 15.2.08, 13:31
Home - Latest - Tags - History - Referers

Create user - Lost password
Just visited:
AstRecipes»Installing Queuemetrics on PBX-in-a-Flash

And all is quiet....

AstRecipes » Installing Queuemetrics on PBX-in-a-Flash

PBX-in-a-Flash is Nerd Vittles ultra-cool version of a preconfigured Asterisk PBX based on CentOS 5. This makes installing QueueMetrics very easy, though the fact that the standard access port is already used by a different, preinstalled package makes a bit of hand-tweaking necessary.

Basic installation

wget -P /etc/yum.repos.d
yum install queuemetrics

This should manually download and install most of what you will need. When the intallation terminates, remember to follow the procedure to install the database as written on the last screen that you see; this will be something like:

cd /usr/local/queuemetrics/webapps/queuemetrics-1.4.3/WEB-INF/

The exact path will depend on the exact version of QM being installed. When asked for the system password type passw0rd (that's a zero, not a capital O) and when asked for the default password type javadude.

Now we have to change the port that QM will use for its connection: run the following command:
vi /usr/local/queuemetrics/tomcat/conf/server.xml

and look for a place that looks like the following:

<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<Connector port="8080"
           maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
           enableLookups="false" redirectPort="8443" acceptCount="100"
           debug="0" connectionTimeout="20000"
           disableUploadTimeout="true" />

Change the part that says Connector port="8080" to Connector port="8099". Save and exit.

Restart QueueMetrics by typing:
/etc/init.d/queuemetrics restart

Now we're almost ready but for one thing: the preconfigured firewall will block external access to port 8099.

You can do two things:
star Turn the firewall off altogether by issuing /etc/init.d/iptables stop
star Modify the firewall rules:
Enter the following command:
vi /etc/sysconfig/iptables

By the end of the file, before the final COMMIT statement, add the following lines:

# Allow connections to our QueueMetrics server
-A INPUT -p tcp -m tcp --dport 8099 -j ACCEPT

Restart iptables by issuing /etc/init.d/iptables restart so the new configuration can be picked up.

Now open your browser, go to http://serveraddress:8099/queuemetrics and you should see the login page. Log on as demoadmin password demo.

Other things you should do
star Turn off Asterisk queue_log rotation
star Request and install a demo licence

star star The good news: as both PBX-in-aFlash and TrixBox are based on FreePBX, the official TrixBox tutorials that you can find on QueueMetrics website apply just as well. star star

See also
star Nerd Vittles
star PBX in a Flash