<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WebAPI Struggles]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">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:</p>
<pre><code>&lt;Configure class="org.eclipse.jetty.webapp.WebAppContext"&gt;
  &lt;Set name="contextPath"&gt;/webapi&lt;/Set&gt;
  &lt;Set name="war"&gt;&lt;SystemProperty name="jetty.home"/&gt;\webapi\webapi.war&lt;/Set&gt;
  &lt;Set name="tempDirectory"&gt;webapi&lt;/Set&gt;
&lt;/Configure&gt;
</code></pre>
<p dir="auto">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:</p>
<blockquote>
<p dir="auto">C:\NetXMS\WebUI\WebUI\webapi\jetty-web.xml</p>
</blockquote>
<p dir="auto">So far, so good, the problem is that when I open <a href="http://localhost:8080/webapi/" rel="nofollow ugc">http://localhost:8080/webapi/</a> in the browser I get this:</p>
<blockquote>
<p dir="auto">{"description":"Internal error","error":46}</p>
</blockquote>
<p dir="auto">When I enter <a href="http://172.16.1.70:8080/webapi/" rel="nofollow ugc">http://172.16.1.70:8080/webapi/</a> in the Grafana new datasource settings and click on "Save &amp; Test", I get a "HTTP Error Bad Request" error.</p>
<p dir="auto">Any ideas how to get this working?</p>
<p dir="auto">Thanks</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004069-Capture_1.PNG" alt="Capture 1.PNG" class="img-markdown  img-fluid" width="498" height="419" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004071-Capture_2.PNG" alt="Capture 2.PNG" class="img-markdown  img-fluid" width="590" height="711" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004073-Capture_3.PNG" alt="Capture 3.PNG" class="img-markdown  img-fluid" width="1133" height="385" /></p>
]]></description><link>https://forum.netxms.org/topic/5605/webapi-struggles</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:42:39 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5605.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Jun 2018 09:26:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WebAPI Struggles on Mon, 11 Jun 2018 08:27:31 GMT]]></title><description><![CDATA[<p dir="auto">Silly me! Thanks a lot, Victor.</p>
]]></description><link>https://forum.netxms.org/post/24400</link><guid isPermaLink="true">https://forum.netxms.org/post/24400</guid><dc:creator><![CDATA[Yavor]]></dc:creator><pubDate>Mon, 11 Jun 2018 08:27:31 GMT</pubDate></item><item><title><![CDATA[Reply to WebAPI Struggles on Mon, 11 Jun 2018 08:18:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you should turn on both "Basic Auth" and "With Credentials".</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/24399</link><guid isPermaLink="true">https://forum.netxms.org/post/24399</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 11 Jun 2018 08:18:17 GMT</pubDate></item></channel></rss>