icinga-powershell-plugins icon indicating copy to clipboard operation
icinga-powershell-plugins copied to clipboard

Icinga Powershell Plugins quite heavy on CPU/memory usage

Open mattpoel opened this issue 1 year ago • 2 comments
trafficstars

We have noticed high CPU usage alerts after adding a couple of smaller Windows application server VMs to the Icinga monitoring using the PowerShell framework/plugins. Upon monitoring the process explorer, we found that the high CPU usage is originating from the PowerShell processes (Icinga PowerShell Plugins) themselves. This is causing CPU bottlenecks when multiple checks are scheduled at the same time:

Icinga - Powershell CPU Usage

The execution times of 3-5 seconds for the checks also appear to be quite high. We have observed execution times of up to 15-16 seconds for Invoke-IcingaCheckService on a physical Windows server with almost no CPU usage by non-Icinga processes and a very low CPU usage.

Is this resource usage something to expect?

Cheers!

mattpoel avatar Oct 14 '24 09:10 mattpoel

Changing to standard (but deprecated) windows-plugins significantly decreased CPU usage on monitored servers, with checks now executed in the lower ms range.

mattpoel avatar Oct 16 '24 14:10 mattpoel

could you please tell us the versions of the IfW-components you're using (output of 'show-icinga'-command) and the os-versions?

tectumopticum avatar Nov 28 '24 09:11 tectumopticum

Please have a look on the API check forwarded feature, which will drastically improve performance and resource consumption:

https://icinga.com/docs/icinga-for-windows/latest/doc/110-Installation/30-API-Check-Forwarder/

LordHepipud avatar Apr 23 '25 10:04 LordHepipud