<?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[Changes to templates are lost when netxmsd gets stopped and started]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">the problem I have is with with a fresh installation of NetXMS 2.0.8 (also tried 2.0.7 and 2.1-M1).</p>
<p dir="auto">Changes to templates are fine as long netxmsd is running, but disappear when netxmsd is stopped/started.</p>
<p dir="auto">I tried NetXMS 2.0.7 and 2.1-M1 with sqlite and postgresql databases.</p>
<p dir="auto">With the postgres backend I get some SQL errors (below), the sqlite backend does not show any SQL errors.</p>
<p dir="auto">Is there something I miss ?</p>
<p dir="auto">Kind regards,</p>
<p dir="auto">Thomas</p>
<pre><code>[05-Jan-2017 13:22:52.347] [ERROR] SQL query failed (Query = "SELECT event_name FROM event_cfg WHERE event_name='?'"): 08P01 ERROR:  bind message supplies 1 parameters, but prepared statement "netxms_stmt_0x1efaf00_93" requires 0
[05-Jan-2017 13:22:52.351] [ERROR] SQL query failed (Query = "SELECT event_name FROM event_cfg WHERE event_name='?'"): 08P01 ERROR:  bind message supplies 1 parameters, but prepared statement "netxms_stmt_0x1f004f0_95" requires 0
</code></pre>
<pre><code>---------------------------------------------------------------------
                         Configure results
---------------------------------------------------------------------

Prefix                  : /usr/local
Platform                : Linux
Shared library suffix   : .so
IPv6 support            : YES
Build Server            : YES
Server libs             : -lldap -llber
LDAP support            : YES
XMPP support            : YES
ZeroMQ support          : YES
Encryption enabled      : YES
Build DB-Drivers        : pgsql sqlite odbc
Build Clients           : NO
Build Agent             : YES
Subagents list          : linux ds18x20
Build Static Agent      : NO
UNICODE build           : NO
Use internal libexpat   : YES
Use internal libtre     : YES
Use internal libjansson : YES
Use internal sqlite     : NO
Use internal zlib       : NO
Force 32bit build       : NO
C compiler              : gcc
C++ compiler            : g++
CPPFLAGS                :  -D_THREAD_SAFE -DTRE_WCHAR=1 -I/opt/openssl/include -D_GNU_SOURCE -O2 -Wformat -Wno-unused-result -Werror=return-type -I/usr/local/include -DPREFIX=\"${prefix}\" -DDATADIR=\"${pkgdatadir}\" -DBINDIR=\"${bindir}\" -DLIBDIR=\"${libdir}\" -DPKGLIBDIR=\"${pkglibdir}\" -DSTATEDIR=\"${localstatedir}/lib/netxms\" -DNDEBUG
CXXFLAGS                : -g -O2 -fno-rtti -fno-exceptions
CFLAGS                  : -g -O2
LDFLAGS                 :   -L/usr/local/lib -L/opt/openssl/lib -L/usr/local/lib
LIBS                    : -lm -lz -lresolv -ldl  -lpthread -lssl -lcrypto
PostgreSQL CPPFLAGS     : -I/usr/include/pgsql
PostgreSQL LDFLAGS      : -L/usr/lib64/pgsql
PostgreSQL LIBS         : -lpq
ODBC LIBS               : -lodbc
</code></pre>
]]></description><link>https://forum.netxms.org/topic/4856/changes-to-templates-are-lost-when-netxmsd-gets-stopped-and-started</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:07:26 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4856.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Jan 2017 12:57:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Changes to templates are lost when netxmsd gets stopped and started on Thu, 05 Jan 2017 17:32:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can also disable template auto import by setting server configuration parameter ImportConfigurationOnStartup to 0. It is preferred method, because after upgrade standard templates will be back in share/templates.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/21594</link><guid isPermaLink="true">https://forum.netxms.org/post/21594</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 05 Jan 2017 17:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to Changes to templates are lost when netxmsd gets stopped and started on Thu, 05 Jan 2017 14:58:40 GMT]]></title><description><![CDATA[<p dir="auto">OK.<br />
Found this myself.<br />
It seems that netxmsd loads all the template XML files living in .../share/templates/, overwriting all configured DCIs already in the database.</p>
<p dir="auto">Workaround:<br />
remove all templates in .../share/templates/ after first start of netxmsd.</p>
]]></description><link>https://forum.netxms.org/post/21590</link><guid isPermaLink="true">https://forum.netxms.org/post/21590</guid><dc:creator><![CDATA[twenrich]]></dc:creator><pubDate>Thu, 05 Jan 2017 14:58:40 GMT</pubDate></item></channel></rss>