Ad Widget

Collapse

Trigger to check last 5 (Five) values of string item!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paulmartinez1
    Junior Member
    • Jul 2021
    • 1

    #1

    Trigger to check last 5 (Five) values of string item!!

    Hello,
    I am experiencing some issues. I have written the problem below:

    I have set a UserParameter that sends "rsync failed" on rsync failure.
    I want to set a trigger that fires on 5 consecutive rsync failed alerts
    I tried the below Trigger cinema hd v2 expression

    {Server:rsync.status.str("rsync failed",#5)}=1 & {Server:rsync.status.str("rsync failed",#4)}=1 & {Server:rsync.status.str("rsync failed",#3)}=1 & {Server:rsync.status.str("rsync failed",#2)}=1 & {Server:rsync.status.str("rsync failed",#1)}=1
    but is not working. The trigger fires even if any one of the previous 5 values is "rsync failed".

    Can someone help me with this trigger configuration?
    Last edited by paulmartinez1; 23-07-2021, 19:21.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    https://www.zabbix.com/documentation...ions#footnotes
    You may use the 'count' function with the like operator to count string values that match a pattern.

    Comment


    • paulmartinez1
      paulmartinez1 commented
      Editing a comment
      Thank you so much for the response.
Working...