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. 2 agents on the same node

2 agents on the same node

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 40.2k 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.
  • I
    I
    Imad
    wrote on last edited by
    #1

    hi,

    is it possible to have 2 agents on AIX server sharing the same IP ?
    I tried to create 2 Node on netxms server for the same IP but it didn't allow it saying its locked.
    I need to monitor AIX for 2 users each one has specific privileges and don't share the same permissions.
    If I cannot create 2 nodes from Netxms Server side, how can I collect data from both agents ?

    P.S: the agents are on AIX and the netxms server is on Windows.

    Regards,
    Imad.

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      You can use "External subagent" feature - basically it allows you to run multiple instances of the agent (with separate configuration files) on the same server and multiplex all communications thru "master" agent.

      Example: you have "master" agent, which run as root and responsible for communications and system-wide data and actions (e.g. remote reboot). Also you have agent for "app1", which should be run as "user1" and agent for "app2", which should be run as "user2".

      To configure that, crate configurations files like this:

      nxagentd.master.conf:

      MasterServers = ...
      LogFile = ...
      
      ExternalSubagent=APP1
      ExternalSubagent=APP2
      

      nxagentd.app1.conf:

      LogFile = ...
      ExternalMasterAgent=APP1
      
      # any additional configuration, subagents, etc.
      

      nxagentd.app2.conf:

      LogFile = ...
      ExternalMasterAgent=APP2
      
      # any additional configuration, subagents, etc.
      

      Then start them all:

      # nxagentd -c nxagentd.master.conf -d
      # su user1 -c "nxagentd -c nxagentd.app1.conf -d"
      # su user2 -c "nxagentd -c nxagentd.app2.conf -d"
      

      How it works:

      Master agent create communication pipe for each ExternalSubagent entry, "external subagents" connect to this pipe. When request from the network is processed by "master" agent, it proxy requests thru these pipes and send reply back.

      1 Reply Last reply
      0
      • I
        I
        Imad
        wrote on last edited by
        #3

        Thank you Alex for the quick reply,
        I have the following questions:

        1-does this require a specific AIX agent version?
        2-nxagentd.master.conf should be configured on both users? or on 1 user?
        3- when starting the them all... should each agent be running from its user? because when I tried [su user1 -c "nxagentd -c nxagentd.app1.conf -d"] it requested the user1 password.

        1 Reply Last reply
        0
        • I
          I
          Imad
          wrote on last edited by
          #4

          Hi

          i created as mentioned nxagentd.master.conf

          masterServers = 10.130.71.31,10.130.71.32
          DebugLevel=7
          LogFile = /apps/ist76AA/netxms-bin/log/Master_agent.log
          FileStore = /tmp

          ### External Sub Agent
          ExternalSubagent=APP1
          ExternalSubagent=APP2

          and nxagentd.app1.conf

          ExternalMasterAgent=APP1
          DebugLevel=7
          LogFile = /apps/ist76AA/netxms-bin/log/agent.log
          FileStore = /tmp

          ## Subagent IST
          Subagent = /apps/ist76AA/netxms-1.1.1/subagent/istsubagent.so

          and nxagentd.app2.conf

          ExternalMasterAgent=APP2
          DebugLevel=7
          LogFile = /apps/ist76LB/netxms-bin/log/agent.log
          FileStore = /tmp

          ## Subagent L7
          Subagent = /apps/ist76LB/netxms-1.1.1/subagent/istsubagent_1.so

          and i run them as follow:

          PREPRODIST02_ist76AA:/apps/ist76AA/netxms-bin/bin> nxagentd -c /apps/ist76AA/netxms-bin/etc/nxagentd.master.conf -d
          PREPRODIST02_ist76AA:/apps/ist76AA/netxms-bin/bin>  nxagentd -c /apps/ist76AA/netxms-bin/etc/nxagentd.app1.conf -d
          PREPRODIST02_ist76LB:/apps/ist76LB/netxms-bin/bin>  nxagentd -c /apps/ist76LB/netxms-bin/etc/nxagentd.app2.conf -d

          however the logs shows that whenever any agent.app1 or app2 try to run the port is already in use:

           Unable to bind socket: Address already in use

          attached are the debugs.

          should i run each agent on different port ?


          Master_agent.log

          agent1.TXT

          agent2.TXT

          1 Reply Last reply
          0
          • I
            I
            Imad
            wrote on last edited by
            #5

            Hi

            i event change
            ### External Sub Agent
            ExternalSubagent=APP1
            ExternalSubagent=APP2

            to the name of the application
            ExternalSubagent=istsubagent.so
            ExternalSubagent=istsubagent_1.so

            and still it didnt work... is there anything i miss ??

            1 Reply Last reply
            0
            • A
              A
              Alex Kirhenshtein
              wrote on last edited by
              #6

              I did a quick test with your configuration files (except loading IST module) – they are working fine with latest release (1.2.17). I don't have 1.1.1 installed anywhere to check it. I highly recommend you to upgrade.

              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