<?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[MQTT SubAgent subscribing to more than one MQTT Publisher]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I have 2 PI devices where Mosquitto is running and I want to use one Windows machine with NetXMS agent, SubAgent MQTT to subscribe and collect the data.</p>
<p dir="auto">In both PI devices, i can see in Mosquitto logs that NetXMS agent is logging succesfully. The nxagentd.conf file is configured to connect to 2 MQTT brokers and collect few Metrix..</p>
<p dir="auto">The problem is that successful collection is happening only to one broker: if I put connection/Metrics of any of the brokers, everything goes fine. When I put connection/Metrics of both brokers, successful collection of DCI values is on the first one only, second shows errors.<br />
In documentation it shows that you can subscribe to more than one broker, on same agent. Any idea how to do this?</p>
<p dir="auto">MasterServers = &lt;IP address of NetXMS server&gt;<br />
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d<br />
LogFile = {syslog}<br />
FileStore = C:\NetXMS\var<br />
SubAgent = mqtt</p>
<p dir="auto">[MQTT/Brokers/pi_cz_gen]<br />
Hostname = &lt;here I'm putting IP address of MQTT broker&gt;<br />
Port = 1883<br />
Login = admin<br />
Password = *******</p>
<p dir="auto">[MQTT/Brokers/pi_cz_gen/Metrics]<br />
CZ_GEN.Telemetry.Battery = "tele/cz-gen/Battery"<br />
CZ_GEN.Telemetry.Status = "tele/cz-gen/Status"</p>
<p dir="auto">[MQTT/Brokers/pi_cf_gen]<br />
Hostname = &lt;here I'm putting IP address of MQTT broker&gt;<br />
Port = 1883<br />
Login = admin<br />
Password = ******</p>
<p dir="auto">[MQTT/Brokers/pi_cf_gen/Metrics]<br />
CF_GEN_3.Telemetry.GEN_CF_3_Battery = "tele/cf-gen/GEN_CF_3_Battery"<br />
CF_GEN_3.Telemetry.GEN_CF_3_Frequency = "tele/cf-gen/GEN_CF_3_Frequency"<br />
CF_GEN_3.Telemetry.GEN_CF_3_TotalPower = "tele/baa352c08d7f501c/GEN_CF_3_TotalPower"</p>
]]></description><link>https://forum.netxms.org/topic/7714/mqtt-subagent-subscribing-to-more-than-one-mqtt-publisher</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:50:06 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7714.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Jul 2023 06:07:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MQTT SubAgent subscribing to more than one MQTT Publisher on Wed, 19 Jul 2023 07:01:05 GMT]]></title><description><![CDATA[<p dir="auto">Configuration is correct, so it looks like a bug in agent (or libmosquitto). I will try to reproduce it in the lab.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/32602</link><guid isPermaLink="true">https://forum.netxms.org/post/32602</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 19 Jul 2023 07:01:05 GMT</pubDate></item></channel></rss>