Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. DCI checks over SSH

DCI checks over SSH

Scheduled Pinned Locked Moved Support
11 Posts 6 Posters 29.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    V
    Victor Kirhenshtein
    wrote on last edited by
    #2

    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

    1 Reply Last reply
    0
    • G
      G
      gmonk63
      wrote on last edited by
      #3

      Do i need to build the server as well or just the client  ?  How stable is the current dev branch ?

      1 Reply Last reply
      0
      • R
        R
        ricktendo
        wrote on last edited by
        #4

        Wow great, any ETA on the 2.1 release?

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #5

          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

          1 Reply Last reply
          0
          • Z
            Z
            zorzevey
            wrote on last edited by
            #6

            Hello,

            I installed the beta version on a new VM to try version.
            I want to check over ssh command.
            I did it on DCI, but changed the status to UNSUPPORTED.
            I used same example you gave.

            What I miss?

            1 Reply Last reply
            0
            • A
              A
              Alex Kirhenshtein
              wrote on last edited by
              #7

              Check that metric is provided by the agent:

              nxget -I VM_IP|grep SSH

              Also check agent version:

              nxget VM_IP Agent.Version

              1 Reply Last reply
              0
              • Z
                Z
                zorzevey
                wrote on last edited by
                #8

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

                I think my agent doesn´t  support check by ssh.
                How can i fix it?

                Thanks

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #9

                  Hi,

                  make sure you have

                  SubAgent = ssh.nsm

                  in nxagentd.conf on 10.31.1.97.

                  Best regards,
                  Victor

                  1 Reply Last reply
                  0
                  • F
                    F
                    frostasm
                    wrote on last edited by
                    #10

                    Hi Victor.

                    I started using NetXMS and I need to get data over the SSH protocol. I'm wondering if the ssh sub-agent is included in release version 2.1 by default or I must to build it manually?

                    1 Reply Last reply
                    0
                    • V
                      V
                      Victor Kirhenshtein
                      wrote on last edited by
                      #11

                      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

                      1 Reply Last reply
                      0

                      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
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      Powered by NodeBB Contributors
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups