Jump to content


Photo

Monitor Service OData API

Started by Phil Taylor , 21 April 2017 - 06:51 AM
9 replies to this topic

Phil Taylor Members

Phil Taylor
  • 24 posts

Posted 21 April 2017 - 06:51 AM

Hi,

 

We are currently working on some monitoring of our internal XenDesktop environment, and are looking to use the Monitor Service API

 

https://docs.citrix.com/en-us/xenapp-and-xendesktop/7-12/sdk-api/monitor-service-odata-api.html

 

 

when we try to access the suggested URL

 

http://{dc-host}/Citrix/Monitor/OData/v2/Data

 

we get a 404 file not found error, and when looking in IIS this is not available, do we need to install and additional components in order to maker this work?

 

thanks

Phil 

 

 



Carl Stalhood CTP Member

Carl Stalhood
  • 12,347 posts

Posted 21 April 2017 - 02:12 PM

You are connecting to the Delivery Controller and not the Director server? The Monitor service is on the Delivery Controller.



Phil Taylor Members

Phil Taylor
  • 24 posts

Posted 21 April 2017 - 02:14 PM

Hi Carl,

 

yes i am connecting to the delivery controller, although in this case the are both on the same server?



Carl Stalhood CTP Member

Carl Stalhood
  • 12,347 posts

Posted 21 April 2017 - 03:09 PM

Did you change IIS bindings? 

 

When I connect, I get an XML file.



Phil Taylor Members

Phil Taylor
  • 24 posts

Posted 21 April 2017 - 03:26 PM

No nothing has been changed, do you see these as virtual directories? These are not visible for me

Carl Stalhood CTP Member

Carl Stalhood
  • 12,347 posts

Posted 21 April 2017 - 03:44 PM

Run the following. What do you see? 

 

netsh http show urlacl url=http://+:80/Citrix/Monitor/OData/Site/v2/

 

I see User: NT SERVICE\CitrixMonitor



Peter Grayson Members

Peter Grayson
  • 3 posts

Posted 24 April 2017 - 08:09 AM

Sorry to hijack this post, but I have the exact same issue. I don't see the site in IIS, I get a 404 error, when I run:

 

netsh http show urlacl url=http://+:80/Citrix/Monitor/OData/Site/v2/

 

I see User: NT SERVICE\CitrixMonitor

 

Which seems very odd! 

 

thanks



Phil Taylor Members

Phil Taylor
  • 24 posts

Posted 28 April 2017 - 08:26 AM

Hi,

 

if we ruin the above command we do see 

 

NT SERVICE\CitrixMonitor

 

should this site be visible in IIS? does it require any additional components installing? 

 

thanks 



Carl Stalhood CTP Member

Carl Stalhood
  • 12,347 posts

Posted 28 April 2017 - 12:41 PM

The Citrix Monitor Service hosts the website, but it's not a regular IIS site.



Phil Taylor Members
  • #10

Phil Taylor
  • 24 posts

Posted 28 April 2017 - 03:22 PM

Hi Carl,

 

its looks like we have got this working, the issue was that Studio and Director we installed on port 80, removing the IIS binding for port 80 now allows the monitoring site

 

thanks