Raspberry Pi
-
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 -
tried
sudo sh configure --with-agent
and
sudo sh configure --with-agent --libdir=/usr/libCause 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
-
-
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 -
-
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.1and 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 closedBest regards,
Victor -
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

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

-
But do you build agent with encryption enabled? I remember that on some stage of debugging you was rebuilding it without encryption.
-
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