Deploy NetXMS WebAPI using the WebUI Windows installer (Windows only!)

From NetXMS Wiki
Revision as of 16:28, 8 September 2017 by TatjanaDubrovica (talk | contribs) (xml)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This guide provides instructions on how to deploy the NetXMS WebAPI .war file, that can be downloaded at https://netxms.org/downloads, using the Jetty Runner that comes with the installation of the NetXMS WebUI. Windows only!

Requirements

The following prerequisites need to be set-up first:

  • A machine running windows.
  • A successfully installed and running NetXMS WebUI using the windows installer.

Steps

1. Navigate to the installation directory of the WebUI. 2. Create a folder named "WebAPI". 3. Create a file named "jetty-web.xml" in the newly created 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>

4. Login to your Grafana web interface and add the NetXMS datasource in the Data Sources section.