QueueMetrics > QueueMetrics installation

queue_log rotation question

(1/1)

matts:
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: ---/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
}
--- End code ---

QueueMetrics:
yes this is exactly what we meant.  :D

Navigation

[0] Message Index

Go to full version