Check_process cpu time


#1

Hi,

I’m trying to get the cpu-time of multiple processes of the same name. For testing I’m using ‘svchost.exe’. I can get the status perfdata, but what I want is the CPU time used. I tried several argument-combinations like in the docu:

"detail-syntax=${exe} ws:${working_set}, handles: ${handles}, user time:${user} (from https://docs.nsclient.org/reference/windows/CheckSystem/#check_process)

but nothing seems to work. How can I get “user timer: ${user}”? All I get is state=1;0;0, no matter what detail-syntax I try.

Example: check_nrpe -H IPOFHOST -c check_process -a “detail-syntax=bla” -a “filter=exe=‘svchost.exe’”

OK: all processes are ok.|‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘svchost.exe state’=1;0;0 ‘count’=16;0;0

I’m using nsclient++ 5.1.44