<?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[DBQuery error]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have searched all the corners i can find for an answer but to no avail so i will ask here and i am sorry if this is answered elsewhere.</p>
<p dir="auto">I am trying to add a dbquery that just simply count lines in a table, the agent is configured for dbquery using mssql.ddr.<br />
The account and query is working so thats not a problem but i can not get the agent to connect to sql server.</p>
<p dir="auto">In the config i have:</p>
<p dir="auto">SubAgent = dbquery.nsm<br />
Database = id=db1;driver=mssql.ddr;server=***;dbname=***;login=***;password=***<br />
Query = query1:db1:30:select count(*) from ***</p>
<p dir="auto">The log says only: [INFO ] Subagent "dbquery.nsm" loaded successfully<br />
No entry what so ever about any error or connection for the query</p>
<p dir="auto">So my question is how and where can i find more detail log on what the agent and subagents are doing so i can find a source for the problem, when i try to manually query via netxms management console i get "Cannot get current parameter value: Communication failure".</p>
<p dir="auto">Tried both DB.Query() and DB.QueryResult() same problem.</p>
<p dir="auto">I tried agent 1.2.16 and 2.0-M2</p>
]]></description><link>https://forum.netxms.org/topic/3606/dbquery-error</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:18:04 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3606.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Feb 2015 13:41:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DBQuery error on Wed, 18 Feb 2015 08:14:21 GMT]]></title><description><![CDATA[<p dir="auto">That worked but seems like some earlier version pushed install with -D 0 on the service though so the debuglevel config did not work at first but uninstalled and installed new and now it works.</p>
<p dir="auto">Now to the main problem it seems like it ignores the database setting no entry in debug log about this, all i get is:<br />
[INFO ] Subagent "dbquery.nsm" loaded successfully</p>
<p dir="auto">Then nothing until it tries query and get:<br />
[DEBUG] [session:0] Requesting table "DB.Query(db1,"select Count(*) from ***")"<br />
[DEBUG] DBQUERY: H_DirectQueryTable: no connection handle for database db1</p>
<p dir="auto">EDIT:</p>
<p dir="auto">Problem solved i have missed "*DBQUERY" in the config above Database</p>
]]></description><link>https://forum.netxms.org/post/15953</link><guid isPermaLink="true">https://forum.netxms.org/post/15953</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 18 Feb 2015 08:14:21 GMT</pubDate></item><item><title><![CDATA[Reply to DBQuery error on Tue, 17 Feb 2015 18:40:35 GMT]]></title><description><![CDATA[<p dir="auto">Add "DebugLevel=6" to nxagentd.conf and restart service (also I suggest to change "LogFile" parameter from "{syslog}" to some file on the disk, if it's not done yet - for example "LogFile=c:\netxms\agent.log").<br />
With this debug level you'll get most of DBQUERY related debug messages.</p>
]]></description><link>https://forum.netxms.org/post/15951</link><guid isPermaLink="true">https://forum.netxms.org/post/15951</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 17 Feb 2015 18:40:35 GMT</pubDate></item></channel></rss>