Run Script to get DCI Data

Started by alike767, January 29, 2018, 11:10:56 PM

Previous topic - Next topic

alike767

I'm up to date now and the ssh.nsm is loaded.

On the properties for my client where I want to run the script, I have SSH with proper credentials and the Proxy set to my NetXMS server.

On the General Tab of the DCI for my client I have Origin SSH, Data Type String, Parameter uname -a.

I have not done anything to the NetXMS server other than confirm ssh.nsm is loaded.

I get a "Not supported" for the DCI configuration.  Have I done all of the steps?


Victor Kirhenshtein

Hi,

description looks correct. Please send your nxagentd.conf (from server machine) and check agent log file on debug level 6 for any messages with prefix "SSH".

Best regards,
Victor

alike767

nxagentd.conf from NetXMS Agent

# Log File
LogFile=/var/log/nxagentd
DebugLevel=6

# IP white list, can contain multiple records separated by comma.
# CIDR notation supported for subnets.
MasterServers=127.0.0.0/8

SubAgent = ssh.nsm


cat /var/log/nxagentd | grep ssh from NetXMS Agent which acts as Proxy

2018.02.01 13:33:25.204 *E* Error loading subagent module "ssh.nsm": /usr/lib/x86_64-linux-gnu/netxms/ssh.nsm: cannot open shared object file: No such file or directory
2018.02.06 09:37:39.437 *E* Error loading subagent module "ssh.nsm": /usr/lib/x86_64-linux-gnu/netxms/ssh.nsm: cannot open shared object file: No such file or directory
2018.02.06 13:57:35.483 *I* Subagent "SSH" (ssh.nsm) loaded successfully (version 2.2.3)
2018.02.06 15:02:40.687 *I* Subagent "SSH" (ssh.nsm) loaded successfully (version 2.2.3)
2018.02.07 16:05:19.093 *I* Subagent "SSH" (ssh.nsm) loaded successfully (version 2.2.3)
2018.02.07 16:09:25.185 *D* SSH: using libssh version 0.6.1/openssl/zlib
2018.02.07 16:09:25.185 *I* Subagent "SSH" (ssh.nsm) loaded successfully (version 2.2.3)


Am I correct that you were not asking for any logs on the server that the script is stored?  That doesn't have the agent on it as I didn't think it was needed. 

Thanks for your continued help and patience on this.

alike767

I noticed that on my NetXMS server, where the agent is installed, and the machine I want to be a proxy, where it says isagent it says no.  Is that a display bug, or is my NetXMS server not seeing itself as an agent.  As shown above, my agent service is running. 

Could this be the issue?

Victor Kirhenshtein

Hi,

yes, that's definitely an issue. Check that you have NetXMS server's external address in MasterServers on local agent.

Best regards,
Victor

alike767

That was it!!

Thanks for your patience on this.  I know it took awhile.