Ad Widget

Collapse

Same action is executed several times

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Boltz
    Junior Member
    • May 2013
    • 5

    #1

    Same action is executed several times

    Hi
    when a trigger fires, the action is executed 17 times !

    operation details:
    step from 1 to 1
    remote command
    type custom script
    executed on Zabbix server

    Any idea ?
    Thanks
    BBoltz
  • Heilig
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2013
    • 366

    #2
    Please, check that option "Multiple PROBLEM events generation" in trigger configuration is disabled (https://www.zabbix.com/documentation...iggers/trigger).

    Comment

    • Boltz
      Junior Member
      • May 2013
      • 5

      #3
      Yes, option "Multiple PROBLEM events generation" in trigger configuration is disabled

      Comment

      • Heilig
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2013
        • 366

        #4
        Maybe trigger blinking "Ok - Problem - Ok - Problem" (see events page - https://www.zabbix.com/documentation...itoring/events)?
        Also, check action log in audit (https://www.zabbix.com/documentation.../audit#actions). There you can see how many times the script is run.

        Comment

        • Boltz
          Junior Member
          • May 2013
          • 5

          #5
          Many thanks for your help.
          Actually, my script is very simple:

          echo `date` >> /var/log/zabbix/test.log
          echo "Trigger values {TRIGGER.NAME}, {HOSTNAME}, {{HOSTNAME}:{TRIGGER.KEY}.last(0)}" >> /var/log/zabbix/test.log

          There is a single event.

          When I look at the result, I see 17 times the same record each time the trigger fires. For instance:

          Thu May 30 16:25:11 CEST 2013
          Trigger values CPU usage - Medium, Zabbix_2.0, 53.45
          Thu May 30 16:25:11 CEST 2013
          Trigger values CPU usage - Medium, Zabbix_2.0, 53.45
          ...

          What is strange, it is always 17 times the same thing. Perhaps a cause: When I start the VM that is containing Zabbix, I get the message:
          ntp[1724]: Time could not be synchronized ...

          Comment

          • Boltz
            Junior Member
            • May 2013
            • 5

            #6
            [resolved]

            I had choosen for the action
            target list: a specific host group
            executed on: zabbix_server

            Actually, I had 17 hosts within this host group.
            Then, the action was executed 17 times in the server !

            Strange behaviour ...

            Comment

            • Heilig
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Mar 2013
              • 366

              #7
              I can't reproduce in zabbix 2.0.6.
              Which version are you using?
              I think you should update it...

              Comment

              • Boltz
                Junior Member
                • May 2013
                • 5

                #8
                Version 2.0.0

                Ok, I will update it

                Comment

                Working...