Author Topic: qloader stops reporting to quemetrics after 24 hours  (Read 3638 times)

antoniefalco

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
qloader stops reporting to quemetrics after 24 hours
« on: June 10, 2010, 06:08:54 »
Hello All,

I am currently experiencing a problem with qloader which stops reporting to queuemetrics, logged on agents and current active call in queues. The only temporary resolution thus far is to restart the qloader process. This resolves my issues for around 24 hours.

I have copied below an extract from qloaderd.log

Note: At 14:25 is when I restarted the qloader proccess.

[root@asterisk-pbx]# tail -2000f ./qloaderd.log
|Wed Jun  9 04:08:52 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 04:23:53 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 04:38:54 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 04:53:55 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 05:08:56 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 05:23:57 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 05:38:58 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 05:53:59 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 06:09:00 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 06:24:01 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 06:39:02 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 06:54:03 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 07:09:04 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 07:24:05 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 07:39:06 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 07:54:07 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 08:09:08 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 08:24:09 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 08:39:10 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 08:54:11 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 09:09:12 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 09:24:13 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 09:39:14 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 09:54:15 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 10:09:16 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 10:24:17 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 10:39:18 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 10:54:19 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 11:09:20 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 11:24:21 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 11:39:22 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 11:54:23 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 12:09:24 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 12:24:25 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 12:39:26 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 12:54:27 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 13:09:28 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 13:24:29 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 13:39:30 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 13:54:31 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 14:09:32 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 14:24:33 2010|Heart is still beating... Imported: 186 lines.
|Wed Jun  9 14:25:02 2010|QueueMetrics MySQL loader - $Revision: 1.17 $
|Wed Jun  9 14:25:02 2010|Partition P01 - PID 10136 - TZ offset: 0 s. - Heartbeat after 900 s.
|Wed Jun  9 14:25:02 2010|Now connecting to DB queuemetrics on 192.168.31.213 as user apbx with password aLuMiNApbx
|Wed Jun  9 14:25:02 2010|Ignoring all timestamps below 1275674548
|Wed Jun  9 14:25:02 2010|Loaded 1 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 2 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 3 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 4 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 5 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 6 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 7 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 8 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 9 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 10 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 11 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 12 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 13 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 14 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 15 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 16 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 17 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 18 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 19 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 20 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 21 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 22 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 23 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 24 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 25 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 26 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 27 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 28 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 29 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 30 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 31 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 32 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 33 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 34 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 35 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 36 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 37 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 38 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 39 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 40 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 41 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 42 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 43 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 44 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 45 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 46 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 47 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 48 lines so far...
|Wed Jun  9 14:25:02 2010|Loaded 49 lines so far...
|Wed Jun  9 14:25:20 2010|Loaded 50 lines so far...
|Wed Jun  9 14:25:40 2010|Loaded 51 lines so far...
|Wed Jun  9 14:25:43 2010|Loaded 52 lines so far...
|Wed Jun  9 14:40:44 2010|Heart is still beating... Imported: 52 lines.
|Wed Jun  9 14:42:26 2010|Loaded 53 lines so far...
|Wed Jun  9 14:42:26 2010|Loaded 54 lines so far...
|Wed Jun  9 14:42:27 2010|Loaded 55 lines so far...
|Wed Jun  9 14:42:27 2010|Loaded 56 lines so far...
|Wed Jun  9 14:42:28 2010|Loaded 57 lines so far...

mudslide567

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: qloader stops reporting to quemetrics after 24 hours
« Reply #1 on: June 10, 2010, 17:34:22 »
is your queue_log file is rolling over every day because that would cause this to happen exactly every 24 hours.

antoniefalco

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
    • Email
Re: qloader stops reporting to quemetrics after 24 hours
« Reply #2 on: June 11, 2010, 01:23:07 »
Yes, I do a daily log rotate.

Is there a way I can still rotate the log on a larger interval without affecting qloader.

The server has limited space due to being small Solid State Disks.


Edit: I have now put the below in /etc/logrotate.d/asterisk


/var/log/asterisk/messages /var/log/asterisk/*log {
   missingok
   rotate 100
   daily
   create 0640
   postrotate
       /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
       /etc/init.d/qloaderd restart > /dev/null 2> /dev/null   
endscript
}


« Last Edit: June 11, 2010, 06:37:50 by antoniefalco »

mudslide567

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
    • View Profile
Re: qloader stops reporting to quemetrics after 24 hours
« Reply #3 on: June 13, 2010, 16:05:46 »
change daily to weekly or monthly in the log file.  if you do choose to rotate less frequently, you will want to change the rotate parameter so it keep less of the past files.  for example:

/var/log/asterisk/queue_log{
   missingok
   rotate 5
   weekly
   create 0640 asterisk asterisk
   postrotate
       /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
   endscript
}

you might want to consider differentiating between log files so the queue_log is on a different rotation to all the other asterisk log files.  you could then omit the section for queue_log so that it never rotates at all if that is an attractive option for you.


QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: qloader stops reporting to quemetrics after 24 hours
« Reply #4 on: June 14, 2010, 10:01:18 »
You also need to restart qloaderd.