CPU utilization missing for Windows server

Hello, CPU utilization is missing for Windows servers.

Showconfig ps output from the windows host as below -

Environment Variables:

MK_LOCALDIR=“C:\ProgramData\checkmk\agent\local”

MK_STATEDIR=“C:\ProgramData\checkmk\agent\state”

MK_PLUGINSDIR=“C:\ProgramData\checkmk\agent\plugins”

MK_TEMPDIR=“C:\ProgramData\checkmk\agent\tmp”

MK_LOGDIR=“C:\ProgramData\checkmk\agent\log”

MK_CONFDIR=“C:\ProgramData\checkmk\agent\config”

MK_SPOOLDIR=“C:\ProgramData\checkmk\agent\spool”

MK_INSTALLDIR=“C:\ProgramData\checkmk\agent\install”

MK_MSI_PATH=“C:\ProgramData\checkmk\agent\update”

Loaded Config Files:

system: ‘’

bakery: ‘C:\ProgramData\checkmk\agent\bakery’

user : ‘’

ps

========================================

The check_mk yaml file is currently setup to allow access to specific CMK servers only.
“only_from: 10.x.x.x”
However, when this line is removed, the showconfig ps output is as below and is unable to talk with CMK server -

Environment Variables:

MK_LOCALDIR=“C:\ProgramData\checkmk\agent\local”

MK_STATEDIR=“C:\ProgramData\checkmk\agent\state”

MK_PLUGINSDIR=“C:\ProgramData\checkmk\agent\plugins”

MK_TEMPDIR=“C:\ProgramData\checkmk\agent\tmp”

MK_LOGDIR=“C:\ProgramData\checkmk\agent\log”

MK_CONFDIR=“C:\ProgramData\checkmk\agent\config”

MK_SPOOLDIR=“C:\ProgramData\checkmk\agent\spool”

MK_INSTALLDIR=“C:\ProgramData\checkmk\agent\install”

MK_MSI_PATH=“C:\ProgramData\checkmk\agent\update”

Loaded Config Files:

system: ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’

bakery: ‘C:\ProgramData\checkmk\agent\bakery’

user : ‘C:\ProgramData\checkmk\agent\check_mk.user.yml’

ps

enabled: yes
use_wmi: yes
full_path: no

If you get no CPU utilization then it has nothing to do with the agent config.
The CPU utilization is returned without any special config.
Only your performance counter system must work on the machine.
Can you provide from the agent output the section “wmi_cpuload” and “winperf_processor”? There only the last one is responsible for the utilization.

No information found for “winperf_processor”

<<<wmi_cpuload:sep(124)>>>
[system_perf]
AlignmentFixupsPersec|Caption|ContextSwitchesPersec|Description|ExceptionDispatchesPersec|FileControlBytesPersec|FileControlOperationsPersec|FileDataOperationsPersec|FileReadBytesPersec|FileReadOperationsPersec|FileWriteBytesPersec|FileWriteOperationsPersec|FloatingEmulationsPersec|Frequency_Object|Frequency_PerfTime|Frequency_Sys100NS|Name|PercentRegistryQuotaInUse|PercentRegistryQuotaInUse_Base|Processes|ProcessorQueueLength|SystemCallsPersec|SystemUpTime|Threads|Timestamp_Object|Timestamp_PerfTime|Timestamp_Sys100NS|WMIStatus
0||673829057||381450|64030365742|1404799386|107625721|3632064565501|83217816|72912837450|24407905|0|10000000|2240904|10000000||136260356|4294967295|117|0|1486935199|132613097354854939|1608|132638983454988726|5800643946126|132639055454980000|OK

Is the “winperf_processor” section disabled in your agent configuration?

I am not sure. How can it be enabled?

In a normal agent it is not disabled. You can look at the current configuration with “check_mk_agnet showconfig”
The section parameters should have “winperf” inside and this should not be present inside the “disabled_sections” list.

C:\Program Files (x86)\checkmk\service>check_mk_agent.exe showconfig

Environment Variables:

MK_LOCALDIR=“C:\ProgramData\checkmk\agent\local”

