Hello,
I am monitoring the cpu time and ram usage of a windows service with these items:
wmi.get["root\CIMV2", "SELECT PercentProcessorTime FROM Win32_PerfFormattedData_PerfProc_Process WHERE Name='Name_of_the_service'"]
wmi.get["root\CIMV2", "SELECT WorkingSet FROM Win32_PerfFormattedData_PerfProc_Process WHERE Name='Name_of_the_service'"]
The Item for the ram usage works fine, but for the cpu time it just gives me individuall values.
What i want to achieve with this item is displaying the cpu time the process uses, as is shown in the taskmanager. The taskmanager accumulates all the time since the process was started, so when u restart the service it goes to zero and starts counting again.
I am monitoring the cpu time and ram usage of a windows service with these items:
wmi.get["root\CIMV2", "SELECT PercentProcessorTime FROM Win32_PerfFormattedData_PerfProc_Process WHERE Name='Name_of_the_service'"]
wmi.get["root\CIMV2", "SELECT WorkingSet FROM Win32_PerfFormattedData_PerfProc_Process WHERE Name='Name_of_the_service'"]
The Item for the ram usage works fine, but for the cpu time it just gives me individuall values.
What i want to achieve with this item is displaying the cpu time the process uses, as is shown in the taskmanager. The taskmanager accumulates all the time since the process was started, so when u restart the service it goes to zero and starts counting again.
Comment