DCI checks over SSH
-
Hi,
actually, SSH data collection will be introduced in 2.1-M1 (it is already implemented in development branch). Right now you can try to build agent with SSH support (you'll need libssh development package installed) and use SSH subagent. It provides single parameter called SSH.Command with the following arguments:
SSH.Command(host,login,password,command).
For example, to get load average from AIX machine:
SSH.Command(10.10.1.1,root,password,"uptime | cut -d : -f 4 | cut -d , -f 1")
And server version 2.1 will hide these details and allow you to create DCIs with SSH source and convert them into requests to appropriate agents.
Best regards,
Victor -
-
-
For using SSH.Command parameter you only need to build agent. Version 2.1 will also include new data source "SSH" which will simplify configuration.
First release in 2.1 branch - 2.1-M1 - will be available in few days.
Best regards,
Victor -
-
Check that metric is provided by the agent:
nxget -I VM_IP|grep SSH
Also check agent version:
nxget VM_IP Agent.Version
-
Hello,
Here´s the result .
root@ubuntu-test:~# nxget -I 10.31.1.97 | grep SSH
ServiceCheck.SSH(*) INT "Status of remote SSH service"
ServiceResponseTime.SSH(*) INT "Response time of remote SSH service"
root@ubuntu-test:~# nxget 10.31.1.97 Agent.Version
2.1-M1I think my agent doesn´t support check by ssh.
How can i fix it?Thanks
-
Hi,
make sure you have
SubAgent = ssh.nsm
in nxagentd.conf on 10.31.1.97.
Best regards,
Victor -
-
Hi,
it seems to be missing in deb packages. We will check and re-package them to include SSH subagent. On Windows SSH subagent is included.
Best regards,
Victor
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