2

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?

jldugger
  • 14,122
  • 19
  • 73
  • 129

2 Answers2

3

Why not time-limit inactive sessions?

Keith Stokes
  • 907
  • 5
  • 7
  • 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
1

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.

Peter Carrero
  • 437
  • 2
  • 10
  • 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