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. Run Script to get DCI Data

Run Script to get DCI Data

Scheduled Pinned Locked Moved Support
21 Posts 3 Posters 45.3k 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
    #11

    Seems to be packaging error. We will check.

    Best regards,
    Victor

    1 Reply Last reply
    0
    • A
      A
      alike767
      wrote on last edited by
      #12

      Thanks for checking. 

      Is it possible to make that file available via FTP or another method?  Would it be as simple as downloading a single file and putting it in the right place?

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

        Hi,

        we just published release 2.2.3 which should include ssh.nsm.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • A
          A
          alike767
          wrote on last edited by
          #14

          I'm running Ubuntu 14.04.5 and did an apt-get update/upgrade.

          dpkg -s netxms-agent is 2.2.2-1.

          Do I need to update OS or source list to get 2.3?

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

            Hi,

            packages for Ubuntu 14.04 (trusty) are published. Please check that you have correct source - should be:

            deb https://packages.netxms.org/ubutu trusty main
            

            Best regards,
            Victor

            1 Reply Last reply
            0
            • A
              A
              alike767
              wrote on last edited by
              #16

              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?

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

                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

                1 Reply Last reply
                0
                • A
                  A
                  alike767
                  wrote on last edited by
                  #18

                  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.

                  1 Reply Last reply
                  0
                  • A
                    A
                    alike767
                    wrote on last edited by
                    #19

                    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?

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

                      Hi,

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

                      Best regards,
                      Victor

                      1 Reply Last reply
                      0
                      • A
                        A
                        alike767
                        wrote on last edited by
                        #21

                        That was it!!

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

                        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