Author Topic: queue_log rotation question  (Read 2376 times)

matts

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
queue_log rotation question
« on: January 31, 2011, 23:37:04 »
I'm in the process of installing a QueueMetrics trial and have run into an issue with queue_log rotation.

Background info:
Running a Pbxact server (FreePBX based on CentOS 5.4) with asterisk 1.4.32
QueueMetrics installed a separate server (CentOS 5.4)
qloaderd is installed on the asterisk server pushing all the data to the MySQL server on the QueueMetrics server.

Your install docs suggest disabling log rotation for the /var/log/asterisk directory which is out of the question on our server.

I found one forum post that suggests simply restarting the qloaderd daemon will work to keep data flowing; http://forum.queuemetrics.com/index.php?topic=137.0

My thought is to adjust the logrotate script as below to restart the daemon after the file is rotated.  Will that work and would there be any drawbacks using this method?

Code: [Select]
/var/log/asterisk/queue_log {
daily
missingok
rotate 30
notifempty
sharedscripts
create 0640 asterisk asterisk
postrotate
        /etc/rc.d/init.d/qloaderd restart > /dev/null 2> /dev/null
endscript
}

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: queue_log rotation question
« Reply #1 on: February 01, 2011, 16:43:26 »
yes this is exactly what we meant.  :D