Ad Widget

Collapse

Triggers go off during flexible schedule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gointern
    Junior Member
    • Sep 2019
    • 8

    #1

    Triggers go off during flexible schedule

    Hi,

    What should I do to disable triggers during flexible schedule? I have set flexible schedule on ping during the night. What I found is that the trigger goes off that the item is not getting data.

    trigger:
    Code:
    {Windows2008:agent.ping.nodata(5m)}=1
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    "and ping.time()>210000 and ping.time()<070000"
    This works also without flexible schedule...

    Comment

    • gointern
      Junior Member
      • Sep 2019
      • 8

      #3
      I would like to understand what does it do. Does this ignore after 21 hour and before 07 hour in the morning? I cannot seem to find anything in documentation.

      Comment

      • gointern
        Junior Member
        • Sep 2019
        • 8

        #4
        I got "Incorrect trigger expression" which ever way I try to add. Using 5.0.3 zabbix. With expression constructor this passes validation.

        {Windows2008:agent.ping.nodata(10m)}=1 and {Windows2008:agent.ping.time()}>210000 and {Windows2008:agent.ping.time()}<070000

        Comment

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

          #5
          Expression should be fine... I just added <>-s wrong way, this way it only works at nighttime.. ... they should be <210000 and >070000, then it works on daytime and not during 21-7...

          {Windows2008:agent.ping.nodata(10m)}=1 and {Windows2008:agent.ping.time()}<210000 and {Windows2008:agent.ping.time()}>070000

          No data has arrived in 10m and current time is less than 21 and more than 7.

          Comment

          • gointern
            Junior Member
            • Sep 2019
            • 8

            #6
            Thank you. Tested and it works.

            Comment

            Working...