Agent service crashes, delaying boot times, BIG problem
-
-
-
-
Sorry for delay, I was quite busy
Could you please do some additional tests?- Comment out winperf.nsm subagent - I suspect that it can be the cause of crash.
- 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.
Best regards,
Victor -
One more question: how counter names \System\System Up Time and \System\Threads looks in your localized Windows?
Best regards,
Victor -
@victor said in Agent service crashes, delaying boot times, BIG problem:
Sorry for delay, I was quite busy
Could you please do some additional tests?- Comment out winperf.nsm subagent - I suspect that it can be the cause of crash.
- 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.
Best regards,
VictorHere are some tests I ran for you:
Config file change:
#
# NetXMS agent configuration file
# Created by agent installer at Tue May 13 14:14:16 2008
#MasterServers = 192.168.150.9
LogFile = {syslog}
FileStore = C:\NetXMS\var
# SubAgent = winperf.nsmTime from login screen to usable system: 2.40 Minutes

Agent completely disabled, time: 2.05 Minutes
Standard settings: 3 minutes
Winperf renamed and taken out of config: 2.30 minutes
Placed config in
root to test nxagentd -D : 3.4 minutesSystem.uptime: Gives value of 574 (on for 5 minutes ~ )
system.threads: gives value of 386NetXMS agent crash is gone after I make sure winperf doesn't start but slow start up isn't fixed by this.
Hope this gives you enough info!
-
Hello!
I'm still unable to reproduce your situation nor identify possible cause. Could you please change logging to file by placing
LogFile = C:\nxagentd.logto agent's config, run nxagentd -D and send me nxagentd.log file?
Also, one more test for crash: try to uncomment winperf.nsm and add the following to agent's config:
*WinPerf EnableDefaultCounters = nowill it crash as well?
Best regards,
Victor -
Hi

Here is your requested log file, I left a comment for you at the bottom
************************************************************** [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 ==> \Systeem\Threads [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\System Up Time ==> \Systeem\Systeem ingeschakeld [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\Processor Queue Length ==> \Systeem\Lengte van de processorwachtrij [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\Processor Queue Length ==> \Systeem\Lengte van de processorwachtrij [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \System\Processor Queue Length ==> \Systeem\Lengte van de processorwachtrij [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(_Total)\% Processor Time ==> \Processor(_Total)\Percentage processortijd [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(_Total)\% Processor Time ==> \Processor(_Total)\Percentage processortijd [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(_Total)\% Processor Time ==> \Processor(_Total)\Percentage processortijd [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \PhysicalDisk(_Total)\Avg. Disk Queue Length ==> \Fysieke schijf(_Total)\Gemiddelde wachtrijlengte voor schijf [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \PhysicalDisk(_Total)\% Disk Time ==> \Fysieke schijf(_Total)\Percentage schijftijd [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(0)\% Processor Time ==> \Processor(0)\Percentage processortijd [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(0)\% Processor Time ==> \Processor(0)\Percentage processortijd [10-jun-2008 11:28:19] Debug: WINPERF: Counter translated: \Processor(0)\% Processor Time ==> \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. ===========I am rebooting right now to test the default counter config setting

-
-
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.
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?
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login