Ad Widget

Collapse

User macros in sum function as last count

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xoJIog
    Junior Member
    • Jan 2013
    • 2

    #1

    User macros in sum function as last count

    It is impossible to use user macros in trigger function sum at count of N last items, e.g.:
    Trigger expression
    Code:
    {template:agent.ping.sum(#{$AGENT_PING_COUNT})}=0
    will return errror:
    Code:
    Cannot implode expression "{template:agent.ping.sum(#{$AGENT_PING_COUNT})}=0". Incorrect trigger function "sum" provided in expression. Parameter sec or #num or user macro expected, "#{$AGENT_PING_COUNT}" given.
    However I can use user macros as number of seconds for function sum:
    Code:
    {template:agent.ping.sum({$AGENT_PING_COUNT})}=0
    Zabbix version: 2.0.4-r1
  • rob.parker
    Junior Member
    • Jul 2012
    • 3

    #2
    Same here

    I'm seeing the same on Zabbix 2.0.5.

    One workaround would be to include the hash (or 'pound' in US English) sign in the macro value, though that's quite unhelpful in some cases, such as when there is a need to display the value in the trigger text too.

    I'll try to get around to checking if there's a bug report for this later, and if not file one.

    Comment

    Working...