Raspberry Pi
-
If i disable the encryption in the agent and then tries to connect after done the changes in NetXMS console i get this result
[18-Jul-2012 09:40:04] Connection from 10.0.0.18 accepted
[18-Jul-2012 09:40:04] [session:0] Received control message CMD_GET_NXCP_CAPS
[18-Jul-2012 09:40:04] [session:0] Sending message CMD_NXCP_CAPS (size 16)
[18-Jul-2012 09:40:04] [session:0] Received message CMD_KEEPALIVE
[18-Jul-2012 09:40:04] [session:0] Sending message CMD_REQUEST_COMPLETED (size 32)
[18-Jul-2012 09:40:04] [session:0] Session with 10.0.0.18 closedAnd the only thing i can see on NetXMS server is this
[18-Jul-2012 11:40:02] Starting configuration poll for node Pi (ID: 299) [18-Jul-2012 11:40:02] ConfPoll(Pi): checking for NetXMS agent Flags={01000000} DynamicFlags={00000400} [18-Jul-2012 11:40:02] ConfPoll(Pi): checking for NetXMS agent - connecting [18-Jul-2012 11:40:02] ConfPoll(Pi): checking for NetXMS agent - failed to connect [18-Jul-2012 11:40:02] ConfPoll(Pi): checking for NetXMS agent - finished [18-Jul-2012 11:40:02] ConfPoll(Pi): checking for CheckPoint SNMP on port 260 [18-Jul-2012 11:40:10] Node::deleteInterface(node=Pi [299], interface=unknown [310]) [18-Jul-2012 11:40:10] Node::deleteInterface(node=Pi [299], interface=unknown [310]): unlinked from subnet 10.0.0.0/24 [102] [18-Jul-2012 11:40:10] Deleting object 310 [unknown] [18-Jul-2012 11:40:10] NetObj::Delete(): clearing parent list for object 310 [18-Jul-2012 11:40:10] NetObj::Delete(): clearing child list for object 310 [18-Jul-2012 11:40:10] NetObj::Delete(): deleting object 310 from indexes [18-Jul-2012 11:40:10] NetObj::Delete(): calling OnObjectDelete(310) [18-Jul-2012 11:40:10] Object 310 successfully deleted [18-Jul-2012 11:40:10] Node::createNewInterface(0A000016, 00000000, (null), 0, 0, bp=0, slot=0, port=0) called for node Pi [299] [18-Jul-2012 11:40:10] Node::createNewInterface: node=Pi [299] cluster=(null) [0] add=1 [18-Jul-2012 11:40:10] Finished configuration poll for node Pi (ID: 299) [18-Jul-2012 11:40:10] EVENT 16 (ID:8343 F:0x0001 S:0 TAG:"") FROM Pi: Interface "unknown" deleted (IP Addr: 10.0.0.22/255.255.255.0, IfIndex: 1) [18-Jul-2012 11:40:10] EVENT 11 (ID:8344 F:0x0001 S:0 TAG:"") FROM Pi: Node status changed to UNKNOWN [18-Jul-2012 11:40:10] EVENT 3 (ID:8345 F:0x0001 S:0 TAG:"") FROM Pi: Interface "unknown" added (IP Addr: 10.0.0.22/255.255.255.0, IfIndex: 1) [18-Jul-2012 11:40:10] Starting status poll for node Switch (ID: 104) [18-Jul-2012 11:40:11] AccountStatusUpdater: wakeup [18-Jul-2012 11:40:11] Finished status poll for node Switch (ID: 104) [18-Jul-2012 11:40:15] Starting configuration poll for node Minecraft (ID: 133) [18-Jul-2012 11:40:15] ConfPoll(Minecraft): checking for NetXMS agent Flags={08000002} DynamicFlags={00001002} [18-Jul-2012 11:40:15] ConfPoll(Minecraft): checking for NetXMS agent - connecting [18-Jul-2012 11:40:15] ConfPoll(Minecraft): checking for NetXMS agent - connected [18-Jul-2012 11:40:15] ConfPoll(Minecraft): checking for NetXMS agent - finished [18-Jul-2012 11:40:15] ConfPoll(Minecraft): calling SnmpCheckCommSettings() [18-Jul-2012 11:40:15] SnmpCheckV3CommSettings: failed [18-Jul-2012 11:40:15] SnmpCheckCommSettings: trying version 1 community 'public' [18-Jul-2012 11:40:19] * Syncer * Unable to delete object with id 310 because it is being referenced 1 time(s)Where do i need to dig to find something more?
-
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