Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Most of our servers are licensed for 2 concurrent remote desktop sessions. This is fine, so long as everyone does their administrative task and logs off, but some people accidentally close sessions (disconnect but remain logged in) instead.

I know that you can force someone off with the right Admin tools, but it's a bit ugly and may hurt productivity or maybe even the server(?). I was thinking that a nightly Nagios check of remote sessions available nagging people would help enforce build discipline on the subject. Can anyone recommend a service check that can monitor terminal service availability?

share|improve this question
    
serverfault.com/questions/48543/… , See Micheal's Answer. –  Kyle Brandt Mar 19 '10 at 21:28
    
I can't find the reference anywhere, but I am almost certain I found a page describing where you could get a count of sessions via snmp. –  Zoredache Mar 19 '10 at 22:19
    
SNMP, I like. Some of the admins fear NPRE. –  jldugger Mar 19 '10 at 23:15

2 Answers 2

up vote 2 down vote accepted

Why not time-limit inactive sessions?

share|improve this answer
    
I'm intrigued and wish to subscribe to your newsletter. Could you elaborate? –  jldugger Mar 20 '10 at 17:33
1  
In Windows 2003, go to Start>Administrative Tools>Terminal Services Configuration. There is a similar app in 2000 and 2008. Double-click Connections and RDP-Tcp. Choose the Sessions tab in the properties. Click "Overide User Settings" and set "End Disconnected Sessions", "Active Session Limit" and "Idle Session Limit" accordingly. –  Keith Stokes Mar 20 '10 at 18:27

i have a couple of terminal services in a load-balancing cluster being monitored with nagios. i use nsclient++ agent on the servers and these checks on the services.cfg file:

define service {
  use                   default_service
  hostgroup             term-serv
  service_description   check_nt_term_serv_tot
  check_command         check_nt_wrapper!"\\Terminal Services\Total Sessions"!30!45
  }

define service {
  use                   default_service
  hostgroup             term-serv
  service_description   check_nt_term_serv_act
  check_command         check_nt_wrapper!"\\Terminal Services\Active Sessions"!30!45
  }

define service {
  use                   default_service
  hostgroup             term-serv
  service_description   check_nt_term_serv_ina
  check_command         check_nt_wrapper!"\\Terminal Services\Inactive Sessions"!30!45
  }

i also feed the results to a rrd file for graphing. i think there are more terminal serivces performance counters that may better fit your need, just look in the windows under config panel->admin tools->performance->right-click on graph->add counters and see what is available.

share|improve this answer
    
For those who wonder what check_nt_wrapper does, the same can be obtained by: "check_nt!COUNTER!-l "\\\\Terminal Services\\Active Sessions" -w 30 -c 45" –  Berzemus Mar 20 '12 at 12:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.