NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: setup webapi seperated with netxms server  (Read 280 times)

Rama

  • Newbie
  • *
  • Posts: 13
    • View Profile
setup webapi seperated with netxms server
« on: January 22, 2019, 05:48:19 am »

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
« Last Edit: January 24, 2019, 04:13:45 am by Rama »
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6509
    • View Profile
Re: setup webapi seperated with netxms server
« Reply #1 on: January 28, 2019, 12:35:07 pm »

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

Best regards,
Victor
Logged

Rama

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: setup webapi seperated with netxms server
« Reply #2 on: January 29, 2019, 05:00:01 am »

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
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6509
    • View Profile
Re: setup webapi seperated with netxms server
« Reply #3 on: January 29, 2019, 12:07:36 pm »

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
Logged

Rama

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: setup webapi seperated with netxms server
« Reply #4 on: February 04, 2019, 10:14:38 am »

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
Logged

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 6509
    • View Profile
Re: setup webapi seperated with netxms server
« Reply #5 on: February 07, 2019, 11:00:07 am »

Hi,

did you give access to objects to grafana user?

Best regards,
Victor
Logged