Author Topic: Read this first: running Realtime Live  (Read 10609 times)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Read this first: running Realtime Live
« on: April 15, 2007, 18:04:51 »
The realtime live support in QueueMetrics 1.3.4 is EXPERIMENTAL - use it at your own risk. We would like to hear from you on how to improve it and problems you should encounter.


The Realtime Live feature lets you monitor one or more Asterisk servers through their Manager interface, letting you know the state of queues, callers and agents in real-time. This data is loaded straight from Asterisk, so it should always reflect the current status, and is meant as a complement and not a replacement of the existing Realtime panel. This happens in the context of QueueMetrics' security model, so you can fine-tune who can see what on your system.

This feature is at the moment unrestricted in terms of monitored agents, but the one implemented in 1.3.4 is a time-limited version that will be improved in future versions.

Starting Realtime Live
First of all you have to configure all of your server to allow access from QueueMetrics through their Manager API. You should change the /etc/asterisk/manager.conf file in order to allow access to the server running QueueMetrics and to define an user/password pair for QM to connect.
The following example opens an account for a user called queuemetrics with password bingo:

Code: [Select]
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[queuemetrics]
secret=bingo
read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user

Once that is set up, you should edit the configuration.properties in QM in order to set up the members of the cluster:

Code: [Select]
# Cluster to poll for RT data
# list of pipe-separated members of the cluster
cluster.servers=aleph|trix

cluster.aleph.manager=tcp:queuemetrics:bingo@10.10.3.5
cluster.trix.manager=tcp:admin:amp111@10.10.3.100


The cluster.servers property tells QM this cluster is made up of two boxes which names are aleph and trix. We then create the connection strings, that look like tcp:username:password@servername. You can have as many cluster members as you like.

Now, install QM 1.3.4 and make sure your user has the security key RTLIVE.  Restart QueueMetrics.

To access the realtime live page, click on Realtime, then on the Live tab. That's it. You should see all activity (for selected queues, as always) on all members of the cluster.

In the case you should find some strange behaviour, you can see a raw copy of the data Qm is reading by accessing the page /queuemetrics/dbtest/mgr.jsp. If you report any error on this new functionality, make sure to add a printout of the mgr.jsp page so we can debug what went wrong.

Outbound queues
The new realtime live page is able to monitor outbound queues as well as inbound queues. To do this you have to use the new queueDial.agi script that comes with 1.3.4 and use the following calling syntax:

Code: [Select]
; dial con detection
exten => 426,1,Set(CDR(accountcode)=QDIALAGI)
exten => 426,2,DeadAGI(queueDial.agi|30|Local/21@sip|queue-out|Agent/101)

It is very important that the queueDial.agi is run through a channel marked QDIALAGI, as this is needed by QM in order to avoid pulling channel information out of all active channels (this means avoiding drowning Asterisk in manager queries on a busy system).

Limitations
There are a few known limitations to this page:
  • No wait/call time breakdown.
  • No agent call back extension shown
  • No coloured alarms at all
  • The layout of the page surely need improving
  • The page in in English only at the moment and cannot be translated

We expect to fix all those issues with time and your input.








tbelanger

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Read this first: running Realtime Live
« Reply #1 on: June 01, 2007, 21:01:05 »
This still isn't "Realtime"

It only updates every 15 seconds by default

Is there a monitor that updates in actual realtime.  Only interested in monitoring 1 server

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Read this first: running Realtime Live
« Reply #2 on: June 01, 2007, 21:07:13 »
Well, you can change the update period to suit your needs - as this is very lightweight, you could run it every 5 seconds, if that's needed. This would give you a 2.5 second expected delay on what is going on, and that's pretty realtime. 8)

Vide

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
    • Email
Re: Read this first: running Realtime Live
« Reply #3 on: November 09, 2007, 14:10:34 »
Has this changed in QM 1.4.x? Do I need to enable clustering to use this live function?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Read this first: running Realtime Live
« Reply #4 on: November 09, 2007, 17:16:43 »
No - you just set it up for one server to use it w/o licensing problems.

rhernandez31

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
    • Email
Re: Read this first: running Realtime Live
« Reply #5 on: May 04, 2009, 18:33:31 »
It is important that managers have all the permits?

read=system,call,log,verbose,command,agent,user
write=system,call,log,verbose,command,agent,user

thanx

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Read this first: running Realtime Live
« Reply #6 on: May 05, 2009, 14:44:21 »
They just need to query tle list of agents and queues and live calls.
they will need originate to do live monitoring, etc.