-
Notifications
You must be signed in to change notification settings - Fork 2
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
Extremly High CPU Usage with Agent #58
Comments
Hi @RRonGit, Did you have defined any custom checks?
To apply the new configuration you need to restart the openITCOCKPITAgent service |
Hi @nook24, Yes we use custom check to control the Windows System Time. (Unfortunately, I couldn't insert screenshots directly here, so with a link.) |
You need to figure out where this The only check which uses a PowerShell as workaround is the Windows Event Log check. As soon as you disable this check, the Agent will not longer start a PowerShell process. On our testsystems (Windows Server 2016, 2019 and Windows 10 all with latest updates) the agent is running form 0 to 2% CPU according to TaskManager (with disabled Event Log) Also there is no PowerShell process in TaskManager. Custom Checks will be executed through an PowerShell or CMD, depending on your configuration. Which brings us back to the question, where is this PowerShell process coming from :) Maybe antivirus? PS: You can insert screenshots via drag and drop. |
Hi @nook24, At first we did not notice that the value "wineventlog" is already in the config.ini file and just inserted the line at the bottom of the config.ini file. After we deleted our inserted line (wineventlog = False) and set the value in the right place, the CPU load was fine again and the Powershell process was no longer there. Many Thanks. |
I have done some optimisation to the event log check today. So hopefully it will consume less CPU power. Unfortunately i had not much time to test this. It would be great if you could test this on one of your systems as well. @Terminator81 This could be interesting for you as well How to apply the patch:
|
Hi @nook24 The customized openitcockpit-agent.exe also causes a high CPU load. (wineventlog = True) |
Today @Terminator81 reported an issue with the test version build from the eventlog-rr branch referenced in: #58 (comment) To safe CPU time, the eventlog-rr implementation uses an round robbin hashlist which will query one hour of eventlogs on startup, and only pull the delta of eventlog entries and append them to the list. |
Thanks for being patient. With the release of version 3.0.9 of the agent, we are using WMI as default datasource to query the windows event log entries. This reduce the amount of used CPU usage. The PowerShell method is as fallback option still available via config.ini. Please let me know if this resolves your CPU usage issues. |
Agent Mode:
Versions
Operating system
Windows Server 2012 to 2019
Describe the bug
on all our VMs (25) (Vmware) we have an extremely high CPU load since the installation of the new agent (previously we used agent NSCP-0.4.1.90 with Openitcokpit 2.7.15).
Sample after Installation the agent:
And here after shutdown the OpenITCockpit Agent Service:
The Process is «Powershell»:
he change from nothing to 50% CPU load.
This happens on all OS versions from Windows Server 2012 to 2019
The text was updated successfully, but these errors were encountered: