NetXMS Support Forum

English Support => General Support => Topic started by: Rama on January 22, 2019, 05:48:19 AM

Title: setup webapi seperated with netxms server
Post by: Rama 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
Title: Re: setup webapi seperated with netxms server
Post by: Victor Kirhenshtein 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
Title: Re: setup webapi seperated with netxms server
Post by: Rama 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
Title: Re: setup webapi seperated with netxms server
Post by: Victor Kirhenshtein 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
Title: Re: setup webapi seperated with netxms server
Post by: Rama 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
Title: Re: setup webapi seperated with netxms server
Post by: Victor Kirhenshtein on February 07, 2019, 11:00:07 AM
Hi,

did you give access to objects to grafana user?

Best regards,
Victor