Indeed thats a WMI Query you could use already.
The counters for perfmon are :
Terminal Services\Active Sessions
Terminal Services\Inactive Sessions
Terminal Services\Total Sessions
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.
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).
Maybe I am overlooking a way to sidestep this.
Cheers,
Hans
On 6/23/06, Thibault Genessay <[EMAIL PROTECTED]
> wrote:
Hans Engelen wrote:
> I believe it is available as a perfmon counter. Using an agent such as
> nc_net will allow you to poll that value via the agent. Citrix is
> harder. Will have to check that myself first.
>
For TSE, more precisely, the WQL query is something like:
SELECT ActiveSessions FROM
Win32_Perf[Raw/Formatted]Data_TermService_TerminalServices
Citrix is, AFAIK, based on TSE so that counter might also work for
Citrix sessions.
Thibault
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
