Ad Widget

Collapse

Trigger in template for process monitoring using user macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kepposeppo
    Junior Member
    • Dec 2022
    • 2

    #1

    Trigger in template for process monitoring using user macros

    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 Nameroc.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​
  • kepposeppo
    Junior Member
    • Dec 2022
    • 2

    #2
    Ok I think I had upper case user macros and tried to use them typing in lower case. I should have remembered this as some time ago I had problems logging in to the system. Admin vs admin...

    Comment

    Working...