4 years ago
Citrix Cloud Monitoring
Installation
1. Install the package from LM Exchange "Citrix Cloud"
2. Install Cloud Connector property source: Locator JYW9D7
Configuration
This datasource ...
Hi
I also have problems with the DataSources again. Which URL needs to be adapted in each case? E.g. in the Logon Performance DataSource:
"https://${customer}.xendesktop.net/Citrix/monitor/odata/v4/data/DesktopGroups"
-> is this no longer correct? Presumably the query for this is not correct either.
Unfortunately, I'm not as good at Groovy as I am at PowerShell :/
I changed
httpGet = new HttpGet("https://${customer}.xendesktop.net/Citrix/monitor/odata/v4/data/DesktopGroups");
to
api_endpoint = "https://api-eu.cloud.com/monitordata";
httpGet = new HttpGet(api_endpoint+"/DesktopGroups");
and
httpGet.addHeader("Customer" , customer);
to
httpGet.addHeader("Citrix-CustomerId" , customer);
as per the following...
CloseableHttpClient httpclient = HttpClients.createDefault();
//httpGet = new HttpGet("https://${customer}.xendesktop.net/Citrix/monitor/odata/v4/data/DesktopGroups");
api_endpoint="https://api-eu.cloud.com/monitorodata"
httpGet = new HttpGet(api_endpoint+"DesktopGroups");
httpGet.addHeader("Authorization" , "CWSAuth bearer= " + token)
//httpGet.addHeader("Customer" , customer);
httpGet.addHeader("Citrix-CustomerID" , customer);
response = httpclient.execute(httpGet);
responseBody = EntityUtils.toString(response.getEntity());
code = response.getStatusLine().getStatusCode();
json_slurper = new JsonSlurper();
response_obj = json_slurper.parseText(responseBody);
I dont think i had to change anything else, but it was a while ago I’m afraid.