I have a requirement to proactively monitor the number of messages queued in a queue so that we can alert the team in advance if the rate of growth in a specific time duration exceeds predefined threshold. This would help in a scenario where an existing connection between an attach and equivalent get queue gets broken when the get queue gets disabled ( through any reason ).
Is there a way, through callback or any other way, to get the number of messages queued in a specific queue ? Assuming such option is there, I can then log the number of messages in a specific queue periodically in any local database and then alert on the count either through programmatically or through built-in CA UIM probes like sql_response.
A LUA example can be found at: https://communities.ca.com/docs/DOC-231169435
Might want to check out QueueCheck LUA script v2.2