<?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[Agent service crashes, delaying boot times, BIG problem]]></title><description><![CDATA[<p dir="auto">On all the machines that I am monitoring, startup times are quite long</p>
<p dir="auto">Yesterday I found out that the NetXMS agent is causing this problem, basically the <strong>agent service</strong> is started but it immediately <strong>crashes</strong>, after some time it starts up again and everything is fine. The readouts are also fine.</p>
<p dir="auto">This problem is causing a two minute delay (or longer) on boot times for some of my more slower machines  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f620.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--angry" style="height:1.4em;width:auto;vertical-align:middle" title="&amp;gt;:(" alt="😠" /></p>
<p dir="auto">I am using version 0.2.21, I haven't yet tested on X64 machines but most likely the problem occurs there as well. So far I have only tested windows XP machines for this problem, I will test vista machines as well if you need that infromation.</p>
<p dir="auto">Config file:</p>
<pre><code>#
# NetXMS agent configuration file
# Created by agent installer at Tue May 13 14:14:16 2008
#

MasterServers = [censored]
LogFile = {syslog}
FileStore = C:\NetXMS\var
SubAgent = winperf.nsm
</code></pre>
<p dir="auto">Here are all the syslog reports (not running an english OS so I translated some things)</p>
<p dir="auto">1st one</p>
<pre><code>Type of event:	Information
Source of event:	NetXMS Win32 Agent
Category of event:	None
Event-ID:	3
Date		28-5-2008
Time:		9:04:57
User:		none
Computer:	Censored
Description:
Subagent "WINNT.NSM" loaded successfully
</code></pre>
<p dir="auto">2nd</p>
<pre><code>Type of event:	error
Source of event:	Service Control Manager
Category of event:	None
event-ID:	7022
Date:		28-5-2008
Time:		9:06:32
User:		none
Computer:	[censored]
Description:

The NeTXMS agent-service has crashed at startup.
</code></pre>
<p dir="auto">20 Second after that 5 other syslog events regarding the agent are created with the following descriptions:</p>
<p dir="auto">3d:</p>
<pre><code>Counter set B is empty, collector thread for that set will not start
</code></pre>
<p dir="auto">4th:</p>
<pre><code>Subagent "winperf.nsm" loaded successfully
</code></pre>
<p dir="auto">5th:</p>
<pre><code>Counter set C is empty, collector thread for that set will not start
</code></pre>
<p dir="auto">6th:</p>
<pre><code>Listening on socket 0.0.0.0:4700
</code></pre>
<p dir="auto">7th (23 seconds after error or so):</p>
<pre><code>NetXMS Agent started
</code></pre>
<p dir="auto">This is a very big problem as you can understand, if you need any other info please ask.</p>
]]></description><link>https://forum.netxms.org/topic/370/agent-service-crashes-delaying-boot-times-big-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:40:48 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/370.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 May 2008 07:22:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Tue, 10 Jun 2008 20:45:06 GMT]]></title><description><![CDATA[<p dir="auto">This means that WINPERF subagent has some problems when translating English counter names to Dutch names. I will check that code. It never runs on English version of Windows (it's why I was unable to reproduce this problem on my systems), and as far as I know runs without problem on Russian version.</p>
<p dir="auto">Regarding startup time - I see that there are only 12 seconds between agent start and socket binding error (11:28:08 - 11:28:20). Socket error most likely caused by already running nxagentd.exe instance. Could you please check that agent service is stopped and nobody listens on port 4700, and run agent in debug mode again so we have full startup timing?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1859</link><guid isPermaLink="true">https://forum.netxms.org/post/1859</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 10 Jun 2008 20:45:06 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Tue, 10 Jun 2008 10:54:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">After changing the config fiel in netxms\etc to your specified settings the crashing problem has been fixed <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">What does this mean?</p>
]]></description><link>https://forum.netxms.org/post/1856</link><guid isPermaLink="true">https://forum.netxms.org/post/1856</guid><dc:creator><![CDATA[xenth]]></dc:creator><pubDate>Tue, 10 Jun 2008 10:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Tue, 10 Jun 2008 09:42:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">Here is your requested log file, I left a comment for you at the bottom</p>
<pre><code>**************************************************************
[10-Jun-2008 11:28:08] Log file opened
[10-Jun-2008 11:28:08] Debug: Log file opened
[10-Jun-2008 11:28:08] Debug: Subagent API initialized
[10-Jun-2008 11:28:09] Subagent "WINNT.NSM" loaded successfully
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\Threads ==&gt; \Systeem\Threads
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\System Up Time ==&gt; \Systeem\Systeem ingeschakeld
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\Processor Queue Length ==&gt; \Systeem\Lengte van de processorwachtrij
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\Processor Queue Length ==&gt; \Systeem\Lengte van de processorwachtrij
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\Processor Queue Length ==&gt; \Systeem\Lengte van de processorwachtrij
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(_Total)\% Processor Time ==&gt; \Processor(_Total)\Percentage processortijd
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(_Total)\% Processor Time ==&gt; \Processor(_Total)\Percentage processortijd
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(_Total)\% Processor Time ==&gt; \Processor(_Total)\Percentage processortijd
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \PhysicalDisk(_Total)\Avg. Disk Queue Length ==&gt; \Fysieke schijf(_Total)\Gemiddelde wachtrijlengte voor schijf
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \PhysicalDisk(_Total)\% Disk Time ==&gt; \Fysieke schijf(_Total)\Percentage schijftijd
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(0)\% Processor Time ==&gt; \Processor(0)\Percentage processortijd
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(0)\% Processor Time ==&gt; \Processor(0)\Percentage processortijd
[10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(0)\% Processor Time ==&gt; \Processor(0)\Percentage processortijd
[10-jun-2008 11:28:19] Subagent "winperf.nsm" loaded successfully
[10-jun-2008 11:28:19] Counter set B is empty, collector thread for that set will not start
[10-jun-2008 11:28:19] Counter set C is empty, collector thread for that set will not start
[10-jun-2008 11:28:20] Unable to bind socket: Elk socketadres (protocol/netwerkadres/poort) kan normaal slechts één keer worden gebruikt.


===========	Victor: Bottom line of this log says:   Every socket address (protocol/networkadress/port) can only be used once. ===========
</code></pre>
<p dir="auto">I am rebooting right now to test the default counter config setting <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/1855</link><guid isPermaLink="true">https://forum.netxms.org/post/1855</guid><dc:creator><![CDATA[xenth]]></dc:creator><pubDate>Tue, 10 Jun 2008 09:42:47 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Mon, 09 Jun 2008 12:36:43 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I'm still unable to reproduce your situation nor identify possible cause. Could you please change logging to file by placing</p>
<pre><code>LogFile = C:\nxagentd.log
</code></pre>
<p dir="auto">to agent's config, run nxagentd -D and send me nxagentd.log file?</p>
<p dir="auto">Also, one more test for crash: try to uncomment winperf.nsm and add the following to agent's config:</p>
<pre><code>*WinPerf
EnableDefaultCounters = no
</code></pre>
<p dir="auto">will it crash as well?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1852</link><guid isPermaLink="true">https://forum.netxms.org/post/1852</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 09 Jun 2008 12:36:43 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Fri, 06 Jun 2008 09:04:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/1834">Agent service crashes, delaying boot times, BIG problem</a>:</p>
<blockquote>
<p dir="auto">Sorry for delay, I was quite busy <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /> Could you please do some additional tests?</p>
<ol>
<li>Comment out winperf.nsm subagent - I suspect that it can be the cause of crash.</li>
<li>If agent service crashes without winperf.nsm, run nxagentd.exe from command line with -D switch - it will cause agent to log additional debug information.</li>
</ol>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">Here are some tests I ran for you:</p>
<p dir="auto">Config file change:</p>
<blockquote>
<p dir="auto">#<br />
# NetXMS agent configuration file<br />
# Created by agent installer at Tue May 13 14:14:16 2008<br />
#</p>
<p dir="auto">MasterServers = 192.168.150.9<br />
LogFile = {syslog}<br />
FileStore = C:\NetXMS\var<br />
# SubAgent = winperf.nsm</p>
</blockquote>
<p dir="auto">Time from login screen to usable system: 2.40 Minutes  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">Agent completely disabled, time: 2.05 Minutes</p>
<p dir="auto">Standard settings: 3 minutes</p>
<p dir="auto">Winperf renamed and taken out of config: 2.30 minutes</p>
<p dir="auto">Placed config in <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title="C:" alt="😄" /> root to test nxagentd -D : 3.4 minutes</p>
<p dir="auto">System.uptime: Gives value of 574  (on for 5 minutes ~ )<br />
system.threads: gives value of 386</p>
<p dir="auto">NetXMS agent crash is gone after I make sure winperf doesn't start but slow start up isn't fixed by this.</p>
<p dir="auto">Hope this gives you enough info!</p>
]]></description><link>https://forum.netxms.org/post/1841</link><guid isPermaLink="true">https://forum.netxms.org/post/1841</guid><dc:creator><![CDATA[xenth]]></dc:creator><pubDate>Fri, 06 Jun 2008 09:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Wed, 04 Jun 2008 06:36:11 GMT]]></title><description><![CDATA[<p dir="auto">One more question: how counter names <strong>\System\System Up Time</strong> and <strong>\System\Threads</strong> looks in your localized Windows?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1837</link><guid isPermaLink="true">https://forum.netxms.org/post/1837</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 04 Jun 2008 06:36:11 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Wed, 04 Jun 2008 06:18:38 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for delay, I was quite busy <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /> Could you please do some additional tests?</p>
<ol>
<li>Comment out winperf.nsm subagent - I suspect that it can be the cause of crash.</li>
<li>If agent service crashes without winperf.nsm, run nxagentd.exe from command line with -D switch - it will cause agent to log additional debug information.</li>
</ol>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1834</link><guid isPermaLink="true">https://forum.netxms.org/post/1834</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 04 Jun 2008 06:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Tue, 03 Jun 2008 11:26:03 GMT]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I would really appreciate any updates  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/1833</link><guid isPermaLink="true">https://forum.netxms.org/post/1833</guid><dc:creator><![CDATA[xenth]]></dc:creator><pubDate>Tue, 03 Jun 2008 11:26:03 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Fri, 30 May 2008 06:07:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi, any updates you can give me on this problem are very welcome  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/1814</link><guid isPermaLink="true">https://forum.netxms.org/post/1814</guid><dc:creator><![CDATA[xenth]]></dc:creator><pubDate>Fri, 30 May 2008 06:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Wed, 28 May 2008 12:39:58 GMT]]></title><description><![CDATA[<p dir="auto">Thank you!</p>
<p dir="auto">I use the IP address, it's impossible to use the host name in my setup (Set the firewall to block DNS to NetXMS section)</p>
]]></description><link>https://forum.netxms.org/post/1794</link><guid isPermaLink="true">https://forum.netxms.org/post/1794</guid><dc:creator><![CDATA[xenth]]></dc:creator><pubDate>Wed, 28 May 2008 12:39:58 GMT</pubDate></item><item><title><![CDATA[Reply to Agent service crashes, delaying boot times, BIG problem on Wed, 28 May 2008 08:06:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Sounds very strange, I'll check the agent startup code. Just one question so far: do you use host name or IP address in MasterServers parameter?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1785</link><guid isPermaLink="true">https://forum.netxms.org/post/1785</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 28 May 2008 08:06:10 GMT</pubDate></item></channel></rss>