NetXMS Support Forum

English Support => General Support => Topic started by: blairmc96 on April 13, 2022, 05:03:31 PM

Title: WebAPI v4
Post by: blairmc96 on April 13, 2022, 05:03:31 PM
After moving to version 4 of NetXMS, the API no longer works connecting Grafana to NetXMS.

I've completely removed and reinstalled it according to the wiki page:

https://wiki.netxms.org/wiki/Deploy_NetXMS_WebAPI_using_the_WebUI_Windows_installer_(Windows_only!)

The windows installer puts all of the files in C:\NetXMS-WebUI.

The instructions weren't 100% specific, like what to do with the nxmc-4.0.2227.war file that is downloaded.  I assume you rename it to webapi.war, as has been done in the past and noted in the jetty-web.xml file.  If we can get the wiki updated with this information, that would be helpful.

I've got it working somewhat, and when I go to http://localhost:8080/webapi, it redirects to http://localhost:8080/webapi/nxmc-clarity and provides the web login page.

What am I missing?

Thanks!
Title: Re: WebAPI v4
Post by: Alex Kirhenshtein on April 14, 2022, 02:09:32 PM
nxmc is the webui package, you need this one (https://netxms.org/download/releases/4.0/netxms-websvc-4.0.2227.war) instead
Title: Re: WebAPI v4
Post by: blairmc96 on April 15, 2022, 12:42:50 AM
Thanks!