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. Docker files for NetXMS server, WEB UI and console

Docker files for NetXMS server, WEB UI and console

Scheduled Pinned Locked Moved Support
8 Posts 4 Posters 38.8k 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.
  • R
    R
    rskolnik
    wrote on last edited by
    #1

    My colleague Julius Loman who is a Docker fan/guru created automated (that means always latest version) docker files for NetXMS server, WEB UI and console:

    • https://hub.docker.com/r/lomo/netxms-server/
    • https://hub.docker.com/r/lomo/netxms-webui/
    • https://hub.docker.com/r/lomo/netxms-nxmc/

    So you just need to pull the images, create instances and off you go 😉 See instructions on hub for WEB UI and console. In case you have questions ask them here.

    1 Reply Last reply
    0
    • L
      L
      Lukas
      wrote on last edited by
      #2

      Thanks, very nice and convenient for showing live preview of the latest version without much hassle  🙂

      Currently the netxms client reports

      org.netxms.client.NXCException: Server uses incompatible version of communication protocol
      

      Is it just a temporary problem caused by the fact that both images come from the latest build and  they may have different version information?

      Best Regards,
      Lukas

      1 Reply Last reply
      0
      • R
        R
        rskolnik
        wrote on last edited by
        #3

        Works for me.

        1 Reply Last reply
        0
        • L
          L
          lomo
          wrote on last edited by
          #4

          @lukas.rypl said in Docker files for NetXMS server, WEB UI and console:

          Thanks, very nice and convenient for showing live preview of the latest version without much hassle  🙂

          Currently the netxms client reports

          org.netxms.client.NXCException: Server uses incompatible version of communication protocol
          

          Is it just a temporary problem caused by the fact that both images come from the latest build and  they may have different version information?

          Best Regards,
          Lukas

          It looks like the client version does not match NetXMS server version. I've build the docker images for latest release (2.0.6).
          What server version are you running? I assume you are not running it from the docker image I've created.

          1 Reply Last reply
          0
          • L
            L
            Lukas
            wrote on last edited by
            #5

            I am sorry, it was my mistake - of course I had another netxms server running at localhost listening at all interfaces 🙂 It is pity that the error message is not more descriptive.

            So now it works like a charm.

            A bit more step-by-step guide for docker newbies (like me:)

            # open your X-server
            xhost +
            # start container and give it some descriptive name so we can refer to it later
            docker run --name=netxms-server-latest  lomo/netxms-server
            
            # show me the container IP
            docker exec netxms-server-latest ip a
            
            # check that nxadm does something
            docker exec netxms-server-latest nxadm -c "show stats"
            
            # start nxmc
            docker run -ti --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix lomo/netxms-nxmc
            # login to server IP displayed in step 2 (172.17.0.2) as admin:netxms
            
            1 Reply Last reply
            0
            • L
              L
              lomo
              wrote on last edited by
              #6

              If you are familiar with docker-compose, there is a more elegant approach to setup containers:

              version: '2'
              
              services:
                server:
                  image: lomo/netxms-server
                  ports:
                  - "4700:4700"
              
                webui:
                  image: lomo/netxms-webui
                  ports:
                  - "8080:8080"
                  environment:
                  - "NETXMS_SERVER=server"
              
                console:
                  image: lomo/netxms-nxmc
                  environment:
                  - "DISPLAY=$DISPLAY"
                  volumes:
                  - "/tmp/.X11-unix:/tmp/.X11-unix"
              

              Then you can startup your environment with

              docker-compose up
              

              WebGUI is then accessible at http://localhost:8080/nxmc/nxmc

              Of course, if you close the native console you have to start the container again:

              docker-compose start console
              

              or start the container directly by docker start command

              1 Reply Last reply
              0
              • L
                L
                Lukas
                wrote on last edited by
                #7

                Thanks for the info, docker-compose seems to be the proper and convenient way to have all-in-one solution 🙂

                1 Reply Last reply
                0
                • D
                  D
                  dbld
                  wrote on last edited by
                  #8

                  Hi @lomo

                  If one enables syslog in the container presumably one would need to expose that port by adding additional port to server port list?

                  I've tried this but after i modify compose file like so :

                  version: '2'
                  
                  services:
                    server:
                      image: lomo/netxms-server
                      ports:
                      - "4700:4700"
                      - "4701:4701"
                      - "514:514"
                  
                    webui:
                      image: lomo/netxms-webui
                      ports:
                      - "8080:8080"
                      environment:
                      - "NETXMS_SERVER=server"
                  
                    agent:
                      image: lomo/netxms-nxagent
                      environment:
                      - "NXAGENT_CONFIG=MasterServer=server\nLogFile=/var/log/nxagentsome.log\nEnableProxy=yes\nEnableSNMPProxy=yes"
                      - "NXAGENT_MASTERSERVERS=server"
                      - "NXAGENT_REGISTERSERVER=server"
                  

                  and server fails to start with :

                  server_1  | Error: could not find config file /etc/supervisor/conf.d/supervisord.conf
                  server_1  | For help, use /usr/bin/supervisord -h
                  

                  Interesting part is that if i invoke "rm" and than "up" it binds nw port and starts server 

                  @lomo said in Docker files for NetXMS server, WEB UI and console:

                  If you are familiar with docker-compose, there is a more elegant approach to setup containers:

                  version: '2'
                  
                  services:
                    server:
                      image: lomo/netxms-server
                      ports:
                      - "4700:4700"
                  
                    webui:
                      image: lomo/netxms-webui
                      ports:
                      - "8080:8080"
                      environment:
                      - "NETXMS_SERVER=server"
                  
                    console:
                      image: lomo/netxms-nxmc
                      environment:
                      - "DISPLAY=$DISPLAY"
                      volumes:
                      - "/tmp/.X11-unix:/tmp/.X11-unix"
                  

                  Then you can startup your environment with

                  docker-compose up
                  

                  WebGUI is then accessible at http://localhost:8080/nxmc/nxmc

                  Of course, if you close the native console you have to start the container again:

                  docker-compose start console
                  

                  or start the container directly by docker start command

                  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