Ad Widget

Collapse

time parameter as lld prototype

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maclin
    Member
    • Mar 2011
    • 76

    #1

    time parameter as lld prototype

    Hi! I have a trigger like

    Code:
    {T_nginx_stats.frontend.discovery.new:nginx_stats. frontend.response-code-4xx-percentage-[{#LOCATION}].min(180)}>15)
    I wanted to make it more flexible, for any location would be its own alarm thresholds

    I made new lld items as
    Code:
    nginx_stats.frontend.response-code-4xx-percentage-alarm-[{#LOCATION}]
    and
    Code:
    nginx_stats.frontend.response-code-4xx-percentage-timeout-alarm-[{#LOCATION}]
    So i wanted to trigger would look like that:


    Code:
    {T_nginx_stats.frontend.discovery.new:nginx_stats. frontend.response-code-4xx-percentage-[{#LOCATION}].min({T_nginx_stats.frontend.discovery.new:nginx_s tats.frontend.response-code-4xx-percentage-timeout-alarm-[{#LOCATION}].last()})}>{T_nginx_stats.frontend.discovery.new:nginx_stats. frontend.response-code-4xx-percentage-alarm-[{#LOCATION}].last()}​
    But whe i save it i got error like on zabbix 2.3.2

    "
    Incorrect trigger expression. Check expression part starting from "})}>{T_nginx_stats.frontend.discovery.new:nginx_s tats.frontend.response-code-4xx-percentage-alarm-[{#LOCATION}].last()}".
    "

    or on zabbix 6.0 trigger
    Code:
    min(/T_nginx_stats.frontend.discovery.new/nginx_stats.frontend.response-code-4xx-percentage-[{#LOCATION}],last(/T_nginx_stats.frontend.discovery.new/nginx_stats.frontend.response-code-4xx-percentage-timeout-alarm-[{#LOCATION}]))> last(/T_nginx_stats.frontend.discovery.new/nginx_stats.frontend.response-code-4xx-percentage-alarm-[{#LOCATION}])
    gives error
    " Invalid parameter "/1/expression": incorrect expression starting from "min(/T_nginx_stats.frontend.discovery.new/nginx_stats.frontend.response-code-4xx-percentage-[{#LOCATION}],last(/T_nginx_stats.frontend.discovery.new/nginx_stats.frontend.response-code-4xx-percentage-timeout-alarm-[{#LOCATION}]))> last(/T_nginx_stats.frontend.discovery.new/nginx_stats.frontend.response-code-4xx-percentage-alarm-[{#LOCATION}])"


    How to use lld timeout parameter in trigger?
Working...