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. problem with runing netxms agent

problem with runing netxms agent

Scheduled Pinned Locked Moved Support
14 Posts 4 Posters 43.9k 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.
  • Y
    Y
    yos
    wrote on last edited by
    #1

    i have problem whene i run the netxms agent

    /usr/local/bin/nxagentd –d
    FATAL ERROR: Cannot open log file
    Agent initialization failed

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

      Hi!

      Check that user you are running agent under has access to log file specified in nxagentd.conf, and that path to the file exists.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • Y
        Y
        yos
        wrote on last edited by
        #3

        hey
        thank i fix it
        now when i run this cmd:
        /usr/local/bin/netxmsd -d
        i get no output is that nrml ?

        and thanks for ur help 🙂

        1 Reply Last reply
        0
        • A
          A
          Alex Kirhenshtein
          wrote on last edited by
          #4

          Yes, there should be no output with '-d', it's daemon mode - it should silently detach and go to background.
          Before running it as daemon, you can check that config files are good and agent is working properly by running it with '-D3' (3 - debug level, can be from 0 to 9)

          1 Reply Last reply
          0
          • Y
            Y
            yos
            wrote on last edited by
            #5

            i run it :
            /usr/local/bin/netxmsd -D3

            and this is the result:
             Using configuration file "/etc/netxmsd.conf"
            wht does it mean ?
            thnks in advance

            1 Reply Last reply
            0
            • A
              A
              Alex Kirhenshtein
              wrote on last edited by
              #6

              Check that you have "LogFile" parameter in file /etc/netxmsd.conf

              1 Reply Last reply
              0
              • Y
                Y
                yos
                wrote on last edited by
                #7

                yup i have  LogFile = /var/log/netxmsd i n /etc/netxmsd.conf

                1 Reply Last reply
                0
                • A
                  A
                  Alex Kirhenshtein
                  wrote on last edited by
                  #8

                  Just realized – you running "netxmsd", but topic is about agent.

                  netxmsd - server binary
                  nxagentd - agent binary

                  There should be much more output with debug (-D) enabled, please post complete output and attach configuration files.

                  1 Reply Last reply
                  0
                  • Y
                    Y
                    yos
                    wrote on last edited by
                    #9

                    hi
                    i fix it thank you  for your help 🙂

                    1 Reply Last reply
                    0
                    • N
                      N
                      Nikk
                      wrote on last edited by
                      #10

                      I had the same issue, but after following your instructions i managed to get agent running, but then i got 2 fail lines:

                      [23-Jul-2013 15:33:34.847] Failed to load agent's registry from file /usr/local/var/netxms/registry.dat
                      [23-Jul-2013 15:33:34.847] Failed to save agent's registry to file /usr/local/var/netxms/registry.dat: No such file or directory

                      Is that okey? Or how should i fix them?

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

                        Hi!

                        It's not a big problem. Anyway, you can just create directory /usr/local/var/netxms to fix it.

                        Best regards,
                        Victor

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

                          Okey, thanks for respond!  🙂

                          1 Reply Last reply
                          0
                          • N
                            N
                            Nikk
                            wrote on last edited by
                            #13

                            And one more question,
                             how can I get access to write logs into those netxmsd and nxagentd files?
                            I got them written only in syslog file!

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

                              You should add parameter

                              LogFile = /path/to/log/file

                              to netxmsd.conf and nxagentd.conf respectively.

                              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