Ad Widget

Collapse

Help with Triggers please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dave
    Junior Member
    • Jul 2006
    • 6

    #1

    Help with Triggers please

    Hi,

    I need some help with two triggers.

    We have a trigger that checks if the raid is returning an "Optl" as text, but every now and then we could get a blank response, or something else and by the 2nd check its back to "Optl."
    My issue is that this rule fires immediate and, I only want the trigger to fire if the last two checks didn't match "Optl"

    For example, we could get Optl - Optl - Optl - Not - Optl - Optl
    For this it shouldn't trigger (but currently does the moment "Not" or blank is in the response).
    Here is my current rule
    Code:
    find(/AOC VG0 Raid 8 Drives/raid[vg0],,"like","Optl")=0
    What I want is for it to only trigger if it doesn't get Optl for more than two checks in a row.

    Another similar one, we have a check to make sure that there is more than zero (0) processes running.
    But the moment the application restarts, it notifies us immediately, where I would also like it to only trigger if it gets a value of 0 twice in a row.

    Here is its rule:
    Code:
    max(/Hosting - 1U AMD/proc.num[lsphp],90s)=0
    I would really appreciate some assistance with this.

    thanks,
    Dave

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

    #2
    If you want to react after 2 fails, then use "find" over 2 checks...
    Code:
    find(/AOC VG0 Raid 8 Drives/raid[vg0],#2,"like","Optl")=0
    And with the other one also... you are checking for max value during 90s. I do not know how often do you check? instead using time, use count of checks... #2

    Comment

    • Dave
      Junior Member
      • Jul 2006
      • 6

      #3
      Originally posted by cyber
      If you want to react after 2 fails, then use "find" over 2 checks...
      Code:
      find(/AOC VG0 Raid 8 Drives/raid[vg0],#2,"like","Optl")=0
      And with the other one also... you are checking for max value during 90s. I do not know how often do you check? instead using time, use count of checks... #2
      Thanks for the assistance, I'll give that a try.

      Comment

      Working...