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. setup webapi seperated with netxms server

setup webapi seperated with netxms server

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 39.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.
  • C
    C
    Rama
    wrote on last edited by
    #1

    hi,

    i have install netxms server on server A and i have webserver tomcat on sever B, i want deploy webserviceAPI Netxms on separated server in this case server B,is that possible?
    i was following the instruction on https://www.netxms.org/documentation/adminguide/advanced.html#web-api-rest-api. but i'm newbie on tomcat i don't know how to put file "nxapisrv.properties" in my web server. i have tried file "nxapisrv.properties" put on META-INF or WEB-INF nothing happend.

    thanks


    netxms.PNG

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

      It depends on your Linux distribution and Tomcat settings. One possible location is /var/lib/tomcat8/lib.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • C
        C
        Rama
        wrote on last edited by
        #3

        hi victor,

        thanks for your respond.
        so you mean the "nxapisrv.properties" put on lib at mywebserver not on folder website of webapi netxms right?
        right now i use tomcat7 not tomcat8, is oke use tomcat7?

        thanks.

        Best Regards,
        Rama

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

          Hi!

          Yes, you should put nxapisrv.properties to lib directory of your web server (any directory on classpath). Tomcat 7 should be ok for web service API (although Tomact 8 is required for web UI).

          Best regards,
          Victor

          1 Reply Last reply
          0
          • C
            C
            Rama
            wrote on last edited by
            #5

            hi victor,

            sorry late your respond, i have tested using tomcat8 and grafana succes connected,
            but i test with curl from server console only success get sessions but i tried get data container or node the result is access denied.
            for your information i use same credential on server console and grafana but the the result is different.
            i follow this guide https://wiki.netxms.org/wiki/Web_service, there is something configured i miss?

            thanks,
            Best regards,
            Rama


            netxms get sessions.PNG

            netxms get all object.PNG

            test from grafana.PNG

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

              Hi,

              did you give access to objects to grafana user?

              Best regards,
              Victor

              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