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. Planned action will not start

Planned action will not start

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 47.6k 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.
  • S
    S
    saksham.adyso
    wrote on last edited by
    #1

    I created an agent action. If I run it through a script or as object tools, everything works correctly. But if I schedule the action, nothing is executed and an event is logged in the log
    2024.10.02 16:03:00.033 *D* [action            ] Cannot execute scheduled action
    [o]on node [187]: original event is unavailable
    2024.10.03 16:03:00.033 *D* [client.session.0  ] Sending message CMD_NOTIFY (48 bytes)
    2024.10.03 16:03:00.038 *D* [scheduler          ] AdHocScheduler: sleeping for 3600 seconds

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

      How do you schedule action execution?

      1 Reply Last reply
      0
      • S
        S
        saksham.adyso
        wrote on last edited by
        #3

        I used the NetXMS Client, in the Configuration view I created a One time execution scheduled task. I found a post that address the same problem, but also has no solution, just a workaround.

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

          This is because scheduled task handler Action.Execute is intended for use by EPP rules for delayed action execution, and it requires reference to existing event. Also note that it is for executing server actions (that are configured on server side under Configuration -> Actions), not for executing agent-side actions (which we sometimes calling "agent commands" or "agent predefined commands" to avoid this confusion).
          For now the only workaround to execute agent command by scheduler is to use scheduled script as in post that you've mentioned. I will add new scheduled task handler in 5.1 for direct agent command execution from scheduled tasks.

          Best regards,
          Victor

          1 Reply Last reply
          0
          • S
            S
            saksham.adyso
            wrote on last edited by
            #5

            Hi Victor, thank you for the explanation. I was thinking that when the execution object (node) can be selected, then the action on the agent side can be executed.

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

              Just added new handler type Agent.ExecuteCommand - it will be available in version 5.1.

              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