diff --git a/cpufreq/cpufreq-2.3.1.mkp b/cpufreq/cpufreq-2.3.1.mkp deleted file mode 100644 index 983e48cb..00000000 Binary files a/cpufreq/cpufreq-2.3.1.mkp and /dev/null differ diff --git a/cpufreq/cpufreq-2.4.0.mkp b/cpufreq/cpufreq-2.4.0.mkp new file mode 100644 index 00000000..110ad252 Binary files /dev/null and b/cpufreq/cpufreq-2.4.0.mkp differ diff --git a/cpufreq/lib/check_mk/base/plugins/agent_based/cpufreq.py b/cpufreq/lib/check_mk/base/plugins/agent_based/cpufreq.py index 42fed433..e99c9232 100644 --- a/cpufreq/lib/check_mk/base/plugins/agent_based/cpufreq.py +++ b/cpufreq/lib/check_mk/base/plugins/agent_based/cpufreq.py @@ -57,9 +57,12 @@ def check_cpufreq(section) -> CheckResult: freqs = [] perfdata = [] errors = [] + cpus_seen = set() for line in section: - res = State.OK cpu = line[0] + if cpu in cpus_seen: + continue + cpus_seen.add(cpu) governor = line[1] cur_freq = int(line[2]) * 1000.0 if line[3] != 'unknown':