Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Invoke-IcingaCheckCPU: add a "top cpu-users" to output #366

Closed
tectumopticum opened this issue Aug 29, 2023 · 0 comments · Fixed by #392
Closed

Enhancement Invoke-IcingaCheckCPU: add a "top cpu-users" to output #366

tectumopticum opened this issue Aug 29, 2023 · 0 comments · Fixed by #392
Labels
enhancement New feature or request
Milestone

Comments

@tectumopticum
Copy link

tectumopticum commented Aug 29, 2023

You often hear the question which process triggers the cpu-usage-events. After login to the server the high-load-situation is often over and you don't have appropriate information how to avoid this in the future.
So ist would be nice to add something like

Get-Process | Sort-Object -Property 'CPU' -Descending | Select-Object -First 3
(easy code, but only cpu-usage-time in seconds)

get-wmiobject Win32_PerfFormattedData_PerfProc_Process| Select-Object -Property Name, IDProcess, HandleCount, PercentProcessorTime | Sort-Object -Property 'PercentProcessorTime' -Descending | Select-Object -First 5

....or other better suggestions...

to the output of the plugin if one of the triggerlevels is reached.
Maybe it makes sense to connect this to the verbosity-level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants