[ZBX-21876] Warning message "lowering plugin capacity" when Agent2 starts Created: 2022 Nov 05 Updated: 2025 Mar 31 Resolved: 2025 Mar 31 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G), Agent2 plugin (G) |
Affects Version/s: | None |
Fix Version/s: | 7.0.12rc1, 7.2.6rc1, 7.4.0beta1 |
Type: | Patch request | Priority: | Major |
Reporter: | Evgeny Yurchenko | Assignee: | Stanislavs Jurgensons |
Resolution: | Fixed | Votes: | 11 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||
Team: | |||||||||
Sprint: | Prev.Sprint, S24-W42/43 | ||||||||
Story Points: | 1.5 |
Description |
Steps to reproduce:
Result: In /var/log/zabbix/zabbix_agent2.log there is a message: 2022/11/04 14:39:03.013506 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits Expected: Proposed ugly fix: $ git diff diff --git a/src/go/internal/agent/scheduler/manager.go b/src/go/internal/agent/scheduler/manager.go index 14e96f4d01..346ed61bf2 100644 --- a/src/go/internal/agent/scheduler/manager.go +++ b/src/go/internal/agent/scheduler/manager.go @@ -490,10 +490,14 @@ func (m *Manager) init() { for _, metric := range metrics { if metric.Plugin != pagent.impl { capacity, forceActiveChecksOnStart := getPluginOptions(agent.Options.Plugins[metric.Plugin.Name()], metric.Plugin.Name()) - if capacity > metric.Plugin.Capacity() { - log.Warningf("lowering the plugin %s capacity to %d as the configured capacity %d exceeds limits", - metric.Plugin.Name(), metric.Plugin.Capacity(), capacity) + if metric.Plugini.Name() == "ZabbixSync" { capacity = metric.Plugin.Capacity() + } else { + if capacity > metric.Plugin.Capacity() { + log.Warningf("lowering the plugin %s capacity to %d as the configured capacity %d exceeds limits", + metric.Plugin.Name(), metric.Plugin.Capacity(), capacity) + capacity = metric.Plugin.Capacity() + } |
Comments |
Comment by T.J. Yang [ 2024 Oct 04 ] |
Adding Plugins.ZabbixSync.System.Capacity=1 line in zabbix_agent2.conf was able stop the warning message when starting up agent2 version 7.0.4 |
Comment by Stanislavs Jurgensons [ 2025 Mar 31 ] |
Available in:
|