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. Advanced Schedule

Advanced Schedule

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

    Hello,

    I want to configure a custom file.count schedule (to check a specific folder daily between 7:00 AM to 1:00 AM  every 5 minutes) and i want this folder to be empty (0 files) between the specific period and if i have file to trigger an alarm (only between this period).

    So i tried several combinations and it doesn`t work.
    Here is my examples that i tried

    1st.
    */5 7-1 * * * *
     
    it doesn`t work

    2nd. (combination of 2 schedules)
    * 7-1 * * * *
    */5 * * * * *

    it works every 5 minutes but i get an alert all the time

    3rd. (combination of 3 schedules)
    * 7-0 * * * *
    * 0-1 * * * *
    */5 * * * * *

    it works every 5 minutes but i get an alert all the time

    Can you please someone advice/help me with the correct schedule that i have to specify?

    Thanks in advance

    Regards,
    Andreas

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

      Hi!

      Just checked the source code - NetXMS does not support ranges n-m where n > m. So you should be able to achieve desired result with the following combined schedule:

      */5 0 * * * *
      */5 7-23 * * * *

      This will collect DCI every day from 00:00 to 00:59 and from 7:00 to 23:59. If you want to include 1:00 as well, you should add

      0 1 * * * *

      to match exactly this time.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • A
        A
        AP_ops
        wrote on last edited by
        #3

        Hello,

        That's work fine but only with 5 fields (* * * * *)! With 6 fields it has problem and the schedule doesnt work!
        So i added the same schedules like this:

        */5 0 * * *
        */5 7-23 * * *

        Thanks & Regards,
        Andreas

        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