<?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[websvc and grafana integration problem]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">Just wanted to share my findings when trying to integrate NetXMS with Grafana.</p>
<p dir="auto">Whatever I did I couldn't get a connection between them. The data source always gave an error stating "HTTP Error Internal Server Error"<br />
If I tried to open the web service page (<a href="http://192.168.222.44:8080/websvc" rel="nofollow ugc">http://192.168.222.44:8080/websvc</a>) directly it gave me a this error: {"description":"Internal error","error":46}</p>
<p dir="auto">Just for the record, now that the issue is fixed, I still get the error 46 message if I try to connect directly.</p>
<p dir="auto">I asked for help and Victor was kind enough to take a look at things for me.</p>
<p dir="auto">First we tried the Curl trick posted at the bottom of this wiki page.<br />
<a href="https://wiki.netxms.org/wiki/Web_service_API" rel="nofollow ugc">https://wiki.netxms.org/wiki/Web_service_API</a></p>
<p dir="auto">The catalina.out file in Tomcat log folder showed that authentication was successful, so it wasn't a case of mistyped password or wrong user.</p>
<p dir="auto">Then further down he saw something about missing javax classes.<br />
Turns out that using Java 11 with Tomcat was the issue.</p>
<p dir="auto">I removed Java 11 and installed Java 8 and the issue was resolved.</p>
<p dir="auto">So, check if you are using a compatible Java version <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">PS: Victor mentioned that it might work with Java 10 by adding --add-modules java.xml.bind to JVM command line</p>
<p dir="auto">I hope this is helpful for others as well!</p>
<p dir="auto">tfn</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000004222-grafana.PNG" alt="grafana.PNG" class="img-markdown  img-fluid" width="691" height="976" /></p>
]]></description><link>https://forum.netxms.org/topic/5701/websvc-and-grafana-integration-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 19:34:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5701.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Sep 2018 14:21:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to websvc and grafana integration problem on Wed, 26 Sep 2018 18:13:12 GMT]]></title><description><![CDATA[<p dir="auto">I can confirm adding "--add-modules java.xml.bind" to JAVA_OPTS in /etc/default/tomcat8 works for "openjdk 10.0.2" and tomcat8</p>
]]></description><link>https://forum.netxms.org/post/24852</link><guid isPermaLink="true">https://forum.netxms.org/post/24852</guid><dc:creator><![CDATA[Borgso]]></dc:creator><pubDate>Wed, 26 Sep 2018 18:13:12 GMT</pubDate></item></channel></rss>