<div>Indeed thats a WMI Query you could use already.</div>
<div> </div>
<div>The counters for perfmon are :</div>
<div><br>Terminal Services\Active Sessions</div>
<div>Terminal Services\Inactive Sessions</div>
<div>Terminal Services\Total Sessions</div>
<div> </div>
<div>Which do not distinguish between RDP or ICA sessions I might add. So if you have say 2 admins logged in via RDP, 10 users logged in via ICA and 5 users logged in via ICA but disconnected your counters would respectivly be 12, 5 and 17.
</div>
<div> </div>
<div>At first glance I see no quick way however to split the 12 active sessions into two values (one for RDP and one for ICA sessions). Other then enumerating the actual sessions and doing the math on it in your check (which means you are as good as obligated to run something like a small vbscript on your winbox and have it relay the result through nsca).
</div>
<div> </div>
<div>Maybe I am overlooking a way to sidestep this.</div>
<div> </div>
<div>Cheers,</div>
<div>Hans<br> </div>
<div><span class="gmail_quote">On 6/23/06, <b class="gmail_sendername">Thibault Genessay</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:tgenessay@aliadis.fr" target="_blank">tgenessay@aliadis.fr
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hans Engelen wrote:<br>> I believe it is available as a perfmon counter. Using an agent such as<br>> nc_net will allow you
<font style="BACKGROUND-COLOR: #ffbde9" color="#000000">to</font> poll that value via the agent. Citrix is <br>> harder. Will have <font style="BACKGROUND-COLOR: #ffbde9" color="#000000">to</font> check that myself first.
<br>><br>For TSE, more precisely, the WQL query is something like:<br>SELECT ActiveSessions FROM<br>Win32_Perf[Raw/Formatted]Data_TermService_TerminalServices<br><br>Citrix is, AFAIK, based on TSE so that counter might also work for
<br>Citrix sessions.<br><br>Thibault<br></blockquote></div>