<?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[Template DCI's disappear]]></title><description><![CDATA[<p dir="auto">Twice now I've had the DCI's in multiple templates disappear.  The most recent occurrence was this past weekend.  I'm the only one with management access so I know it's not something I've done.  It's frustrating to have to re-create these DCI's.  This time I'm going to export them to ease re-creating them, but the bigger issue is why are they disappearing?  What do I need to do to debug this issue?</p>
]]></description><link>https://forum.netxms.org/topic/3396/template-dci-s-disappear</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:18:11 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3396.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Oct 2014 13:04:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Template DCI's disappear on Thu, 16 Oct 2014 19:51:13 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your help.  I'll download the new version tomorrow, then.</p>
]]></description><link>https://forum.netxms.org/post/15056</link><guid isPermaLink="true">https://forum.netxms.org/post/15056</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Thu, 16 Oct 2014 19:51:13 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Thu, 16 Oct 2014 19:25:31 GMT]]></title><description><![CDATA[<p dir="auto">Yes, thank you. There was a bug (related to MS SQL only), I've fixed it. Release 1.2.17 will contain this fix (we plan to release it tomorrow).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15055</link><guid isPermaLink="true">https://forum.netxms.org/post/15055</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 16 Oct 2014 19:25:31 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Thu, 16 Oct 2014 18:19:56 GMT]]></title><description><![CDATA[<p dir="auto">Hopefully this is what you need.</p>
<p dir="auto">TABLE_QUALIFIER	TABLE_OWNER	TABLE_NAME	COLUMN_NAME	DATA_TYPE	TYPE_NAME	PRECISION	LENGTH	SCALE	RADIX	NULLABLE	REMARKS	COLUMN_DEF	SQL_DATA_TYPE	SQL_DATETIME_SUB	CHAR_OCTET_LENGTH	ORDINAL_POSITION	IS_NULLABLE	SS_DATA_TYPE<br />
netxms	dbo	items	item_id	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	1	NO	56<br />
netxms	dbo	items	node_id	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	2	NO	56<br />
netxms	dbo	items	template_id	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	3	NO	56<br />
netxms	dbo	items	template_item_id	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	4	NO	56<br />
netxms	dbo	items	name	12	varchar	1023	1023	NULL	NULL	1	NULL	NULL	12	NULL	1023	5	YES	39<br />
netxms	dbo	items	description	12	varchar	255	255	NULL	NULL	1	NULL	NULL	12	NULL	255	6	YES	39<br />
netxms	dbo	items	flags	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	7	NO	56<br />
netxms	dbo	items	source	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	8	NO	56<br />
netxms	dbo	items	snmp_port	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	9	NO	56<br />
netxms	dbo	items	datatype	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	10	NO	56<br />
netxms	dbo	items	polling_interval	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	11	NO	56<br />
netxms	dbo	items	retention_time	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	12	NO	56<br />
netxms	dbo	items	status	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	13	NO	56<br />
netxms	dbo	items	snmp_raw_value_type	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	14	NO	56<br />
netxms	dbo	items	delta_calculation	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	15	NO	56<br />
netxms	dbo	items	transformation	-1	text	2147483647	2147483647	NULL	NULL	0	NULL	NULL	-1	NULL	2147483647	16	NO	35<br />
netxms	dbo	items	instance	12	varchar	255	255	NULL	NULL	1	NULL	NULL	12	NULL	255	17	YES	39<br />
netxms	dbo	items	system_tag	12	varchar	255	255	NULL	NULL	1	NULL	NULL	12	NULL	255	18	YES	39<br />
netxms	dbo	items	resource_id	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	19	NO	56<br />
netxms	dbo	items	proxy_node	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	20	NO	56<br />
netxms	dbo	items	base_units	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	21	NO	56<br />
netxms	dbo	items	unit_multiplier	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	22	NO	56<br />
netxms	dbo	items	custom_units_name	12	varchar	63	63	NULL	NULL	1	NULL	NULL	12	NULL	63	23	YES	39<br />
netxms	dbo	items	perftab_settings	-1	text	2147483647	2147483647	NULL	NULL	1	NULL	NULL	-1	NULL	2147483647	24	YES	35<br />
netxms	dbo	items	instd_method	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	25	NO	56<br />
netxms	dbo	items	instd_data	12	varchar	255	255	NULL	NULL	1	NULL	NULL	12	NULL	255	26	YES	39<br />
netxms	dbo	items	instd_filter	-1	text	2147483647	2147483647	NULL	NULL	1	NULL	NULL	-1	NULL	2147483647	27	YES	35<br />
netxms	dbo	items	samples	4	int	10	4	0	10	0	NULL	NULL	4	NULL	NULL	28	NO	56<br />
netxms	dbo	items	comments	-1	text	2147483647	2147483647	NULL	NULL	1	NULL	NULL	-1	NULL	2147483647	29	YES	35</p>
]]></description><link>https://forum.netxms.org/post/15054</link><guid isPermaLink="true">https://forum.netxms.org/post/15054</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Thu, 16 Oct 2014 18:19:56 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Thu, 16 Oct 2014 17:58:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">can you please send definition of table "items" as it is created in your database?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15053</link><guid isPermaLink="true">https://forum.netxms.org/post/15053</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 16 Oct 2014 17:58:08 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Tue, 14 Oct 2014 21:05:58 GMT]]></title><description><![CDATA[<p dir="auto">It looks like a possible issue with the DCItem::saveToDB function.  Here is the debug output from one attempt at binding a template to a node.  It looks like the "INSERT INTO items" query is off by one parameter since 15943 is the template id and not the node id:</p>
<p dir="auto">[14-Oct-2014 16:49:33.119] [DEBUG] Successful sync query: "INSERT INTO dct_node_map (template_id,node_id) VALUES (15943,8168)" [1 ms]<br />
[14-Oct-2014 16:49:33.119] [DEBUG] Successful sync query: "INSERT INTO dct_node_map (template_id,node_id) VALUES (15943,10760)" [0 ms]<br />
[14-Oct-2014 16:49:33.120] [DEBUG] Successful sync query: "INSERT INTO dct_node_map (template_id,node_id) VALUES (15943,10909)" [1 ms]<br />
[14-Oct-2014 16:49:33.120] [DEBUG] Successful sync query: "INSERT INTO dct_node_map (template_id,node_id) VALUES (15943,11082)" [0 ms]<br />
[14-Oct-2014 16:49:33.121] [DEBUG] Successful sync query: "INSERT INTO dct_node_map (template_id,node_id) VALUES (15943,11255)" [1 ms]<br />
[14-Oct-2014 16:49:33.121] [DEBUG] Successful sync query: "INSERT INTO dct_node_map (template_id,node_id) VALUES (15943,11384)" [0 ms]<br />
[14-Oct-2014 16:49:33.122] [DEBUG] Successful sync query: "INSERT INTO dct_node_map (template_id,node_id) VALUES (15943,11765)" [1 ms]<br />
[14-Oct-2014 16:49:33.122] [DEBUG] Successful sync query: "DELETE FROM acl WHERE object_id=15943" [0 ms]<br />
[14-Oct-2014 16:49:33.122] [DEBUG] {0x7f9e68018130} Successful prepare: "SELECT item_id FROM items WHERE item_id=?" [0 ms]<br />
[14-Oct-2014 16:49:33.122] [DEBUG] {0x7f9e68018130} bind at pos 1: "282"<br />
[14-Oct-2014 16:49:33.122] [DEBUG] Successful prepared sync query: "SELECT item_id FROM items WHERE item_id=?" [0 ms]<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} Successful prepare: "INSERT INTO items (node_id,template_id,name,source,datatype,polling_interval,retention_time,status,delta_calculation,transformation,description,instance,template_item_id,flags,resource_id,proxy_node,base_units,unit_multiplier,custom_units_name,perftab_settings,system_tag,snmp_port,snmp_raw_value_type,instd_method,instd_data,instd_filter,samples,comments,item_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" [0 ms]<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 1: "15943"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 2: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 3: "Dummy"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 4: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 5: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 6: "300"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 7: "5"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 8: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 9: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 10: "use US::Utilities;<br />
use US::CiscoCommon;</p>
<p dir="auto">return ciscoEnvMonTemperatureStatusValue($node-&gt;name);"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 11: "Temperature"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 12: ""<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 13: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 14: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 15: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 16: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 17: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 18: "1"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 19: ""<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 20: "&lt;config&gt;<br />
   &lt;enabled&gt;false&lt;/enabled&gt;<br />
   &lt;autoScale&gt;true&lt;/autoScale&gt;<br />
   &lt;logScaleEnabled&gt;false&lt;/logScaleEnabled&gt;<br />
   &lt;minYScaleValue&gt;1&lt;/minYScaleValue&gt;<br />
   &lt;maxYScaleValue&gt;100&lt;/maxYScaleValue&gt;<br />
   &lt;timeRange&gt;1&lt;/timeRange&gt;<br />
   &lt;timeUnits&gt;1&lt;/timeUnits&gt;<br />
   &lt;type&gt;0&lt;/type&gt;<br />
   &lt;color&gt;49152&lt;/color&gt;<br />
   &lt;title&gt;&lt;/title&gt;<br />
   &lt;name&gt;&lt;/name&gt;<br />
   &lt;showThresholds&gt;false&lt;/showThresholds&gt;<br />
   &lt;parentDciId&gt;0&lt;/parentDciId&gt;<br />
   &lt;order&gt;100&lt;/order&gt;<br />
