Info |
---|
This article describes how to debug the windows ps section. |
Status |
---|
colour | Green |
---|
title | LAST TESTED ON CHECKMK 2.3.0P1 |
---|
|
Panel |
---|
borderColor | black |
---|
bgColor | #f8f8f8 |
---|
title | 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 GitHub:
Code Block |
---|
|
agents/wnx/src/engine/providers/ps.cpp |
The query is:
Code Block |
---|
|
Get-WmiObject -Query "SELECT * from Win32_Process" |
Code Block |
---|
|
Measure-Command { Get-WmiObject -Query "SELECT * from Win32_Process" | foreach
{ $_.GetOwner().User } |
...