Hi,
I'm having problems creating a trigger in a template using user macros.
I have three user macros:
1. process_name
2. min_count (how many processes at least should be running)
3. delay_count (for how many subsequent update intervals the condition must exist before an event is generated)
I have an item for the number of processes using proc.num with the process name user macro
In the trigger I try to use max, so that the trigger fires if max of delay_count updates is below min_count:
{Template Name
roc.num[{$process_name},,,,].max({$delay_count})}<"{$min_count}"
but I get an error: Incorrect trigger function "max({$delay_count})" provided in expression. Invalid first parameter.
If I replace the {$delay_count} with for example #3 the expression is accepted.
I'm I trying something stupid or is there another way of doing this?
Zabbix version 5.0.27
I'm having problems creating a trigger in a template using user macros.
I have three user macros:
1. process_name
2. min_count (how many processes at least should be running)
3. delay_count (for how many subsequent update intervals the condition must exist before an event is generated)
I have an item for the number of processes using proc.num with the process name user macro
In the trigger I try to use max, so that the trigger fires if max of delay_count updates is below min_count:
{Template Name
roc.num[{$process_name},,,,].max({$delay_count})}<"{$min_count}"but I get an error: Incorrect trigger function "max({$delay_count})" provided in expression. Invalid first parameter.
If I replace the {$delay_count} with for example #3 the expression is accepted.
I'm I trying something stupid or is there another way of doing this?
Zabbix version 5.0.27
Comment