This "how-to" covers how to monitor and graph a Windows performance counter in op5 Monitor.
Monitoring the performance counter
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
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"
(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_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|