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. agent hardening

agent hardening

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 238 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
    it_user1
    wrote last edited by
    #1

    Hi,

    Is it possible to install the agent without running the service with administrator privileges? I would like to use the agent solely for performance monitoring and to retrieve basic information.
    Alternatively, is there a way to isolate the agent and make the whole setup more secure?

    This might also be of interest to others who have critical systems and policies.

    thanks

    Andrea

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

      Hi Andrea,

      Yes, on both. For monitoring-only use, the setting that matters most is the access level you give the server, covered at the end.

      Linux. The packaged agent runs as root. Create a dedicated user and either change the systemd unit with "systemctl edit netxms-agent":

      [Service]
      User=nxagent
      Group=nxagent
      

      or let the agent drop privileges at startup, with this in nxagentd.conf:

      UserId = nxagent
      GroupId = nxagent
      

      Use the systemd route if the user needs extra groups, such as adm for reading logs, because the agent applies only the primary group. Either way, this user needs write access to the agent's log file and data directory. CPU, memory, disk, filesystem, network and process metrics keep working. You lose SMBIOS hardware data (serial numbers, memory modules, etc.) and ICMP from the ping subagent, and the agent can only read files and logs that this user can read.

      Windows. The installer always creates the service under LocalSystem, but the agent works under a limited account if you change it in the service properties afterwards. The account needs rights on the agent's etc, log and var folders. Anything that needs administrator rights stops working, such as System.Restart, and per-process metrics such as CPU time and I/O will quietly return 0 for processes of other users.

      Both. Give the server read-only access and use an outbound tunnel, so the agent has no open port:

      Servers = netxms.example.com             # read-only, remove the MasterServers line
      ServerConnection = netxms.example.com    # outbound tunnel to the server
      ListenPort = 0                           # no inbound listener
      

      With this the server can read metrics, but it can't run actions, edit the agent's config, deploy policies or write files. The tunnel has to be bound to the node on the server side.

      Note: the installer writes MasterServers, which is full access, so that line has to be removed. All config changes are then made locally on the host.

      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