Ad Widget

Collapse

How to add zabbix[queue] logic to template to prevent page "storms"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fletch00
    Junior Member
    • Apr 2011
    • 13

    #1

    How to add zabbix[queue] logic to template to prevent page "storms"

    We are experiencing 100's of notifications sent out with "Server XYZ is unreachable"
    When in fact the Zabbix Queue is exploding and the notifications are bogus
    (This is zabbix 1.8.4 (we have a pending task to upgrade to 1.8.5))

    I need some help adding to the "Server {HOSTNAME} not reachable template":

    The goal is to prevent the page storms by having the zabbix trigger only alert if there are less than 2000 items in the queue:

    {Template_Windows:agent.ping.nodata(300)=1}&{zabbi x[queue]<2000}


    But it throws an error on save:
    Unexpected end of element: Check expression part starting from ' {zabbix[queue]<2000} '

    Can the zabbix gurus please offer advice on how to craft this expression ?

    thanks
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    you have to use a function te retrieve your data
    zabbix[queue].last(0) for instance

    Comment

    • untergeek
      Senior Member
      Zabbix Certified Specialist
      • Jun 2009
      • 512

      #3
      And you have to actually have an item for that. You can't just use it if you haven't added it. It may be "Zabbix Internal" but you have to actually have an item in order to use it.

      Comment

      Working...