Monitor Terminal Server


#1

How can I monitor the terminal server service ?
Is it possible ?

Thanks.


#2

You can use check_nt to monitor any of the windows perfmon counters, which include stuff for Terminal Services like Total Sessions… you set up the check to assess the ‘COUNTER’ for the info you want, something like below…
check_nt -p xxxxx -s yyyyy -H $HOSTADDRESS$ -v COUNTER -l “\Terminal Services\Total Sessions” -w 0 -c 1

HTH

/S


#3

You can also check if the services are running:

Monitor the Terminal Server proces

define service{
use generic-service
host_name server01
service_description Service: Terminal Services
servicegroups terminalservices
max_check_attempts 5
check_interval 1
check_period 24x7
notification_period 24x7
check_command check_nt!SERVICESTATE!-d SHOWALL -l termservice
}

I typically do:

Check ping (is host alve)
Check service (is service running)
Check usage (how is the service used)

You can make a service dependency as well (to make sure that the usage check does not alert when the service itself is down)

Cheers,

Michael


#4

Thanks for your help but give me this answer :

“check_nt: Could not parse arguments”

What’s wrong ? I need to change only windows.cfg ?

Thanks!


#5

Haven’t seen that one before, sorry.

[quote=“Ger”]Thanks for your help but give me this answer :

“check_nt: Could not parse arguments”

What’s wrong ? I need to change only windows.cfg ?

Thanks![/quote]


#6

Dear mriesenb,

I’m afraid that Service Dependencies won’t work as expected. Take a look at:

viewtopic.php?f=59&t=5104&p=16828&hilit=dependencies#p16828

Hope it helps.