Ad Widget

Collapse

Cannot update trigger prototype, cannot be moved to another template or host.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yurtesen
    Senior Member
    • Aug 2008
    • 130

    #1

    Cannot update trigger prototype, cannot be moved to another template or host.

    On Zabbix 6.0.x. I have a trigger (this trigger works)
    Code:
    min(/Template Apache Tomcat by Zabbix agent active/catalina.threadpool[{#JMXNAME},currentThreadsBusy],5m)>(last(/Template Apache Tomcat by Zabbix agent active/catalina.threadpool[{#JMXNAME},maxThreads])*{$TOMCAT.THREADS.PBUSY.WARN})
    This works fine, except in some cases `maxThreads` can be `-1` (when `maxThreads` is not used)


    I am trying to change it so it won't trigger if `maxThreads` are less than 0.
    Code:
    last(/Template Apache Tomcat by Zabbix agent active/catalina.threadpool[{#JMXNAME},maxThreads])>0
    and
    min(/Template Apache Tomcat by Zabbix agent active/catalina.threadpool[{#JMXNAME},currentThreadsBusy],5m)>(last(/Template Apache Tomcat by Zabbix agent active/catalina.threadpool[{#JMXNAME},maxThreads])*{$TOMCAT.THREADS.PBUSY.WARN})
    actually it won't even accept something like

    Code:
    last(/Template Apache Tomcat by Zabbix agent active/catalina.threadpool[{#JMXNAME},maxThreads])>0
    It always gives error:

    Code:
    Cannot update trigger prototype "{#JMXNAME}: currentThreadsBusy> maxThreads * {$TOMCAT.THREADS.PBUSY.WARN} for over 5m": trigger prototype cannot be moved to another template or host.
    Why not?
    Last edited by yurtesen; 30-09-2024, 13:07.
  • yurtesen
    Senior Member
    • Aug 2008
    • 130

    #2
    I cloned the trigger and miraculously the expression is accepted. I guess it is a sort of bug, but I am not sure how to reproduce it. So it is hard to make a bug report.

    Comment

    Working...