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. trigger action on remote host

trigger action on remote host

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 29.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.
  • J
    J
    jamesof
    wrote on last edited by
    #1

    hi guys
    Ā i am new to netxms
    i have a problem with action on remote agent
    on agent i have this
    #
    # NetXMS agent configuration file
    # Created by agent installer at Tue May 07 02:57:49 2013
    #

    ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
    LogFile = {syslog}
    FileStore = C:\NetXMS\var
    SubAgent = ecs.nsm
    SubAgent = ping.nsm
    SubAgent = logwatch.nsm
    SubAgent = portcheck.nsm
    SubAgent = winperf.nsm
    *WinPerf
    Action= dir:cmd.exe /c "dir c:\ > c:\1.txt"
    SubAgent = wmi.nsm
    SubAgent = ups.nsm

    and in object tools
    i have a action with properties

    Name :dir
    agent action:
    cmd.exe /c "dir c:\ > c:\1.txt"

    but nothing happens. what is wrong?
    is there any documentation about actions?
    Best regards.

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

      Hi!

      There are two problems in your config:

      1. You put Action keyword in wrong section. It should be like this:

      ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d
      LogFile = {syslog}
      FileStore = C:\NetXMS\var
      SubAgent = ecs.nsm
      SubAgent = ping.nsm
      SubAgent = logwatch.nsm
      SubAgent = portcheck.nsm
      SubAgent = winperf.nsm
      Action= dir:cmd.exe /c "dir c:\ > c:\1.txt"
      SubAgent = wmi.nsm
      SubAgent = ups.nsm

      1. On server side, you should only put name of the action configured on agent in "agent action" field. It will be just dir in your case.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • J
        J
        jamesof
        wrote on last edited by
        #3

        thanks
        it works.
        just three other questions. ;D
        is it possible to return generated output. i remember you said it is not possible (around 2010) . is this feature added to netxms?
        can i set snmp oid with agent?
        can i define security policies on agent ?

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

          @jamesof said in trigger action on remote host:

          is it possible to return generated output. i remember you said it is not possible (around 2010) . is this feature added to netxms?

          still not possible šŸ˜ž

          @jamesof said in trigger action on remote host:

          can i set snmp oid with agent?

          Only by calling external tools. You can copy nxsnmpset to agent and configure action which will call it.

          @jamesof said in trigger action on remote host:

          can i define security policies on agent ?

          what do you mean by security policy on agent?

          Best regards,
          Victor

          1 Reply Last reply
          0
          • J
            J
            jamesof
            wrote on last edited by
            #5

            what do you mean by security policy on agent?

            agent check manager have right to do action.

            and another question . can we have any accounting feature? which user how many usage which app ... for any session in remote device that running agent .
            thank you.

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

              @jamesof said in trigger action on remote host:

              what do you mean by security policy on agent?

              agent check manager have right to do action.

              There are 3 level of access for an agent. Depending on how server's IP address listen in nxagentd.conf, it will have different access level. If server listed in:

              1. MasterServers - full access
              2. ControlServers - can read data and execute predefined actions, but cannot change config nor install policies.
              3. Servers - read only access

              @jamesof said in trigger action on remote host:

              and another question . can we have any accounting feature? which user how many usage which app ... for any session in remote device that running agent .

              No, we don't have functionality like that.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • J
                J
                jamesof
                wrote on last edited by
                #7

                thank you for your support
                it works .

                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