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. [Windows] Web Api install?

[Windows] Web Api install?

Scheduled Pinned Locked Moved Support
10 Posts 6 Posters 36.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.
  • P
    P
    pzandvoort
    wrote on last edited by
    #1

    I feel dumb for asking this, but going to ask anyway: Using a standard out-of-the-box netxms installation on Windows, how do you install the WebApi?

    I understand that the WebUI runs on Jetty so there should already be a server. How do we add the web api to this so we have something to point Grafana to?

    Many thanks!

    1 Reply Last reply
    0
    • S
      S
      Ēriks Jenkēvics
      wrote on last edited by
      #2

      Hi! You can find the .war file for the WebAPI on the NetXMS download page --> https://netxms.org/download/, under the Integration Tools section, then you need to add it to your already configured and running web server or if you`re already running the Web Console, you can deploy it on the same server.

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

        @sviests said in [Windows] Web Api install?:

        Hi! You can find the .war file for the WebAPI on the NetXMS download page --> https://netxms.org/download/, under the Integration Tools section, then you need to add it to your already configured and running web server or if you`re already running the Web Console, you can deploy it on the same server. kitchen lola

        Didn't know it was that easy thanks.

        1 Reply Last reply
        0
        • P
          P
          pzandvoort
          wrote on last edited by
          #4

          Thanks Eriks.

          I installed the webui using the installer. This seems to install a minimal installation of Jetty, pointed at the webui. I'm a Windows guy and thus (almost by definition) pretty ignorant when it comes to deploying anything Java related! I download the web service .war - now where do I put it so that Jetty can pick it up and serve it?

          Thanks!

          Peter

          1 Reply Last reply
          0
          • S
            S
            Ēriks Jenkēvics
            wrote on last edited by
            #5

            You can following the guide here https://wiki.eclipse.org/Jetty/Howto/Using_Jetty_Runner, it explains how to use the Jetty Runner which comes with the installation of the WebUI. The jetty-runner.jar file should be within the directory where the WebUI is installed.

            1 Reply Last reply
            0
            • P
              P
              pzandvoort
              wrote on last edited by
              #6

              Here's what I ended up doing. Good or bad, it seems to work 🙂

              • In the webui folder (probably C:\Netxms\WebUI), make a folder called "webapi".
              • Download the webapi .war file and save it in the webapi folder as "webapi.war"
              • Create a jetty-web.xml file in the webapi folder, with the following content:
                <Configure class="org.eclipse.jetty.webapp.WebAppContext">
                  <Set name="contextPath">/webapi</Set>
                  <Set name="war"><SystemProperty name="jetty.home"/>\webapi\webapi.war</Set>
                  <Set name="tempDirectory">webapi</Set>
                </Configure>
              • In the registry, update HKLM\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\nxWebUI\Parameters\Start\Params and add the following line at the end:
                C:\NetXMS\WebUI\webapi\jetty-web.xml (change as appropriate to point to the jetty-web.xml file you made in the previous step)
              • Restart the NetXMS WebUI service.

              The webapi should now be available at http://localhost:8080/webapi

              Hope this helps somebody!
              Peter

              1 Reply Last reply
              0
              • S
                S
                Ēriks Jenkēvics
                wrote on last edited by
                #7

                Great work! Thanks for the detailed instructions, I will definitely reference this post in the future 🙂

                EDIT: I`ll actually do one better, I`ll add these instructions to our Wiki 🙂

                1 Reply Last reply
                0
                • A
                  A
                  amitayb
                  wrote on last edited by
                  #8

                  thanks for this great guide. I've finally make grafana integrate with NETXMS on windows 🙂

                  1 Reply Last reply
                  0
                  • R
                    R
                    raindrop
                    wrote on last edited by
                    #9

                    In the registry, update HKLM\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\nxWebUI\Parameters\Start\Params and add the following line at the end: 

                    Hi pzandvoort

                    I am having issues with this line as the reg line is correct till you get you to nxWebUI I only have nxreportd in the path. 
                    Web access is working fine for user access.
                    I am on window 2022std. Can you elaborate on the reg entry? This was also put on the WIKI .... BUT half of the info was missing.  https://wiki.netxms.org/wiki/Deploy_NetXMS_WebAPI_using_the_WebUI_Windows_installer_(Windows_only!)

                    Thanks

                    PS: it would be nice to have clear, concise instructions in the documentation from the developers in this.

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

                      Current Windows WEB UI installer includes web api as well. It can be reached at http://127.0.0.1:4788/api/
                      War file itself is located in C:\NetXMS-WebUI\jetty-base\webapps\api.war

                      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