Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. EPP Timer not working

EPP Timer not working

Scheduled Pinned Locked Moved Support
8 Posts 3 Posters 41.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    themanbornwithin
    wrote on last edited by
    #1

    Good Afternoon,

    I am trying to set up an EPP for a UPS that won't alert me if the UPS is abnormal for less than 2 minutes. The delay works for not getting an alert when it goes on battery, however I get an alert that UPS is online. I believe I have the timer keys set properly. Can anyone provide any insight? Using version 4.3.7

    Thank you,

    Chris

    1 Reply Last reply
    0
    • T
      T
      themanbornwithin
      wrote on last edited by
      #2

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        Hi,

        configuration looks correct. We will test this and check if something is broken with the timers.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          Hi!

          I've tried on my system, everything works as intended.

          Just in case, check that there is no other rule that could be interfering with that timer.

          You can check in Configuration -> Scheduled tasks. If you enable showing of system tasks (under three dots menu), during your 120 second delay an entry should be visible with correct value in "Timer key" column.

          You can also set debug level 7 for debug tags
          event.*
          scheduler
          to monitor event processing and scheduled task execution in server log

          1 Reply Last reply
          0
          • T
            T
            themanbornwithin
            wrote on last edited by
            #5

            Debug shows the following:

            2023.06.13 22:51:59.301 *D* [event.corr        ] CorrelateEvent: event UPS_ONLINE id 424636 source Tech Server UPS [1075]
            2023.06.13 22:51:59.301 *D* [event.corr        ] CorrelateEvent: finished, rootId=0
            2023.06.13 22:51:59.301 *D* [event.proc        ] EVENT UPS_ONLINE [100037] at {0} (ID:424636 F:0x0001 S:0 TAGS:"") FROM Tech Server UPS: UPS is On Line
            2023.06.13 22:51:59.301 *D* [event.policy      ] EPP: processing event 424636
            2023.06.13 22:51:59.301 *D* [event.policy      ] Event 424636 match EPP rule 54
            2023.06.13 22:51:59.348 *D* [event.policy      ] Action 1 execution blocked by timer "UPS_Abnormal_0x00000433" key
            2023.06.13 22:51:59.348 *D* [event.policy      ] Delayed action execution with key "UPS_Abnormal_0x00000433" cancelled
            2023.06.13 22:51:59.348 *D* [event.proc        ] Event 424636 with code 100037 passed event processing policy
            2023.06.13 22:51:59.348 *D* [event.corr        ] CorrelateEvent: event UPS_ONLINE id 424637 source Tech Server UPS [1075]
            2023.06.13 22:51:59.348 *D* [event.corr        ] CorrelateEvent: finished, rootId=0
            2023.06.13 22:51:59.348 *D* [event.proc        ] EVENT UPS_ONLINE [100037] at {0} (ID:424637 F:0x0001 S:0 TAGS:"") FROM Tech Server UPS: UPS is On Line
            2023.06.13 22:51:59.348 *D* [event.policy      ] EPP: processing event 424637
            2023.06.13 22:51:59.348 *D* [event.policy      ] Event 424637 match EPP rule 54
            2023.06.13 22:51:59.364 *D* [event.proc        ] Event 424637 with code 100037 passed event processing policy

            So it appears that the timer is working, however I'm getting two 'UPS_ONLINE' events back-to-back, and the second one is the one that is triggering the e-mail. This is happening with multiple UPSes, so I can't say it is just this one device causing the issue.

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              I suppose UPS_ONLINE event is threshold based? If yes, can you show configuration of relevant thresholds?

              1 Reply Last reply
              0
              • T
                T
                themanbornwithin
                wrote on last edited by
                #7

                I did just remove last(1) == On Line with UPS_ONLINE being both the activation and deactivation events, and that seemed to have resolved the issue. Should I not have that line in there, or should it be listed?

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #8

                  I suppose that you have option "process all thresholds" turned on. If this is the case then for all values in first four thresholds last threshold will also be activated. Then you will have two active thresholds, and when UPS goes back online, both will be deactivated, generating two UPS_ONLINE events. There are few possible fixes:

                  1. Do not use "process all thresholds" - it should work as expected without that option.
                  2. Use more complex condition for last threshold - exclude all explicitly checked values.
                  3. Use different deactivation event for last threshold.

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups