Author Topic: Re: "Agent status cannot be determined" on agent screen  (Read 4078 times)

yojarmye

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
I am using Queuemetrics version 1.6.0.1 and I am having the same problem.

In my case I have two asterisk (asterisk1/partition1 and asterisk2/partition2) that send the information through qloader a different server than where it was installed queuemetrics.
When an agent from the screen do a login or logoff, if I select in srv: asterisk1, the change in the agent's screen at once.
But if I do the login or logoff in srv: asterisk2, change agent on the screen takes about 1 minute.

I have reviewed the insert login / logoff in the table queuemetrics queue_log of both srv. Asterisk1 In the insert is immediate, but in the asterisk2 takes about 1 minute.
In both "qloader.pl" parameters are the same, minus the "my $ partition ="

So, what can be the cause of the delay in updating the information of asterisk2 against asterisk1?

I copy of the content in qloader.pl:
my $log_every_num = 100;
my $log_queries   = 0;            # set to 1 to log all queries

my $timezone_offset  = 0 * 3600;  # in seconds
my $heartbeat_delay  = 15 * 60;   # in seconds
my $use_subqueue     = 0;         # 0 no; 1 yes
my $split_subq_name  = 0;         # 0 no; 1 yes - turn a subqueue name from 'xxx/yyy" to "xxx"
my $rewriteToAgent   = 1;         # 0 no; 1 yes
my @channelsToAgent  = ( 'Local', 'SIP' );
my $dbAgentRewrite   = 0;         # 0 no; 1 yes - rewrite according to rules in table qlog_rewrite

Thanks!!

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: "Agent status cannot be determined" on agent screen
« Reply #1 on: May 11, 2010, 15:59:00 »
Are you sure the servers are time-aligned over NTP?

yojarmye

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: "Agent status cannot be determined" on agent screen
« Reply #2 on: May 12, 2010, 09:16:54 »
I updated the date of all servers:
#Ntpdate es.pool.ntp.org
but the problem still occurs.

I would point out a detail not know if it matters. The server it takes to update the information, asterisk2, is with 1 hour less than the server where queuemetrics stay. This is so that it asterisk2 is in another time zone.
Queuemetrics server and Asterisk1 and server are in the same zone.

Regards

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: "Agent status cannot be determined" on agent screen
« Reply #3 on: May 12, 2010, 09:44:48 »
You should have all Asterisk servers in the same time zone; if not data may be off.

yojarmye

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: "Agent status cannot be determined" on agent screen
« Reply #4 on: May 12, 2010, 10:09:03 »
I fail to understand why, but now immediately updates the state of the agent in the agent's screen, when this status changes in asterisk2.

I suppose there will ntpdate solved the issue.

Thanks for the help!

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: "Agent status cannot be determined" on agent screen
« Reply #5 on: May 14, 2010, 12:04:25 »
 ;D