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 cant connect to Web API

Grafana cant connect to Web API

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 25.1k 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.
  • B
    B
    bloodlin
    wrote on last edited by
    #1

    Hello!
    From wiki - https://wiki.netxms.org/wiki/NetXMS_WebAPI :
    5. Create a
    nxapisrv.properties
    file and place it in the property file location of your web server and specify the NetXMS Server address with the
    NXServer=
    property.
    Where i can put nxapisrv.properties?
    I have Debian 9 server with tomcat server

    Thanks.

    1 Reply Last reply
    0
    • H
      H
      huskybob
      wrote on last edited by
      #2

      guys please can you help me,

      I need your help with my Grafan installation on a Windows 10 System

      I have the latest NetXMS System installed with a MySQL Database on Windows 10 and it is working perfectly however i am having a problem getting Grafana to work on the same system

      I am using NetXMS " Jetty  "  for http

      I deployed the NetXMS WebAPI using the same guide https://wiki.netxms.org/wiki/Deploy_NetXMS_WebAPI_using_the_WebUI_Windows_installer_(Windows_only!).

      When i use the URL : http://mynetxms.ip:8080/webapi/ all i get is " {"description":"Internal error","error":46} "

      I have unziped the Grafana Files in C:\grafana

      I have edited the " c:\grafana\conf\custom.ini " file

      protocoal = http
      http_port = 8080
      domain = localhost

      What else do i need to do to get Grafana to function on the Windows 10 System ?  😄

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        Hi,

        at least you should have Grafana on different port - it has it's own HTTP server build in, and setting it to port 8080 will conflict with NetXMS REST API server.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • H
          H
          huskybob
          wrote on last edited by
          #4

          Victor Kirhenshtein thank you for your help, much appreciated

          i have changed the grafana http port to 8181
          started the grafana engine and success!
          grafana is working

          now for the data-source creation

          1. New = MYGRAFANA ( Default )
          2. Type = NETXMS
          3. HTTP URL = http://mynetxmsip:8080
          4. Access = SERVER
          5. Auth = Basic Auth with Credentials
          6. Basic Auth Details = my NetXMS username and NetXMS password
          7. SAVE & TEST

          There is an exclamation mark error!

          It does save the settings

          Restarted both NetXMS Server and Grafana Server

          I do not think that Grafana is working correctly

          Any ideas?  😄

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #5

            Do you see incoming client connection in server log when attempt to save Grafana data source? Can you login with same user from web UI?

            Best regards,
            Victor

            1 Reply Last reply
            0
            • H
              H
              huskybob
              wrote on last edited by
              #6

              Victor Kirhenshtein thank you for your reply

              " Do you see incoming client connection in server log when attempt to save Grafana data source? Can you login with same user from web UI? "

              will that be the login user for Grafana Web UI or the NetXMS Web UI or the WEBAPI ?
              http://localhost:8181 ( Grafana Web UI )
              http://localhost:8080 ( NetXMS Web UI )
              http://localhost:8080/webapi ( NetXMS Web API - {"description":"Internal error","error":46} )

              sorry just need to confirm  😄

              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