On Zabbix 6.0.x. I have a trigger (this trigger works)
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.
actually it won't even accept something like
It always gives error:
Why not?
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})
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})
Code:
last(/Template Apache Tomcat by Zabbix agent active/catalina.threadpool[{#JMXNAME},maxThreads])>0
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.
Comment