Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Agent service crashes, delaying boot times, BIG problem

Agent service crashes, delaying boot times, BIG problem

Scheduled Pinned Locked Moved Support
12 Posts 2 Posters 37.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    V
    Victor Kirhenshtein
    wrote on last edited by
    #2

    Hi!

    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?

    Best regards,
    Victor

    1 Reply Last reply
    0
    • X
      X
      xenth
      wrote on last edited by
      #3

      Thank you!

      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)

      1 Reply Last reply
      0
      • X
        X
        xenth
        wrote on last edited by
        #4

        Hi, any updates you can give me on this problem are very welcome  🙂

        1 Reply Last reply
        0
        • X
          X
          xenth
          wrote on last edited by
          #5

          Hello!

          I would really appreciate any updates  🙂

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #6

            Sorry for delay, I was quite busy 😞 Could you please do some additional tests?

            1. Comment out winperf.nsm subagent - I suspect that it can be the cause of crash.
            2. 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

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #7

              One more question: how counter names \System\System Up Time and \System\Threads looks in your localized Windows?

              Best regards,
              Victor

              1 Reply Last reply
              0
              • X
                X
                xenth
                wrote on last edited by
                #8

                @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?

                1. Comment out winperf.nsm subagent - I suspect that it can be the cause of crash.
                2. 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

                Here 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.nsm

                Time 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 minutes

                System.uptime: Gives value of 574  (on for 5 minutes ~ )
                system.threads: gives value of 386

                NetXMS 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!

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #9

                  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.log
                  

                  to 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 = no
                  

                  will it crash as well?

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • X
                    X
                    xenth
                    wrote on last edited by
                    #10

                    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 🙂

                    1 Reply Last reply
                    0
                    • X
                      X
                      xenth
                      wrote on last edited by
                      #11

                      Hi!

                      After changing the config fiel in netxms\etc to your specified settings the crashing problem has been fixed 🙂

                      What does this mean?

                      1 Reply Last reply
                      0
                      • V
                        V
                        Victor Kirhenshtein
                        wrote on last edited by
                        #12

                        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

                        1 Reply Last reply
                        0

                        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
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        Powered by NodeBB Contributors
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups