Describe the bug
Selector suffix for check_pdh command argument perf-config replaces the complete perf-data value name.
To Reproduce
Running below check_pdh command:
.\snclient.exe run check_pdh "counter=\PhysicalDisk(*)\Avg. Disk Queue Length" 'perf-config=*(suffix:none)'
results into performance data renamed to always 'none':
OK - All 3 counter values are ok |'none'=0;;;0 'none'=0;;;0 'none'=0;;;0
Expected behavior
It's expected that the command argument behaves equal to nsclient++ and only replaces (or with none removes) the suffix '_value' from the performance data name, like below:
OK - All 3 counter values are ok |'\PhysicalDisk(_Total)\Avg. Disk Queue Length'=0;;;0 '\PhysicalDisk(0 E:)\Avg. Disk Queue Length'=0;;;0 '\PhysicalDisk(1 C: D:)\Avg. Disk Queue Length'=0;;;0
Screenshots
Software (please complete the following information):
- OS: Windows Server 2016 English
- Architecture: x64
- SNClient Version: v0.39
Additional context