i want to know if a process running and his cpu usage. I have tried this command:
check_nrpe -H 10.40.0.2 -c check_wmi -a “query=Select Name,PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process where Name=‘7zG’”
But there is a big difference with Task Manager output !
I wonder if there is a working syntax with check_process to get cpu usage of a process. I have tried this command:
check_nrpe -H 10.40.0.2 -c check_process -a process=7zG.exe
and the result is
OK: all processes are ok.|‘7zG.exe state’=1;0;0 ‘count’=1;0;0