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

Y

Yavor

@Yavor
Unfollow Follow
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WebAPI Struggles
    Y Yavor
    Support

    Silly me! Thanks a lot, Victor.


  • WebAPI Struggles
    Y Yavor
    Support

    Hi guys,

    I'm trying to set up the WebAPI so I can use Grafana with NetXMS but I'm running into some issues. I have the netxms-websvc-2.2.6.war file (renamed to webapi.war) - tried both downloading it and building it myself with Maven, didn't make a difference. I've placed the file in the C:\NetXMS\WebUI\WebUI\webapi directory together with a jetty-web.xml file 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>
    

    I've added the following line to the Params value under HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\nxWebUI\Parameters\Start:

    C:\NetXMS\WebUI\WebUI\webapi\jetty-web.xml

    So far, so good, the problem is that when I open http://localhost:8080/webapi/ in the browser I get this:

    {"description":"Internal error","error":46}

    When I enter http://172.16.1.70:8080/webapi/ in the Grafana new datasource settings and click on "Save & Test", I get a "HTTP Error Bad Request" error.

    Any ideas how to get this working?

    Thanks


    Capture 1.PNG

    Capture 2.PNG

    Capture 3.PNG

  • 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