This article describes how to debug the windows ps section.
LAST TESTED ON CHECKMK 2.0.0P1
Table of Contents
Step-by-step guide
If you want to debug the windows ps section. You will find the whole script for the agent in our GitHub:
agents/wnx/src/engine/providers/ps.cpp
The query is:
Get-WmiObject -Query "SELECT * from Win32_Process"
Measure-Command { Get-WmiObject -Query "SELECT * from Win32_Process" | foreach { $_.GetOwner().User }
Related articles