Back to OP5 Monitor FAQ

How to monitor Windows performance counters

This “how-to” covers how to monitor and graph a Windows performance counter in op5 Monitor.

Monitoring the performance counter Copied

In perfmon, select a performance counter that you want to monitor and/or graph. In this example we monitor and graph the following performance counter:

Performance object: Terminal Services Session Instance: Console counter: Thread Count

Request the counter-value from command-line to verify access and to examine the returned data:

## /opt/plugins/check_nt -H 192.168.1.8 -v COUNTER -l "Terminal Services Session(Console)Thread Count"
20

(in this example the returned value is an integer with a value of 20)

To monitor this counter in op5 Monitor, just add the following check-command and service:

command_name: check_nt_tsc_threadcount
command_line: $USER1$/check_nt -H $HOSTADDRESS$ -v COUNTER -l “Terminal Services Session (Console) Thread Count”,“TS Console Thread Count is: %.f” -w $ARG1$ -c $ARG2$
service_description: Terminal Services Console Thread Count
check_command: check_nt_tsc_threadcount
check_command_args: 25!30
["Geneos"] ["FAQ"]

Was this topic helpful?