Agent installed on Damn small Linux has no supported parameters

Started by code4pay, September 09, 2009, 08:37:17 AM

Previous topic - Next topic

code4pay

We are using some DSL based appliances that run on compact flash. I managed to get the agents nxagent installed ok  but when I query any agent param it reports that it does not support this parameter.  I can access the device from the server and it says it is active and I can view the agent config via the console.   However the client information shows Agent active but no agent version info.   I have run with the -D flag it shows the server accessing the agent but no other info.    I compiled th agent on a slackware box same kernel and GLIBC version and it works ok.    DSL is pretty cut down version of linux could there be a component missing?   

Thanks

Victor Kirhenshtein

Hello!

Try to do forced configuration poll on problematic node (right click node, select Poll -> Configuration). If it will not help, post configuration poll's output.

Best regards,
Victor

code4pay

Did a forced Poll,
received this message
[10-Sep-2009 07:16:19] Sending poll request to server...
[10-Sep-2009 07:16:19] Poll request accepted
[10-Sep-2009 07:16:19] Starting configuration poll for node dsltest.aust.csc.com
[10-Sep-2009 07:16:19] Checking node's capabilities...
[10-Sep-2009 07:16:19]    Checking NetXMS agent...
[10-Sep-2009 07:16:19] i   NetXMS native agent is active
[10-Sep-2009 07:16:19]    Checking SNMP...
[10-Sep-2009 07:16:20]    SNMP agent is active (version 2c)
[10-Sep-2009 07:16:20]    System description changed to Linux dsltest 2.4.31 #6 SMP Fri Oct 21 15:15:54 EDT 2005 i686
[10-Sep-2009 07:16:20] Capability check finished
Checking interface configuration...
[10-Sep-2009 07:16:21] Interface configuration check finished
[10-Sep-2009 07:16:21] Checking node name
[10-Sep-2009 07:16:21] Node name is OK
[10-Sep-2009 07:16:21] Finished configuration poll for node dsltest.aust.csc.com
Node configuration was changed after poll
[10-Sep-2009 07:16:21] Poll completed successfully


If I now right click and go tools, info Arp Cache (agent) I get "Error getting data from node: Parameter is not supported by agent."

I get the same message if I go tools, info , agent, Supported parameters.

Thank you for your help.


code4pay

Some further info I confirmed  that libnsm_linux.so was available and had all its required libs.

ldd libnsm_linux.so
        libpthread.so.0 => /lib/libpthread.so.0 (0x4001f000)
        libexpat.so.0 => /usr/lib/./libexpat.so.0 (0x4006f000)
        libdl.so.2 => /lib/libdl.so.2 (0x4008d000)
        libcrypto.so.0 => /usr/lib/./libcrypto.so.0 (0x40090000)
        libstdc++.so.5 => /usr/lib/./libstdc++.so.5 (0x401c9000)
        libm.so.6 => /lib/libm.so.6 (0x40281000)
        libc.so.6 => /lib/libc.so.6 (0x402a3000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x403d1000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)



code4pay

More info

I installed on another dsl client  same thing happened.

the debug is now showing

Configuration file OK
[10-Sep-2009 09:57:25] Debug: Log file opened
[10-Sep-2009 09:57:25] Debug: Subagent API initialized
[10-Sep-2009 09:57:26] Subagent "/opt/netxms/lib/libnsm_linux.so" loaded successfully
[10-Sep-2009 09:57:26] Subagent "Linux" already loaded from module "/opt/netxms/lib/libnsm_linux.so"
[10-Sep-2009 09:57:27] Debug: Trying to bind on 0.0.0.0:4700
[10-Sep-2009 09:57:27] Listening on socket 0.0.0.0:4700
[10-Sep-2009 09:57:28] NetXMS Agent started
Agent running. Press Ctrl+C to shutdown.
[10-Sep-2009 09:57:50] Debug: Incoming connection from 20.250.128.190
[10-Sep-2009 09:57:50] Debug: Connection from 20.250.128.190 accepted
[10-Sep-2009 09:57:50] Debug: {0} Received control message CMD_GET_NXCP_CAPS
[10-Sep-2009 09:57:50] Debug: {0} Sending message CMD_NXCP_CAPS (size 16)
[10-Sep-2009 09:57:50] Debug: {0} Received message CMD_KEEPALIVE
[10-Sep-2009 09:57:50] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
[10-Sep-2009 09:57:50] Debug: {0} Session with 20.250.128.190 closed
[10-Sep-2009 09:57:51] Debug: Incoming connection from 20.250.128.190
[10-Sep-2009 09:57:51] Debug: Connection from 20.250.128.190 accepted
[10-Sep-2009 09:57:51] Debug: {0} Received control message CMD_GET_NXCP_CAPS
[10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_NXCP_CAPS (size 16)
[10-Sep-2009 09:57:51] Debug: {0} Received message CMD_KEEPALIVE
[10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
[10-Sep-2009 09:57:51] Debug: {0} Received message CMD_ENABLE_AGENT_TRAPS
[10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
[10-Sep-2009 09:57:51] Debug: {0} Received message CMD_GET_PARAMETER
[10-Sep-2009 09:57:51] Debug: {0} Requesting parameter ""
[10-Sep-2009 09:57:51] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
[10-Sep-2009 09:58:13] Debug: Incoming connection from 20.250.128.190



note I manually added the linux subagent incase that was the issue.

Notice the Requesting Parameter is empty ?

Victor Kirhenshtein

Try to build agent with configure option --disable-iconv. By default NetXMS uses iconv for character conversion, but it may be broken on your DSL router. Empty requested parameters most likely means that agent was unable to correctly convert UNICODE string received from server to single-byte string.

Best regards,
Victor

code4pay