Author Topic: Queuemetrics says agents are logged out but they are not...  (Read 5880 times)

rgrignon

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
    • View Profile
    • Email
Queuemetrics says agents are logged out but they are not...
« on: February 26, 2010, 16:29:41 »
Here is the scenario:

1. Agents are all logged in via the Agent Page. Their status is accurate...
2. Asterisk Crashes or gets restarted
3. The following log is written to queue_log (and sent via qloaderd):
                                   1267176428|NONE|NONE|NONE|QUEUESTART|
 
4. At this point all of the agents status shows as "Logged Out" Even though they are still logged in...
5. I noticed that you are able to ignore QUEUESTART commands but changing this setting does not have any effect on my situation.

#Ignore QUEUESTART statements.
default.ignoreQueueStarts=false

I have tried
default.ignoreQueueStarts=true

and
default.ignoreQueueStarts=


You can replicate this issue by doing the following:

1. Log in via agent page
2. issue a "restart now" from the asterisk CLI
3. Refresh your agent page



QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Queuemetrics says agents are logged out but they are not...
« Reply #1 on: March 01, 2010, 09:21:43 »
This looks like a bug - which version of QM are you running? do you ise ADDFMMEBER or AGENTCALLBACKLOGIN to log on agents?
The behavior is expected to be configurable....

rgrignon

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
    • View Profile
    • Email
Re: Queuemetrics says agents are logged out but they are not...
« Reply #2 on: March 01, 2010, 14:39:34 »
QueueMetrics - 1.5.5

I use AddQueueMember

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Queuemetrics says agents are logged out but they are not...
« Reply #3 on: March 02, 2010, 08:31:10 »
Thanks - we are trying to reproduce the issue.
Will let you know how it goes.

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: Queuemetrics says agents are logged out but they are not...
« Reply #4 on: March 02, 2010, 16:16:25 »
Hello.

I've replicated the problem. I've inserted a bug in our internal bug tracker. You can refer it to #1002 for any other information.

Thank you and regards,
Marco Signorini.

marcos

  • Loway
  • Full Member
  • *
  • Posts: 138
  • Karma: 3
    • View Profile
Re: Queuemetrics says agents are logged out but they are not...
« Reply #5 on: April 19, 2010, 11:48:32 »
Hi,
In my test setup I can confirm QueueMetrics is working fine if you set:

default.ignoreQueueStarts=true
default.useRawAgentSessions=true

Then issue a QueueMetrics restart.
Tell me if you have problems after these configuration modifications.

rgrignon

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
    • View Profile
    • Email
Re: Queuemetrics says agents are logged out but they are not...
« Reply #6 on: April 26, 2010, 20:39:09 »
Still No good from my side and I even upgraded to the latest version...

Also, its not a "queuemetrics restart" that breaks it. It is a  "restart now" from the CLI (simulate a crash)

fredsi

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
    • Email
Re: Queuemetrics says agents are logged out but they are not...
« Reply #7 on: April 26, 2010, 21:08:35 »
Hi,

I have exactly the same problem. My supervisor page shows no agents logged on, but in CLI, I can see there are some agents logged on. I have to ask the agent do a remove member and add member again in order to show them in the supervisor page and their own page.

I have tried to change the configuration as suggested in previous post, but no luck. I don't see further posts. Is this problem fixed yet? BTW, I just installed QM recently, so it's a new version 1.6.0.1, and I'm using Elastix 1.5.2.

Another question, to add a single member, what level is it? Can I change that level? Thanks.


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Queuemetrics says agents are logged out but they are not...
« Reply #8 on: April 27, 2010, 16:21:07 »
Still No good from my side and I even upgraded to the latest version...

Also, its not a "queuemetrics restart" that breaks it. It is a  "restart now" from the CLI (simulate a crash)

This is interesting - what do you get on the queue_log? can you simulate a case for us?



fredsi

  • Newbie
  • *
  • Posts: 21
  • Karma: 0
    • View Profile
    • Email
Re: Queuemetrics says agents are logged out but they are not...
« Reply #9 on: April 27, 2010, 19:27:27 »
thanks for the reply.

here is the situation: last week, i was testing the system, I put a sip phone in DND (do not disturb), and call it, my asterisk got restart, and i saw segfault in the log file, all the agents in QM show logged off, but in CLI, they still logged in. Today, i tried to do the same thing, still got same segfault, and asterisk restarted, but the QM status didn't changed, weird -- sorry can't duplicate the issue now. queue-log showed bunch of add and remove member:

1272049998|1272049998.45|101|Local/4071@from-internal|REMOVEMEMBER|
1272050001|1272050001.47|106|Local/4071@from-internal|REMOVEMEMBER|
1272050004|1272050004.49|103|Local/4071@from-internal|REMOVEMEMBER|
1272050007|1272050007.51|104|Local/4071@from-internal|REMOVEMEMBER|
1272050023|1272050023.55|101|Local/4071@from-internal|ADDMEMBER|
1272050026|1272050026.57|106|Local/4071@from-internal|ADDMEMBER|
1272050029|1272050029.59|103|Local/4071@from-internal|ADDMEMBER|
1272050032|1272050032.61|104|Local/4071@from-internal|ADDMEMBER|
1272050272|1272050272.71|101|Local/4053@from-internal|REMOVEMEMBER|
1272050275|1272050275.73|102|Local/4053@from-internal|REMOVEMEMBER|
1272050294|1272050294.77|101|Local/4053@from-internal|ADDMEMBER|
1272050297|1272050297.79|102|Local/4053@from-internal|ADDMEMBER|

now i still see couple agents logged on in CLI, but didn't show in QM real-time page, i believe they didn't log off yesterday. is there way to log them off everynight automatically?

thank you.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Queuemetrics says agents are logged out but they are not...
« Reply #10 on: April 28, 2010, 10:42:48 »
Basically the problem here is that the system dies without writing anything.
In case this happens, tell your agents to log off and on again.