Ad Widget

Collapse

trigger count() using external script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KerneL_
    Junior Member
    • Oct 2022
    • 8

    #1

    trigger count() using external script

    Hello,

    I want to make the trigger if the count of 3 is more than 1 as an error in 20 minutes, then make it as a problem.


    count(/OS_2023/check_website_latency.sh[{$URL}],3m,"gt",1)>3


    And I do have this error : the gt isnt a the good place.​
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #2
    The example you provided does not seem to match its description.
    Have you tried using the expression constructor?
    Last edited by markfree; 03-04-2023, 04:45.

    Comment

    • KerneL_
      Junior Member
      • Oct 2022
      • 8

      #3
      Hello,


      I tried to use the expression constructor, but it does not what I want.

      count(/OS_2023/check_website_latency.sh[{$URL}],3m,"gt",1)>3

      The external script is check_website_latency.sh and the parameter I add is $URL

      The problem is when the value is over 1 3 time into 20 minutes, I want a trigger.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        If you want to count during 20m, why do you keep entering "3m" there? Your current expression is "count of values during last 3 minutes which are greater than 1" > 3... Try with "20m"

        Comment

        Working...