rbicelli / pfsense-zabbix-template

Zabbix Template for pfSense
Apache License 2.0
244 stars 107 forks source link

Causes 50% CPU usage #47

Closed yurtesen closed 3 years ago

yurtesen commented 4 years ago

On a system with many OpenVPN tunnels and servers, and many interfaces and VLANs. This increases load from 1% to 50% It is not usable like this unfortunately...

rbicelli commented 4 years ago

Please try to raise the interval of item checks in discovery rules.

rbicelli commented 4 years ago

I checked the template and it seems I didn't corrected some check intervals after tests. Now I raised the discovery intervals and some items check (i.e. gateway status and vpn tunnel status every 30 seconds are a bit aggressive) and checking CPU utilization. Will upload an update soon.

yurtesen commented 4 years ago

There are also other people at zabbix share site which commented about high CPU use.

I think the checks are just taking too much CPU time. If you increase the interval, the high CPU usage will happen with longer intervals. Yes it is an improvement that high CPU usage will not be constant, but not a good solution overall. I feel the checks must be somehow simplified to not use so much processing power

Unfortunately I do not have time to go back and check this. So I won't be able to test it again... So I do not know how else I can contribute right now.

rbicelli commented 4 years ago

Sorry but I don't check Zabbix share as regular basis. You can help trying to determine which check is causing high CPU usage.