Ad Widget

Collapse

Repeating action after item changes value

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • WhoWeAre
    Junior Member
    • Aug 2022
    • 4

    #1

    Repeating action after item changes value

    Hi

    I'm using Zabbix Server v5.4.1 and I was wondering whether there is an opportunity to send message (repeating trigger action) with new item value

    What I mean:
    I have an item which sums up amount of some processes on host. The trigger fires if this amount is higher than 5.
    So
    When this number reaches 6 I recieve the message, the trigger's fired, everything's fine.
    If this value goes higher and reaches 8 e.g. I'll be able to see it in "Latest data" section, but won't get message about it, which is my goal
    I've tried multiple "PROBLEM event generation mode", but it's not exactly what I'm looking for: it generates new problem after every check, no matter what item value is. While I wish to have one problem and recieve new messages only in case item value has changed.
  • Answer selected by WhoWeAre at 12-08-2022, 11:29.
    Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    you may try multiple event generation mode with another one condition in trigger like (your.condition and (last.value > prev.value))
    Last edited by Hamardaban; 11-08-2022, 19:47.

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #2
      Usually that kind of cases are handled by creating multiple triggers (with different thresholds) and configuring dependency between them. I'm using that for example with temperature monitoring: first I get a warning, but if the temperature keeps rising, I'll get another problem with higher severity, and the previous problem kind of disappears at the same time.

      Markku

      Comment

      • WhoWeAre
        Junior Member
        • Aug 2022
        • 4

        #3
        Talking about my example - do you mean creating triggers for like >5, >10, >15 processes and so on?
        Actually, there's escalation option which'll probably do the thing with sending message with newest data without creating new trigger (however, I wish it was data-related, not date :^) ). Gotta test both of the options

        Anyway, thanks for your idea

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #4
          Yeah, there is no option to escalate based on the value changing so dependent triggers are used for that.

          Markku

          Comment

          • Hamardaban
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2019
            • 2713

            #5
            you may try multiple event generation mode with another one condition in trigger like (your.condition and (last.value > prev.value))
            Last edited by Hamardaban; 11-08-2022, 19:47.

            Comment

            • WhoWeAre
              Junior Member
              • Aug 2022
              • 4

              #6
              Wow, quite simple and effective. However, that idea never came to my mind. Thanks a lot - gotta try it with separate trigger. Main idea is to avoid numerous recovery messages, so I guess I'm gonna just create trigger with > rule and set no recovery actions for him
              Many thanks - that one's gonna do the thing for me

              Comment

              • WhoWeAre
                Junior Member
                • Aug 2022
                • 4

                #7
                Well, it works fine but generates three messages instead of one. Still no idea, why it happens

                Comment

                Working...