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. Development
  3. New module for drawing network maps

New module for drawing network maps

Scheduled Pinned Locked Moved Development
6 Posts 2 Posters 48.7k 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.
  • D
    D
    dima-u
    wrote on last edited by
    #1

    Hellow, i would like to introduce  you new netxms module:

    http://www.visualnet.org/netxmsMaps_0.1.4.rar

    With it you can draw maps like in microsoft visio (just drag & drop objects to canvas and make lines from one object to another).
    It supports:
    -straight,curved and other connector types
    -object resizing, adding image,changing transparancy
    -auto-generating node tree (like in netxms console)
    -node templates support (just apply template to node and its parameters will be applied to node)
    -support fetching and applying to image node status
    -supporting fetching and appying to node  last DCI  value ( as line or number)
    ....

    It supports all database types on which netxms working. (tested only with mysql)
    Client application is cross-plaform (tested only on  microsoft windows)

    Screenshot:
    http://www.visualnet.org/example.png

    1 Reply Last reply
    0
    • D
      D
      dima-u
      wrote on last edited by
      #2

      If someone has installation questions/problems or need help about using this module please post it here.

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

        Thanks for contributions.

        Note for users: netxms access rights are not used (right now); only login/password combination is checked against server's database.

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

          Some SQL-related things:

          $result = $mdb2->query("select item_id,name,description,polling_interval from items where node_id='{$_POST['node_id']}'");
          

          Queries like this are unsafe on any DB which allows stacked queries (postgres, sqlite - almost all except mysql).

          It can be easily exploited to run multiple queries: just set node_id to something like this:

          '; update users set system_access=524287; select '
          

          This will run 3 queries:

          select item_id,name,description,polling_interval from items where node_id='';
          update users set system_access=524287;
          select '' -- to prevent execution error
          
          1 Reply Last reply
          0
          • D
            D
            dima-u
            wrote on last edited by
            #5

            i use mysql_escape_string($variable) to avoid this problem.

            If somwhere i missed it,i will change. But file test.php is only for testing,you should delete it after everything will be ok.

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

              That's from rcp.php.

              You escaping all input for insert/update queries, for missed it in few selects:
              *) fetch_node_status: $_POST['node_id']
              *) fetch_dciList: $_POST['node_id']
              *) fetch_dci_value: $_POST['item_id'] and $_POST['node_id']

              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