Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

This article explains how to reset the counter of CPU cores when added to a Windows VM.

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.0.0P1


Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Problem

Since the increase of the cores on the Windows VM, the graphs show constant values without any change.

Screenshot of the CPU load and CPU core service highlighting that after adding more cores, the graphs are not updating.Image Modified


The Windows Agent executes the following commands to get the values:

...

  1. Stop the site

    Code Block
    languagebash
    themeRDark
    root@mylinuxhost~# omd stop <SITENAME>

    .

  2. As site user, you should find this file: ~/tmp/check_mk/counters/<HOSTNAME>. In this file, you need to delete the following section:

    Code Block
    languagebash
    themeRDark
    title~/tmp/check_mk/counters/<HOSTNAME>
    ('wmi_cpuload', None, 'load_5min'): (29632775.478311848, 18.056825022850912), ('wmi_cpuload', None, 'load_15min'): (29632775.478311848, 15.787631011576273),

    .

  3. Attached, you will find a screenshot with the marked section:

    Screenshot Windows command prompt highlighting wmi_cpuload and load_15min highlighted.Image Modified

    .

  4. Start the site

    Code Block
    languagebash
    themeRDark
    root@mylinuxhost~#  omd start <SITENAME>


...