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. Raspberry Pi

Raspberry Pi

Scheduled Pinned Locked Moved Support
14 Posts 2 Posters 63.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.
  • V
    V
    Victor Kirhenshtein
    wrote on last edited by
    #4

    How did you compile agent for Pi? Can you send me config.h from your build? I suspect wrong byte order detection.

    Best regards,
    Victor

    1 Reply Last reply
    0
    • N
      N
      nihplod
      wrote on last edited by
      #5

      tried
      sudo sh configure --with-agent
      and
      sudo sh configure --with-agent --libdir=/usr/lib

      Cause there was first some lib errors, but that was solved with the libdir i think. I also moved all the libs to /usr/lib that was for nxagent first compile also cause it wasn't looking in /usr/local/lib apparently.

      attached config.h, the output from configure, the output from make and the output from make install


      config.h

      configure.txt

      make.txt

      make.install.txt

      1 Reply Last reply
      0
      • N
        N
        nihplod
        wrote on last edited by
        #6

        Any idea about what i could do about this?

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

          You can try to rebuild agent with --disable-iconv option. If this will not help, can you consider giving me shell access to it so I can debug the issue?

          Best regards,
          Victor

          1 Reply Last reply
          0
          • N
            N
            nihplod
            wrote on last edited by
            #8

            I tried to rebuild it with that flag but it seems i have the same issue.

            I sent you logindata and stuff for the unit.
            Just use sudo for root stuff. Dont break the small baby 😛

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

              Hi!

              Just try to connect to agent via ssh port forwarding - it responds correctly. I see in your config that you turn on authentication on agent - but do you enter correct authentication parameters in node properties? Currently everything is correct in my test:

              C:\Source\NetXMS\x64\debug>nxget -e 0 -p 4444 -a sha1 -s <secret> 127.0.0.1 Agent.Version
              1.2.1
              

              and on the agent:

              [31-Jul-2012 19:16:26] Incoming connection from 127.0.0.1
              [31-Jul-2012 19:16:26] Connection from 127.0.0.1 accepted
              [31-Jul-2012 19:16:26] [session:0] Received control message CMD_GET_NXCP_CAPS
              [31-Jul-2012 19:16:26] [session:0] Sending message CMD_NXCP_CAPS (size 16)
              [31-Jul-2012 19:16:26] [session:0] Received message CMD_AUTHENTICATE
              [31-Jul-2012 19:16:26] [session:0] Sending message CMD_REQUEST_COMPLETED (size 32)
              [31-Jul-2012 19:16:26] [session:0] Received message CMD_KEEPALIVE
              [31-Jul-2012 19:16:26] [session:0] Sending message CMD_REQUEST_COMPLETED (size 32)
              [31-Jul-2012 19:16:26] [session:0] Received message CMD_GET_PARAMETER
              [31-Jul-2012 19:16:26] [session:0] Requesting parameter "Agent.Version"
              [31-Jul-2012 19:16:26] [session:0] GetParameterValue(): result is 0 (SUCCESS)
              [31-Jul-2012 19:16:26] [session:0] Sending message CMD_REQUEST_COMPLETED (size 56)
              [31-Jul-2012 19:16:26] [session:0] Session with 127.0.0.1 closed
              

              Best regards,
              Victor

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

                Yeah, it seems that it wont work when i have authentication running.
                I have the same configuration as the other nodes and it will just halt when doing a poll, but if i comment out the authentication it will work. And i am using the very same settings that i've done for the other nodes that has working auth.

                Thanks for the help tho 😃

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

                  Can you show me screenshot of authentication properties in console for this node? nxget works fine with authentication, so server should also work.

                  Best regards,
                  Victor

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

                    I have tried with None, Plain text, md5 and sha1. But when i remove encryption from configuration file and restarts it works properly.

                    This is the result when i try accessing with the client using any setting when having force encryption activated on the node

                    [01-Aug-2012 09:12:21] Connection from 10.0.0.18 accepted
                    [01-Aug-2012 09:12:21] [session:0] Received control message CMD_GET_NXCP_CAPS
                    [01-Aug-2012 09:12:21] [session:0] Sending message CMD_NXCP_CAPS (size 16)
                    [01-Aug-2012 09:12:21] [session:0] Received message CMD_AUTHENTICATE
                    [01-Aug-2012 09:12:21] [session:0] Sending message CMD_REQUEST_COMPLETED (size 32)
                    [01-Aug-2012 09:12:21] [session:0] Received message CMD_REQUEST_SESSION_KEY
                    [01-Aug-2012 09:12:21] [session:0] Sending message CMD_SESSION_KEY (size 32)
                    [01-Aug-2012 09:12:21] [session:0] Session with 10.0.0.18 closed
                    

                    netxmsplain.png

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

                      But do you build agent with encryption enabled? I remember that on some stage of debugging you was rebuilding it without encryption.

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

                        It is built with --disable-iconv now, that is the only disable i have. Encryption isn't that important for me on my own private network at home. I can communicate with the node so it's not an issue now ^^

                        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