&lt;/config&gt;"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 21: ""<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 22: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 23: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 24: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 25: ""<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 26: ""<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 27: "0"<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 28: ""<br />
[14-Oct-2014 16:49:33.123] [DEBUG] {0x7f9e6804a350} bind at pos 29: "282"<br />
[14-Oct-2014 16:49:33.124] [DEBUG] Failed prepared sync query: "INSERT INTO items (node_id,template_id,name,source,datatype,polling_interval,retention_time,status,delta_calculation,transformation,description,instance,template_item_id,flags,resource_id,proxy_node,base_units,unit_multiplier,custom_units_name,perftab_settings,system_tag,snmp_port,snmp_raw_value_type,instd_method,instd_data,instd_filter,samples,comments,item_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" [1 ms]<br />
[14-Oct-2014 16:49:33.124] [ERROR] SQL query failed (Query = "INSERT INTO items (node_id,template_id,name,source,datatype,polling_interval,retention_time,status,delta_calculation,transformation,description,instance,template_item_id,flags,resource_id,proxy_node,base_units,unit_multiplier,custom_units_name,perftab_settings,system_tag,snmp_port,snmp_raw_value_type,instd_method,instd_data,instd_filter,samples,comments,item_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"): Operand type clash: int is incompatible with text<br />
[14-Oct-2014 16:49:33.125] [DEBUG] Event::expandText(event=0x7f9e6804f620 sourceObject=100 template='Database query failed (Query: %1; Error: %2)' alarmMsg='(null)' alarmKey='(null)')<br />
[14-Oct-2014 16:49:33.125] [DEBUG] CorrelateEvent: event SYS_DB_QUERY_FAILED id 2625549 source <a href="http://ourserver.ourdomain.com" rel="nofollow ugc">ourserver.ourdomain.com</a> [100]</p>
]]></description><link>https://forum.netxms.org/post/15035</link><guid isPermaLink="true">https://forum.netxms.org/post/15035</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Tue, 14 Oct 2014 21:05:58 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Tue, 14 Oct 2014 12:31:57 GMT]]></title><description><![CDATA[<p dir="auto">The long answer is that I am rebuilding our NetXMS monitoring server.  The previous one was in service for two years.  With all of the new features that have been added, in addition to more experience with NetXMS, I've found better, cleaner ways to do the same monitoring.  That being said, I had created 4 templates, each with 6-12 SNMP-based DCI's and a couple of them had thresholds set.  It appears that none of the DCI's are being saved to the database.</p>
]]></description><link>https://forum.netxms.org/post/15033</link><guid isPermaLink="true">https://forum.netxms.org/post/15033</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Tue, 14 Oct 2014 12:31:57 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Tue, 14 Oct 2014 08:01:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">it happens when server tries to save DCI configuration to database. What DCIs did you edit recently?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15025</link><guid isPermaLink="true">https://forum.netxms.org/post/15025</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 14 Oct 2014 08:01:13 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Mon, 13 Oct 2014 20:52:39 GMT]]></title><description><![CDATA[<p dir="auto">I have a bunch of these errors:</p>
<p dir="auto">[13-Oct-2014 16:48:07.811] [ERROR] SQL query failed (Query = "INSERT INTO items (node_id,template_id,name,source,datatype,polling_interval,retention_time,status,delta_calculation,transformation,description,instance,template_item_id,flags,resource_id,proxy_node,base_units,unit_multiplier,custom_units_name,perftab_settings,system_tag,snmp_port,snmp_raw_value_type,instd_method,instd_data,instd_filter,samples,comments,item_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"): Operand type clash: int is incompatible with text</p>
]]></description><link>https://forum.netxms.org/post/15019</link><guid isPermaLink="true">https://forum.netxms.org/post/15019</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Mon, 13 Oct 2014 20:52:39 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Mon, 13 Oct 2014 19:23:42 GMT]]></title><description><![CDATA[<p dir="auto">I'll have to check with our Sys Admins.  This is running on a MSSQL cluster and occasionally the database gets moved to another server by the cluster service.  I wonder if that factors in.  BTW: I'm running 1.2.16.</p>
]]></description><link>https://forum.netxms.org/post/15017</link><guid isPermaLink="true">https://forum.netxms.org/post/15017</guid><dc:creator><![CDATA[GTM]]></dc:creator><pubDate>Mon, 13 Oct 2014 19:23:42 GMT</pubDate></item><item><title><![CDATA[Reply to Template DCI's disappear on Mon, 13 Oct 2014 16:53:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Did you restart netxmsd in between? If yes, check server's log file for possible SQL errors - maybe your changes was not saved in database. Check audit log to see when last changes to template objects was done.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15012</link><guid isPermaLink="true">https://forum.netxms.org/post/15012</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 13 Oct 2014 16:53:02 GMT</pubDate></item></channel></rss>