WEBApi install error

Started by praim, January 20, 2018, 02:07:15 AM

Previous topic - Next topic

praim

Hello,
I have tried to install webapi on my Ubuntu. I have got this following error:   Failed to execute goal on project netxms-websvc: Could not resolve dependencies for project org.netxms:netxms-websvc:war:3.0-SNAPSHOT: The following artifacts could not be resolved: org.netxms:netxms-base:jar:3.0-SNAPSHOT, org.netxms:netxms-client:jar:3.0-SNAPSHOT: Failure to find org.netxms:netxms-base:jar:3.0-SNAPSHOT in http://maven.restlet.com was cached in the local repository, resolution will not be reattempted until the update interval of maven-restlet has elapsed or updates are forced


Can you please help me?
Best regards

Victor Kirhenshtein

Hi,

as you are building for development branch, you have to install dependency packages manually to your local repository from source tree. Do the following (from source tree root):


cd src/libnxjava/java/base/netxms-base
mvn clean
mvn install
cd ../../../../client/java/netxms-client
mvn clean
mvn install


Now you should have both dependencies installed.

Best regards,
Victor

praim

#2
Thank you,
I have followed instructions from wiki, where is, that I have to download api from GIT repository.

I have another problem. In the grafana webserver I can see all DCI values, but when after I add a DCI, It always shows: "datapoints:Array[0]" so graphs are empty

Best regards

Ēriks Jenkēvics

Hi!

Could you check if the DCI has collected any data? Also, could you please post screenshots of the DCI configuration?

Regards,
Eriks

praim

Hi,

yes, DCI has collected data normally. Here you have screenshots. If you want to something else, let me know.

Best regards

Victor Kirhenshtein

Just to make sure - are you using server from development branch (3.0)? Or your server is from 2.2.x branch? If latter, then I suggest to download matching version of web services API. Also, make sure you install NetXMS datasource for Grafana version 1.1.0.

Best regards,
Victor

praim

I am using netxms server v2.2.2 with web api v2.2.2. Grafana is v4.6.3 with netxms plugin version v1.1.0