MK_STATEDIR=“C:\ProgramData\checkmk\agent\state”

MK_PLUGINSDIR=“C:\ProgramData\checkmk\agent\plugins”

MK_TEMPDIR=“C:\ProgramData\checkmk\agent\tmp”

MK_LOGDIR=“C:\ProgramData\checkmk\agent\log”

MK_CONFDIR=“C:\ProgramData\checkmk\agent\config”

MK_SPOOLDIR=“C:\ProgramData\checkmk\agent\spool”

MK_INSTALLDIR=“C:\ProgramData\checkmk\agent\install”

MK_MSI_PATH=“C:\ProgramData\checkmk\agent\update”

Loaded Config Files:

system: ‘’

bakery: ‘C:\ProgramData\checkmk\agent\bakery’

user : ‘’

Please use the formatted output option inside your post.
I only some lines but not the complete config status.

1 Like
C:\Program Files (x86)\checkmk\service>check_mk_agent.exe showconfig
# Environment Variables:
# MK_LOCALDIR="C:\ProgramData\checkmk\agent\local"
# MK_STATEDIR="C:\ProgramData\checkmk\agent\state"
# MK_PLUGINSDIR="C:\ProgramData\checkmk\agent\plugins"
# MK_TEMPDIR="C:\ProgramData\checkmk\agent\tmp"
# MK_LOGDIR="C:\ProgramData\checkmk\agent\log"
# MK_CONFDIR="C:\ProgramData\checkmk\agent\config"
# MK_SPOOLDIR="C:\ProgramData\checkmk\agent\spool"
# MK_INSTALLDIR="C:\ProgramData\checkmk\agent\install"
# MK_MSI_PATH="C:\ProgramData\checkmk\agent\update"
# Loaded Config Files:
# system: ''
# bakery: 'C:\ProgramData\checkmk\agent\bakery'
# user  : ''

#

It’s a little bit short. The system config file is missing.

Example here

# Environment Variables:
# MK_LOCALDIR="C:\ProgramData\checkmk\agent\local"
# MK_STATEDIR="C:\ProgramData\checkmk\agent\state"
# MK_PLUGINSDIR="C:\ProgramData\checkmk\agent\plugins"
# MK_TEMPDIR="C:\ProgramData\checkmk\agent\tmp"
# MK_LOGDIR="C:\ProgramData\checkmk\agent\log"
# MK_CONFDIR="C:\ProgramData\checkmk\agent\config"
# MK_SPOOLDIR="C:\ProgramData\checkmk\agent\spool"
# MK_INSTALLDIR="C:\ProgramData\checkmk\agent\install"
# MK_MSI_PATH="C:\ProgramData\checkmk\agent\update"
# MK_MODULESDIR="C:\ProgramData\checkmk\agent\modules"
# Loaded Config Files:
# system: 'C:\Program Files (x86)\checkmk\service\check_mk.yml'
# bakery: 'C:\ProgramData\checkmk\agent\bakery'
# user  : 'C:\ProgramData\checkmk\agent\check_mk.user.yml'

#
global:
  enabled: true
  only_from: ~
  port: 6556
  ipv6: no
  encrypted: no
  passphrase: password
  execute: [exe, bat, vbs, cmd, ps1]
  async: yes
  try_kill_plugin_process: safe
  sections:
    - check_mk
    - spool
    - plugins
    - local
....

and so on

hmm…so what can be done to fix it? Do we have any default template for the agent file that can be used? or do I need to manually add the missing information in the file?

Can you please help to share any feedback on how to rectify the agent config file with missing information or sections?

If the agent was installed with the normal MSI file all the things should be in the right place.
Is the system config file existing in this place → ‘C:\Program Files (x86)\checkmk\service\check_mk.yml’
Is your agent running as local system?

Yes to all 3 - Agent installed with normal MSI downloaded from CMK GUI, File location is as mentioned and agent is running as local system.

Then something on your Windows systems is very broken.
I have not seen any agent who cannot load it’s own config file.

Can you have a look at the agent output as it is on the monitoring server?

Thanks Andreas for your inputs. I uninstalled and reinstalled the agent msi to fix this.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.