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. Grafana datasource problem - only for DCIs

Grafana datasource problem - only for DCIs

Scheduled Pinned Locked Moved Support
2 Posts 1 Posters 13.2k 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.
  • J
    J
    JayST
    wrote on last edited by
    #1

    I'm using NetXMS v3 and Grafana 6.3.x and succesfully deployed the NetXMS datasource on grafana. It connects to the webapi and is able to show alarms.
    However, DCIs do not show points on the graph. I can select the DCIs but grafana is not able to pull points for the DCI.
    The grafana query to the API returns error 46.

    below is the query inspector result from grafana.
    i found the following wiki page, and statement about java.xml.bind module.
    However, i'm on ubuntu 18.04 , tomcat9 and java 11

    any idea what's wrong? Connectivity and authentication seems right because i do get to see alarms in a grafana table just fine.

    java -version
    openjdk version "11.0.4" 2019-07-16
    OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
    OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

    "If curl test works but grafana returns "Internal error" ({"description":"Internal error","error":46}")
    Add "--add-modules java.xml.bind" to JAVA_OPTS in /etc/default/tomcat8 "

    Link Preview Image
    Web service API - NetXMS Wiki

    favicon

    (wiki.netxms.org)

    Object
    xhrStatus:"complete"
    request:Object
    method:"GET"
    url:"api/datasources/proxy/20/grafana/datacollection"
    data:null
    params:Object
    interval:200
    from:_
    to:_
    targets:"[{"dci":{"id":"945","name":"Inbound traffic on NET_STOR (bits/sec)"},"dciTarget":{"id":"3370","name":"host01.corp.local"},"legend":"","refId":"A","type":"DCI","datasource":"NetXMS"},{"dci":{"id":"946","name":"Outbound traffic on NET_STOR (bits/sec)"},"dciTarget":{"id":"3370","name":"host01.corp.local"},"legend":"","refId":"B","type":"DCI","datasource":"NetXMS"}]"
    response:Object
    description:"'java.util.Iterator org.json.JSONArray.iterator()'"
    error:46
    
    1 Reply Last reply
    0
    • J
      J
      JayST
      wrote on last edited by
      #2

      ok i just saw a new netxms build and i upgraded the server to 3.0.2284 and web service API using netxms-websvc-3.0.2284.war
      after that, DCI values showed up within grafana graphs. No error 46 anymore.

      Not sure what the fix was, but hey, it works. Happy ;D

      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