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. DCIs, Events and ActionShellExec

DCIs, Events and ActionShellExec

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 20.0k 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
    Tursiops
    wrote on last edited by
    #1

    Hi,

    I am trying to run an action on a Windows NetXMS agent when a certain condition is triggered.

    So far this is what I've done:

    • added an ActionShellExec into the agent's configuration file and ran a configuration poll. This action does not require any parameters.
    • added an Action that calls the ActionShellExec
    • created an Event which I intend to only use for this particular issue
    • create an Event Processing Policy which triggers an alarm and executes the above action if the event above is triggered
    • added a DCI that can trigger the previously configured Event

    Unfortunately this doesn't work as expected. I receive an alarm, but the action itself just doesn't seem to happen.
    My guess is that I have the "Remote host" part of the Action wrong. Should that be "%n" (which is what I used - I also tried "%g")?

    To see if I stuffed up the Action itself, I added it to the Object Tools and called it on my test system.
    The result is that the Action is called and works just fine.

    Thanks for any pointers.

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

      I had another search around and it seems what I did should work.
      An older post suggested using %a (the node's IP) to trigger the action.
      Doesn't work for me either.

      Now I am starting to wonder if that is due to the node connecting via a NetXMS Proxy agent? There is no direct connection straight from the server to the node.
      And to top it off, I'm using zoning. So just passing an IP will likely not work if I can't pass the zone as well.
      What macro should I use that actually triggers the action on the right node? I'm lost on this one.

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

        Hi,

        currently action execution requires direct connection to agent (when zoning was implemented we just forgot about that). I've added it as feature request (https://dev.raden.solutions/issues/1154).

        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