<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[agent hardening]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">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.<br />
Alternatively, is there a way to isolate the agent and make the whole setup more secure?</p>
<p dir="auto">This might also be of interest to others who have critical systems and policies.</p>
<p dir="auto">thanks</p>
<p dir="auto">Andrea</p>
]]></description><link>https://forum.netxms.org/topic/8467/agent-hardening</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:08:13 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8467.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Oct 2026 08:42:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to agent hardening on Mon, 02 Nov 2026 13:43:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi Andrea,</p>
<p dir="auto">Yes, on both. For monitoring-only use, the setting that matters most is the access level you give the server, covered at the end.</p>
<p dir="auto"><strong>Linux.</strong> The packaged agent runs as root. Create a dedicated user and either change the systemd unit with "systemctl edit netxms-agent":</p>
<pre><code>[Service]
User=nxagent
Group=nxagent
</code></pre>
<p dir="auto">or let the agent drop privileges at startup, with this in nxagentd.conf:</p>
<pre><code>UserId = nxagent
GroupId = nxagent
</code></pre>
<p dir="auto">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.</p>
<p dir="auto"><strong>Windows.</strong> 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.</p>
<p dir="auto"><strong>Both.</strong> Give the server read-only access and use an outbound tunnel, so the agent has no open port:</p>
<pre><code>Servers = netxms.example.com             # read-only, remove the MasterServers line
ServerConnection = netxms.example.com    # outbound tunnel to the server
ListenPort = 0                           # no inbound listener
</code></pre>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.netxms.org/post/35840</link><guid isPermaLink="true">https://forum.netxms.org/post/35840</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 02 Nov 2026 13:43:33 GMT</pubDate></item></channel></rss>