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. Event Policy - Time Filter not working

Event Policy - Time Filter not working

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 17.7k 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.
  • C
    C
    costinb22
    wrote on last edited by
    #1

    Hello Team,

    I have been looking at NetXms to try and monitor some folders at specific times in the day.

    I have the Event/Policy/Action/Data collection working and getting emails but the "Time Filter" in the Event Processing Policy is not working for some reason...

    If I set Time filter 12:00AM - 1:59AM ; All Days ; All Months  -> it correctly creates a filter named :From 00:00 to 01:59 any day". I then go to apply this and save the Policy and all is OK.

    Problem is when I navigate away from the Event Processing Policy page and then go back to it the filter has changed to "never" and it never triggers ...

    I have also tried as per other thread to use a script for it:

    now = localtime();
    return (now->hour >= 0) && (now->hour < 2);
    

    But this does not let me use minutes in the script (and being a newbi in NXSL was not able to make something to what i need)

    Anything I am missing with the Time Filter ... it should be so easy to use that vs a script?

    Thank you for any help!!

    PS. Server version is 4.3.0

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

      I've just tried on newest version and it seems to be working fine. Pls upgrade to 4.4.2 and recheck

      1 Reply Last reply
      0
      • C
        C
        costinb22
        wrote on last edited by
        #3

        Hello Filipp,

        You are correct, I have installed the latest version on another server and it is indeed not behaving the same. The filter remains as configured initially.

        Thank you!

        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