I need to make some windows service that will monitor Tridion health meaning that it will use Tridion Monitoring service. Inside of documentation on SDL live content there is one section explained:
You can access the Application Monitoring Web service through, for example, the SOAP protocol. The Web service exposes a TridionMonitoringAgent interface with a GetStatus() method that returns an array of ServiceStatus elements.
And than there is an example of XML response to a SOAP request
<ServiceStatus>
<ServiceType>Content Manager Publisher</ServiceType>
<ProcessId>2364</ProcessId>
<Status>NotResponding</Status>
<StatusChangeTime>2006-10-17T13:12:02Z</StatusChangeTime>
<LastReportTime>2006-10-17T14:46:02Z</LastReportTime>
<MonitoredThreadCount>15</MonitoredThreadCount>
<NonRespondingThreads>
<ThreadStatus>
<ThreadId>13</ThreadId>
<ThreadName>The name of the thread</ThreadName>
<StatusChangeTime>2006-10-17T13:12:02Z</StatusChangeTime>
<LastReportTime>2006-10-17T14:46:02Z</LastReportTime>
</ThreadStatus>
</NonRespondingThreads>
</ServiceStatus>
<ServiceStatus>
<ServiceType>Workflow Agent</ServiceType>
<ProcessId>2464</ProcessId>
<Status>NotResponding</Status>
<StatusChangeTime>2006-10-17T14:31:02Z</StatusChangeTime>
<LastReportTime>2006-10-17T14:47:02Z</LastReportTime>
<MonitoredThreadCount>2</MonitoredThreadCount>
</ServiceStatus>
I am not sure how to get connection to Tridion Monitoring Service and how to get request/response like this. Can someone share some code or example?