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

SYS_AGENT_UNREACHABLE

Scheduled Pinned Locked Moved Support
28 Posts 4 Posters 92.2k 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
    #8

    You should set full path to log file in LogFile parameter in nxagentd.conf.

    Best regards,
    Victor

    1 Reply Last reply
    0
    • N
      N
      Nomis
      wrote on last edited by
      #9

      Hm. This is quite weird. If I add the line "LogFile = C:\Program\NetXMS\etc\" (without quotation marks, and there's nothing wrong with the path), I am unable to restart the NetXMS service, or start it when it is stopped. If I delete the line, I can restart/start the service.

      I came to this in my fruitless attempts to generate a log file, I assumed that the service needed a restart to have the file created after the parameter was added.

      1 Reply Last reply
      0
      • T
        T
        tomaskir
        wrote on last edited by
        #10

        You need a file path, if you give it just directory, it will of course fail to start.

        Use for example:
        "LogFile = C:\Program\NetXMS\etc\nxagentd.log"

        Then restart the Agent service to apply that change.

        1 Reply Last reply
        0
        • N
          N
          Nomis
          wrote on last edited by
          #11

          Thank you, tomaskir. When I at first wrote [Path]\logfile.txt, NetXMS created a folder called logfile.txt, so I assumed that that last part should be a folder, but obviously the file extension .log is the key. -- I'll get back with the log file contents!

          1 Reply Last reply
          0
          • N
            N
            Nomis
            wrote on last edited by
            #12

            Nothing seems to get logged except the start of the service. Since then there have been several "Native agent is not responding" alarms, but nothing the logging picked up on.

            [25-Jan-2016 11:52:02.347] Log file opened
            [25-Jan-2016 11:52:02.347] [INFO ] Additional configs was loaded from F:\Program\NetXMS\etc\nxagentd.conf.d
            [25-Jan-2016 11:52:02.347] [INFO ] Debug level set to 0
            [25-Jan-2016 11:52:02.550] [INFO ] DB Library: Database driver "sqlite.ddr" loaded and initialized successfully
            [25-Jan-2016 11:52:02.659] [INFO ] Subagent "WINNT.NSM" loaded successfully
            [25-Jan-2016 11:52:02.659] [INFO ] Subagent "ecs.nsm" loaded successfully
            [25-Jan-2016 11:52:02.659] [INFO ] Subagent "ping.nsm" loaded successfully
            [25-Jan-2016 11:52:02.659] [INFO ] Subagent "logwatch.nsm" loaded successfully
            [25-Jan-2016 11:52:02.659] [INFO ] Subagent "portcheck.nsm" loaded successfully
            [25-Jan-2016 11:52:07.573] [INFO ] Subagent "winperf.nsm" loaded successfully
            [25-Jan-2016 11:52:07.573] [INFO ] Subagent "wmi.nsm" loaded successfully
            [25-Jan-2016 11:52:07.573] [INFO ] Subagent "ups.nsm" loaded successfully
            [25-Jan-2016 11:52:08.587] [INFO ] Listening on socket 0.0.0.0:4700
            [25-Jan-2016 11:52:08.587] [INFO ] Listening on socket [::]:4700
            [25-Jan-2016 11:52:09.601] [INFO ] NetXMS Agent started

            1 Reply Last reply
            0
            • T
              T
              tomaskir
              wrote on last edited by
              #13

              Did you set "DebugLevel = 6"?

              1 Reply Last reply
              0
              • N
                N
                Nomis
                wrote on last edited by
                #14

                Yes, "DebugLevel = 6".

                1 Reply Last reply
                0
                • T
                  T
                  tomaskir
                  wrote on last edited by
                  #15

                  @nomis said in SYS_AGENT_UNREACHABLE:

                  Yes, "DebugLevel = 6".

                  You log file shows

                  [25-Jan-2016 11:52:02.347] [INFO ] Debug level set to 0
                  
                  1 Reply Last reply
                  0
                  • N
                    N
                    Nomis
                    wrote on last edited by
                    #16

                    Am I missing something obvious or is this the Twilight Zone. I once more opened the nxagentd.conf file, ensured that DebugLevel is 6, saved and closed, restarted the Agent, and the log file once again says "0". This is the content of the conf-file:

                    #
                    # NetXMS agent configuration file
                    # Created by agent installer at Thu Sep 29 15:41:41 2011
                    #

                    MasterServers = 192.168.25.17

                    FileStore = F:\Program\NetXMS\var
                    LogFile = F:\Program\NetXMS\etc\nxagentd.log
                    DebugLevel = 6
                    SubAgent = ecs.nsm
                    SubAgent = ping.nsm
                    SubAgent = logwatch.nsm
                    SubAgent = portcheck.nsm
                    SubAgent = winperf.nsm
                    SubAgent = wmi.nsm
                    SubAgent = ups.nsm

                    1 Reply Last reply
                    0
                    • T
                      T
                      tomaskir
                      wrote on last edited by
                      #17

                      Please also check "F:\Program\NetXMS\etc\nxagentd.conf.d" if there is some config there or not.

                      1 Reply Last reply
                      0
                      • N
                        N
                        Nomis
                        wrote on last edited by
                        #18

                        That folder is empty.

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

                          Hi,

                          check if you have -D0 in service command line. If yes, remove it.

                          Best regards,
                          Victor

                          1 Reply Last reply
                          0
                          • N
                            N
                            Nomis
                            wrote on last edited by
                            #20

                            That did the trick, Victor. Now there's a lot of logging going on. I'll get back tomorrow with the result.

                            1 Reply Last reply
                            0
                            • N
                              N
                              Nomis
                              wrote on last edited by
                              #21

                              I'm attaching an hour's worth of the log file, between 09:00 and 10:00. During that time there were five alarms, approximately 09:17, 09:21, 09:23, 09:32, 09:42, and 09:48. Thanks for taking time!


                              NomisLog.txt

                              1 Reply Last reply
                              0
                              • N
                                N
                                Nomis
                                wrote on last edited by
                                #22

                                Personally I can't find anything consistent with the alarms in the logs. There are "Session diconnected by timeout", but these are quite frequent and not necessarily at the same minutes that we get the alarms.

                                If anybody finds anything or has any idea of a next step, please don't hesitate to let me know. 🙂

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

                                  Activity looks strange actually. There are multiple occurences of this pattern:

                                  [27-Jan-2016 09:19:38.747] [DEBUG] [session:1] Session disconnected by timeout (last activity timestamp is 1453882717)
                                  [27-Jan-2016 09:19:38.747] [DEBUG] [session:1] Session with 192.168.25.17 closed
                                  [27-Jan-2016 09:19:42.835] [DEBUG] Incoming connection from 192.168.25.17
                                  [27-Jan-2016 09:19:42.835] [DEBUG] Connection from 192.168.25.17 accepted

                                  then normal session init, parameter queries, and suddenly again session disconnect by timeout and almost immediate reconnect:

                                  [27-Jan-2016 09:19:42.850] [DEBUG] [session:1] Requesting parameter "Agent.Uptime"
                                  [27-Jan-2016 09:19:42.850] [DEBUG] [session:1] Sending message CMD_REQUEST_COMPLETED (size 56)
                                  [27-Jan-2016 09:20:43.861] [DEBUG] [session:1] Session disconnected by timeout (last activity timestamp is 1453882782)
                                  [27-Jan-2016 09:20:43.861] [DEBUG] [session:1] Session with 192.168.25.17 closed

                                  and inactivity timeout seems to be very short. Could it be that you have agent configuration parameter SessionIdleTimeout set to 0?

                                  Best regards,
                                  Victor

                                  1 Reply Last reply
                                  0
                                  • N
                                    N
                                    Nomis
                                    wrote on last edited by
                                    #24

                                    Thank you for taking time, Victor Kirhenshtein, I really appreciate it. Sorry to have to respond to every suggestion with a question, but where would that parameter be? - There's no such parameter in the agent's config file, and I can't find it in the object's Properties either.

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

                                      It is in nxagentd.conf,  but it has default value of 60 seconds on Windows, and in the log we see "idle" disconnect after just one second. Try to add

                                      SessionIdleTimeout = 600

                                      to nxagentd.conf and check if idle disconnect messages will still appear.

                                      Best regards,
                                      Victor

                                      1 Reply Last reply
                                      0
                                      • N
                                        N
                                        Nomis
                                        wrote on last edited by
                                        #26

                                        Thank you. I'll do that and report back later.

                                        1 Reply Last reply
                                        0
                                        • N
                                          N
                                          Nomis
                                          wrote on last edited by
                                          #27

                                          The annoying SYS_AGENT_UNREACHABLE seems to have disappeared after the SessionIdleTimout configuration. Thank you very much, 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