Icinga / icinga-powershell-plugins

A collection of Windows check plugins for the Icinga PowerShell Framework
GNU General Public License v2.0
51 stars 28 forks source link

CPU top process list causing timeouts #418

Closed lazyfrosch closed 1 month ago

lazyfrosch commented 1 month ago

Dear Mr. @LordHepipud, I am reaching out regarding bugs you've been introducing 😉

It appears to be that the "Top 10 Process CPU usage" feature in Invoke-IcingaCheckCPU can cause timeouts.

We are still using the powershell-connector and just upgraded to 1.12.3.

UNKNOWN - timeout during HTTP request: Post "https://localhost:5668/v1/checker?command=Invoke-IcingaCheckCPU": context deadline exceeded (*fmt.wrapError)

Some systems have this error occasionally for a few check executions, then the timeout is no longer breached. On a particular system I have the error permanently, so I've added -DisableProcessList there and the timeout went away:

image

Anything you've want me to test or debug? Gimme a call if you want!

lazyfrosch commented 1 month ago

Another system where it is flapping every few checks.

We've decided to disable the feature for now...

image

LordHepipud commented 1 month ago

Thank you for the issue! Yes, this feature can cause performance and timeout issues which I learned recently. Please use the flag -DisableProcessList for the plugin, which resolves this issue as you mentioned.

This feature will be re-designed in future Icinga for Windows versions, because right now it causes way too much issues.

I'm considering removing it with v1.13.0 for now, to ensure users don't run into this issue. I will check possible issues by doing so, but I guess that would be the right call.