/
You must install Python Module to use the updater with parameters -vv

You must install Python Module to use the updater with parameters -vv

 

This article helps troubleshoot the Python module that is used for the updater.

LAST TESTED ON CHECKMK 2.3.0P1

Table of Contents

 

Problem: zipped Python module

During the registration of the Check_MK Updater on Windows, you may face this issue:

C:\Program Files (x86)\checkmk\service>check_mk_agent.exe updater -vv You must install Python Module to use the updater with parameters '-vv'. To install Python Module you should use Bakery.

 

Please make sure that you open the cmd/PowerShell as an administrator!

 

The problem is that the Python module was not successfully unzipped during the updater process:

Screenshot of the checkmk agent modules directory within windows. The python-3.8.zip file is selected.
Screenshot of the Checkmk agent modules directory within windows. The python-3.8.zip file is selected.


Or the folder is completely empty

Screenshot of the checkmk agent modules directory within windows. The folder is empty.
Screenshot of the Checkmk agent modules directory within windows. The folder is empty.

A possible workaround

If you have only a python_x.cap file 

For some reason, you may have only one python_x.cap file in your folder. In that case, you have these two options:

Reinstall the Python (if the folder is zipped)

mkdir C:\ProgramData\checkmk\agent\modules\python-3 & expand C:\ProgramData\checkmk\agent\install\modules\python-3.cab -F:* C:\ProgramData\checkmk\agent\modules\python-3 && cd C:\ProgramData\checkmk\agent\modules\python-3 && call postinstall.cmd

Reinstall the Python (if the folder is empty)

expand C:\ProgramData\checkmk\agent\install\modules\python-3.cab -F:* C:\ProgramData\checkmk\agent\modules\python-3 && cd C:\ProgramData\checkmk\agent\modules\python-3 && call postinstall.cmd

Reinstall the Python (if the folder is zipped)

Reinstall the Python (if the folder is empty)

Solutions

Increase the timeout of the updater

Via bakery

Go to Setup → Agents → Windows, Linux, Solaris, AIXAgent rulesSet timeouts for plugins and local checks

Script Pattern: cmk_update_agent.checkmk.py

 

After saving the rule, you must bake and sign the new agent!

Here, we described in detail how to configure caching and timeout for Windows plugins:  Asynchronous execution of Windows plugins

Via config file

C:\ProgramData\checkmk\check_mk.user.yml

 

Create an exception for the AV

Please create an exception for the following paths for the AV:

 

Reinstall python

 

Related articles