DX Unified Infrastructure Management

Expand all | Collapse all

How to get number of messages queued in a queue programmatically ?

  • 1.  How to get number of messages queued in a queue programmatically ?

    Posted Jan 19, 2017 05:56 AM

    Hi all,

     

    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.

     

    Regards,

    Abhishek Tiwari



  • 2.  Re: How to get number of messages queued in a queue programmatically ?

    Posted Jan 19, 2017 06:13 AM

    A LUA example can be found at: https://communities.ca.com/docs/DOC-231169435



  • 3.  Re: How to get number of messages queued in a queue programmatically ?

    Broadcom Employee
    Posted Jan 19, 2017 09:01 AM

    Might want to check out QueueCheck LUA script v2.2