Skip to content

current_mhz in check_cpu_frequency always return max mhz value #1302

@IRIX64

Description

@IRIX64

Describe the bug
The output of the check_cpu_frequency command doesnt return the current mhz as expected. Instead the output is the same as MAX frequency or 100%

To Reproduce
Steps to reproduce the behavior:
Add CheckSystem = enabled to the *.ini and restart ncsp
From the command line:
[system@nagios plugins]# ./check_nrpe_32 -f check_nrpe_32.config -H host.acme.local -c check_cpu_frequency -a ''

Doesnt matter if the default if requestet or
[system@nagios plugins]# ./check_nrpe_32 -f check_nrpe_32.config -H host.acme.local -c check_cpu_frequency -a 'detail-syntax=Current MHZ:${current_mhz}'
OK: Current MHZ:2600, Current MHZ:2600|'Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz'=100%;50;30 'Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz'=100%;50;30

Expected behavior
Current MHZ which should be less than MAX MHZ as long as system isnt under heavy load

Screenshots
Return from the above:
OK: Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz: 2600/2600 MHz (100%), Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz: 2600/2600 MHz (100%)|'Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz'=100%;50;30 'Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz'=100%;50;30

System

  • OS: Windows
  • OS Version Windows Server 2022
  • Version 0.12.6 2026-05-15

Additional context
NSclient++ runs within a vSphere 8.0.3 Virtual Machine.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions