Uploading QueueMetrics data before peer demotes

Configuring synchronization, sensors, and optimizations
Post Reply
User avatar
CRM User
Posts: 172
Joined: Sun Nov 27, 2016 3:41 pm

Uploading QueueMetrics data before peer demotes

Post by CRM User » Wed Nov 30, 2016 5:43 pm

I want to ensure my demoting peer (switching from Active to Standby) uploads its QueueMetrics data before Asterisk stops. How can I do that?
Account for questions transferred from CRM system
User avatar
Telium Support
Posts: 227
Joined: Sun Nov 27, 2016 3:27 pm

Re: Uploading QueueMetrics data before peer demotes

Post by Telium Support » Wed Nov 30, 2016 5:45 pm

You should use the Asterisk pre-stop event handler to run qloaderd (which uploads queue_log data into a MySQL database for further analysis).

Create a bash script called asterisk.stop.pre and place it in the HAAst event’s directory. In that script call qloaderd with any parameters you need.
Post Reply