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. Creating DCI on joining auto filtered container

Creating DCI on joining auto filtered container

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 30.9k 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.
  • M
    M
    mitchellj
    wrote on last edited by
    #1

    Hiya,

    I am hoping someone can point me in the right direction. What I'm trying to do is

    When a new node gets added to the netxms server, if the node is an agent and is linux then automatically join it to a container called "Linux Servers".  <-- I can do this part easy enough
    Once a node has joined the Linux Servers container then automatically create a DCI (if it doesn't exist) on another Node (MonitoringServer) which performs a PortCheck on SSH

    I'm struggling with this second part, mainly finding someone to hook the "has joined" script onto, is this even possible? What I'm trying to accomplish is when a new node is added (of type linux) to the server I start monitoring its SSH port to make sure SSH is up and running.

    Thanks!
    mitch

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

      Hi!

      I see two possible solutions here:

      1. Create DCI for SSH monitoring on Linux server node, not on the monitoring node. You can use autobinding template for that. Because actual check should be done from management server, you can set "proxy node" for this DCI in template to be management server node. Then you'll have obe DCI per LInux node with actual data being collected from management server.

      2. You can use configuration poll hook script to detect Linux nodes and then use FindDCIByName and CreateDCI functions to create DCI on management server if it doesn't exist.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • M
        M
        mitchellj
        wrote on last edited by
        #3

        Thanks for the response.

        I've switched to using the proxy method since I think it does what I was trying to accomplish without a fuller understanding of how it worked 😛

        I have now ran into another problem though 😐 Whenever I switch on proxy mode in the DCI I get a "UNSUPPORTED" message.  I have enabled proxy support on the node I am using as a proxy in the agentd.conf file and restarted the node (127.0.0.1).

        Any pointers you can give would be much apprechiated.

        Thanks!
        mitch

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

          Hi!

          You have to add node where you create proxied DCI to proxy node's "trusted nodes" list, or turn off trusted nodes checking by setting server configuration variable CheckTrustedNodes to 0. A bit more detailed explanation of trusted nodes concept is here: http://wiki.netxms.org/wiki/SG:Security_Issues.

          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