Ad Widget

Collapse

Trigger for a "Stuck" Message Queue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rcollier
    Member
    • Sep 2013
    • 53

    #1

    Trigger for a "Stuck" Message Queue

    I have several queues that I am currently monitoring in Zabbix. As of right now I have two types of triggers configured.

    1. The first type of trigger simply alerts our staff when a queue has passed a certain threshold.

    2. The second trigger notifies us when a queue has become stuck.

    The second trigger is much more interesting. As of right now the trigger is configured like this
    Code:
    {host:item.min(period)}#0
    which simply checks if the queue has had messages in it for the past hour. If the queue depth never reaches zero, an alert will be sent.

    The problem with that trigger is that some queues will take an hour to process 20k or so messages. The alert shouldn't be sent in those cases because the queue depth is continuing to decrease.

    I've read this thread. I've created a calculated item and that works fine, but I'm having issues with the trigger.

    What I want is this:

    1. A trigger that will send an alert if the queue depth has increased the past hour but never decreased. The trigger should also send an alert if the queue has been stuck a certain depth for the past hour.

    Any ideas? The triggers in the thread I linked don't seem to work.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Well, ad-hoc I'd try a Trigger expression like this:
    Code:
    {host:item.last()}>0&{host:item.last()}>({host:item.prev()}-1)
    And an Action operation starting at step 2 with a step duration of 3600.

    If I'm not wrong the Trigger should fire, when error queue increases or stucks between subsequently checks.
    When Trigger is in PROBLEM state for step duration, then a proper action operation is triggered.

    Comment

    Working...