Monitoring multiple Asterisk servers with QueueMetrics

This node refers to an EXPERIMENTAL time-limited feature present in QueueMetrics as of release 1.3.3. It is not meant to be used on production systems as it is simply EXPERIMENTAL at the moment. Use it at your own risk. A special licence will be needed once this feature will be officially released. All versions of QueueMetrics up to release 1.3.2 were meant to monitor one single instance of Asterisk, that is, you simply could not use them to “mix together” two or more queue_log files coming from different servers, as the results would have been unpredictable and quite possibly wrong. With 1.3.3, we add a new feature that makes it possible to consolidate multiple queue_log files, so that you monitor a “virtual queue” that is made up of a number of different queues residing on different physical servers. This will work for both historical and real-time reports, and is meant to be a major step forward making it very straightforward to build and monitor clustered, highly-reliable call-centers. To do this, we use the qloaderd process to upload data from different servers on different partitions on the same QueueMetrics database, and then we group the queue data together when running an analysis. This means we can leverage on the existing MySQL-storage infrastructure already in place and minimize the changes to the user interface needed to implement and run this feature. Setting up a sample system In this example, we imagine setting up a demo cluster made of three Asterisk servers, called A, B and C, while QueueMetrics and its MySQL database reside on server D. Continue Reading...



Debugging Qloaderd installation

..to be completed…. Checking the database can be written to Checking if data is present in the database

  1. connect to the QueueMetrics database using a MySQL shell or GUI
  2. issue the following query: select partition, queue, count(*) as n_records from queue_log group by partition, queue order by partition, queue
The result should look something like:
+-----------+------------------+-----------+
| partition | queue            | n_records |
+-----------+------------------+-----------+
| P003      | myqueue          |         9 |
| P003      | NONE             |       121 |
| P003      | queue-abc        |      2096 |
| P003      | queue-test       |      1341 |
| P003      | UNK              |        17 |
| P01       | qq-group         |     33000 |
| P01       | cust-rajax       |       204 |
| P01       | NONE             |      8139 |
| rt        | NONE             |      8064 |
| rt        | q1               |      9216 |
| rt        | q2               |      9216 |
+-----------+------------------+-----------+
11 rows in set (0.16 sec)
This report shows: Continue Reading...



Installing Ubuntu over HTTP

It is very easy to install a new machine with Ubuntu or any other Debian-based distro using the PXE boot loader and fetching the distro right from the network (or from a local mirror). You will need a separate machine - likely another Ubuntu - to set up a TFTP server and to configure the boot option using a local DHCP daemon. If you have another DHCP daemon you have to turn it off, as a DHCP daemon supporting TFTP boot must be provided. You can install both the DHCP daemon and the TFTP server on Ubuntu using the following commands:

apt-get install tftpd-hpa
apt-get install dhcp3-server
You will then have to fetch the correct Netboot image file from Ubuntu and update the configuration for both services. Continue Reading...



XML-RPC not working

If the XML-RPC interface of QueueMetrics is not working, i.e you get no meaningfiul response, you have to look up the catalina.out file in order to detect possible problems. Continue Reading...



Upgrading QueueMetrics licences

This recipe explains how to set a new activation key in QueueMetrics. This applies to temporary keys you may request from the web site or to official product activation keys. To request a temporarty unlimited licence for QueueMetrics, please fill in the form at http://queuemetrics.com/sendDemoLicence.jsp Once you have obtained it, to insert the key into QueueMetrics you have to: Continue Reading...



Installing Queuemetrics on Debian

It is quite easy to install QueueMetrics on Debian and Debian-derived systems, like the very popular Ubuntu: Continue Reading...



Installing QueueMetrics

This meta-node contains information on how to install QueueMetrics on different Linux systems: Continue Reading...



Removing Asterisk

It is sometimes necessary to completely remove Asterisk for one machine, for example because you need to install a newer version. Stop Asterisk and unload its modules The first thing you have to do is to stop Asterisk and unload the modules it may be using, e.g Zaptel’s. The following lines will brutally terminate Asterisk and kill all ongoing conversation. You have to kill safe_asterisk first, otherwise it will respawn Asterisk.

killall -9 safe_asterisk
killall -9 asterisk
Then you’ll have to unload the Zaptel drivers; check which ones are loaded by issuing a:
[root@zebru]# lsmod | grep zaptel
zaptel                214820  2 wcfxo,wctdm
crc_ccitt               2113  1 zaptel
This means that the submodules wcfxo and wctdm are loaded for zaptel. We’ll have to remove them in reverse order:
modprobe -r wcfxo
modprobe -r wctdm
..repeat for all zaptel submodules....
modprobe -r zaptel
If you repeat the *lsmod grep zaptel* command now, it should find nothing.
Delete Asterisk files By running the commands below, you will delete with no possible recovery an Asterisk system. First make a backup of things you’d like to keep, lik ethe log files or the configuration files. Continue Reading...