Ad Widget

Collapse

TRIGGER multiple conditions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omar.cacciotti
    Junior Member
    • Jul 2021
    • 25

    #1

    TRIGGER multiple conditions

    Hello there!
    Thank you as usual for your powerful support.
    I'm introducing Zabbix in a new enterprise customer and I have to set up a P.O.C.

    Context:
    Through a DMZ bastion I have to check if some file are present inside a remote directory (monitor phase).
    I achieve this goal by using an SSH Agent item.
    The master ITEM got these informations:

    FILE: 7
    LBJATA1.D2024209.T114929
    NZVATA1.D2024226.T114927
    OIAATA1.D2024275.T114928
    TFLATA1.D2024172.T114925
    TXUATA1.D202403.T114931
    VENATA1.D2024228.T114930
    YLWATA1.D2024282.T114926


    The dependent item is checking the first line of the output: FILE: 7 and Trim it to 7 (I'm using this number to fire a TRIGGER and then to start a Trigger Action by running an Agent shell script inside another node)

    Needs / Questions:
    Now I need to setup a Trigger that fires in case of:

    > 0
    AND
    last is different from 0 and different from the previous one value

    When 0 -> Is resolved

    I need the Trigger fire when there still the files are inside that directory

    -----
    Another question:
    The TRIGGER is based on the dependent item, can i send the WHOLE value of the master item to a script?

    Thank you very much
    OC
Working...