Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2022-05-10 16:56:46 +0300
committerVladislavs Sokurenko <vladislavs.sokurenko@zabbix.com>2022-05-10 16:57:57 +0300
commitc66075b9430d8457ad09f8561483d7a6d6ccd550 (patch)
tree86c60acae7df6e6306a2fa00dc3afced56bc22b1 /src
parentc3953b31d421857e9a2df1a2a71231ce0eb5412e (diff)
...G...... [ZBX-20356] fixed perfomance counters not working when removed and added again on Zabbix agent2
Merge in ZBX/zabbix from feature/ZBX-20356-5.0 to release/5.0 * commit 'b3b5c32f6a12558bb5e39aced4116192b4c0ab36': .D........ [ZBX-20356] added ChangeLog entry ...G...... [ZBX-20356] fixed perfomance counters not working when removed and added again on Zabbix agent2 ...G...... [ZBX-20356] fixed perfomance counters not working when removed and added again on Zabbix agent2 (cherry picked from commit 05712882c061b51a346fe915843e29f8d12ebdc3)
Diffstat (limited to 'src')
-rw-r--r--src/go/plugins/windows/perfmon/perfmon.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/go/plugins/windows/perfmon/perfmon.go b/src/go/plugins/windows/perfmon/perfmon.go
index e43fc2be649..8679d9869f8 100644
--- a/src/go/plugins/windows/perfmon/perfmon.go
+++ b/src/go/plugins/windows/perfmon/perfmon.go
@@ -262,6 +262,8 @@ func (p *Plugin) Start() {
}
func (p *Plugin) Stop() {
+ p.counters = make(map[perfCounterIndex]*perfCounter)
+
_ = win32.PdhCloseQuery(p.query)
p.query = 0
}