Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Import Macro Repair


Info

This article describes how to debug the windows ps section.

Status
colourGreen
titleLAST 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:

Code Block
languagebash
themeRDark
agents/wnx/src/engine/providers/ps.cpp


The query is:

Code Block
languagebash
themeRDark
Get-WmiObject -Query "SELECT * from Win32_Process" 


Code Block
languagebash
themeRDark
Measure-Command { Get-WmiObject -Query "SELECT * from Win32_Process" | foreach
{ $_.GetOwner().User }


Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "ps" , "windows" ) and type = "page" and space = "KB"
labelswindows ps

Page Properties
hiddentrue


Related issues