<?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[Application DB Monitoring Query <<ERROR>>]]></title><description><![CDATA[<p dir="auto">I'm using v4.5.0<br />
I have a query in agent configuration file which I'm polling in a DCI. It always gives &lt;&lt;ERROR&gt;&gt; output value. However, from the agent log below, I found that the query is indeed returning the intended output.</p>
<p dir="auto">2025.03.25 12:35:53.413 *D* [comm.cs.1          ] Message dump:<br />
  ** 000000 | 00 41 50 00 00 00 00 28 00 00 00 E0 00 00 00 01 | .AP....(........<br />
  ** 000010 | 00 00 00 55 07 00 00 00 00 00 00 09 71 75 65 72 | ...U........quer<br />
  ** 000020 | 79 34 28 31 29 00 00 00                        | y4(1)...<br />
  ** code=0x0041 (CMD_GET_PARAMETER) version=5 flags=0x0000 id=224 size=40 numFields=1<br />
  ** 000000: [    85] UTF8-STRING "query4(1)"</p>
<p dir="auto">2025.03.25 12:35:53.413 *D* [comm.cs.1          ] Received message CMD_GET_PARAMETER (224)<br />
2025.03.25 12:35:53.413 *D* [comm.cs.1          ] Requesting metric "query4(1)"<br />
2025.03.25 12:35:55.015 *D* [db.query          ] Long running query: "MY SELECT QUERY" [5602 ms]<br />
2025.03.25 12:35:55.015 *D* [comm.cs.1          ] GetMetricValue("query4(1)"): 0 (SUCCESS) value = "88.78"<br />
2025.03.25 12:35:55.015 *D* [dbquery            ] H_DirectQueryConfigurable: Executing query "MY SELECT QUERY" in database "kmrcldb"<br />
2025.03.25 12:35:55.015 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 222; size 56; uncompressed)<br />
2025.03.25 12:35:55.015 *D* [comm.cs.1          ] Outgoing message dump:<br />
  ** 000000 | 00 1D 50 00 00 00 00 38 00 00 00 DE 00 00 00 02 | ..P....8........<br />
  ** 000010 | 00 00 00 1C 00 00 00 00 00 00 00 00 00 00 00 00 | ................<br />
  ** 000020 | 00 00 00 15 07 00 00 00 00 00 00 05 38 38 2E 37 | ............88.7<br />
  ** 000030 | 38 00 00 00 00 00 00 00                        | 8.......<br />
  ** code=0x001D (CMD_REQUEST_COMPLETED) version=5 flags=0x0000 id=222 size=56 numFields=2<br />
  ** 000000: [    28] INT32      0<br />
  ** 000010: [    21] UTF8-STRING "88.78"</p>
]]></description><link>https://forum.netxms.org/topic/8130/application-db-monitoring-query-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:59:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8130.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Mar 2025 07:35:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Application DB Monitoring Query <<ERROR>> on Tue, 25 Mar 2025 10:19:25 GMT]]></title><description><![CDATA[<p dir="auto">In overall it's not recommended to increase Agent.CommandTimeout too much (like &gt; then 5 seconds) because in situations when agents are slow to respond server will spend too much time waiting. <br />
If your query takes too long, you can use External metric provider - in this case command is executed in the backgound and agent caches values. <a href="https://netxms.org/documentation/adminguide/agent-management.html#externalmetricprovider" rel="nofollow ugc">https://netxms.org/documentation/adminguide/agent-management.html#externalmetricprovider</a></p>
]]></description><link>https://forum.netxms.org/post/34253</link><guid isPermaLink="true">https://forum.netxms.org/post/34253</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 25 Mar 2025 10:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to Application DB Monitoring Query <<ERROR>> on Tue, 25 Mar 2025 10:17:38 GMT]]></title><description><![CDATA[<p dir="auto">Solution was to increase the Agent.CommandTimeout value  ::)</p>
]]></description><link>https://forum.netxms.org/post/34252</link><guid isPermaLink="true">https://forum.netxms.org/post/34252</guid><dc:creator><![CDATA[deepb]]></dc:creator><pubDate>Tue, 25 Mar 2025 10:17:38 GMT</pubDate></item><item><title><![CDATA[Reply to Application DB Monitoring Query <<ERROR>> on Tue, 25 Mar 2025 09:35:40 GMT]]></title><description><![CDATA[<p dir="auto">The Query does not run from the DCI Parameter Selection form too. But it runs and gives output from nxget.</p>
]]></description><link>https://forum.netxms.org/post/34250</link><guid isPermaLink="true">https://forum.netxms.org/post/34250</guid><dc:creator><![CDATA[deepb]]></dc:creator><pubDate>Tue, 25 Mar 2025 09:35:40 GMT</pubDate></item><item><title><![CDATA[Reply to Application DB Monitoring Query <<ERROR>> on Tue, 25 Mar 2025 08:12:49 GMT]]></title><description><![CDATA[<p dir="auto">Origin : NetXMS Agent<br />
Metric : query4(1)<br />
There's no transformation.</p>
<p dir="auto">I think it has got something to do with query running time. If I simplify the select query then I do get output in the GUI.</p>
]]></description><link>https://forum.netxms.org/post/34248</link><guid isPermaLink="true">https://forum.netxms.org/post/34248</guid><dc:creator><![CDATA[deepb]]></dc:creator><pubDate>Tue, 25 Mar 2025 08:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to Application DB Monitoring Query <<ERROR>> on Tue, 25 Mar 2025 07:57:08 GMT]]></title><description><![CDATA[<p dir="auto">This means that something is configured incorrectly in the DCI. <br />
Is Origin set correctly? Anything in transformation script?</p>
]]></description><link>https://forum.netxms.org/post/34247</link><guid isPermaLink="true">https://forum.netxms.org/post/34247</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 25 Mar 2025 07:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to Application DB Monitoring Query <<ERROR>> on Tue, 25 Mar 2025 07:49:25 GMT]]></title><description><![CDATA[<p dir="auto">It is giving correct output</p>
<p dir="auto">C:\NetXMS\bin&gt;nxget 10.14.50.30 query4(1)<br />
90.7</p>
]]></description><link>https://forum.netxms.org/post/34246</link><guid isPermaLink="true">https://forum.netxms.org/post/34246</guid><dc:creator><![CDATA[deepb]]></dc:creator><pubDate>Tue, 25 Mar 2025 07:49:25 GMT</pubDate></item><item><title><![CDATA[Reply to Application DB Monitoring Query <<ERROR>> on Tue, 25 Mar 2025 07:40:28 GMT]]></title><description><![CDATA[<p dir="auto">What if you try to read value of that metric using nxget?</p>
]]></description><link>https://forum.netxms.org/post/34245</link><guid isPermaLink="true">https://forum.netxms.org/post/34245</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 25 Mar 2025 07:40:28 GMT</pubDate></item></channel></rss>