HenriWahl / checkmk-agent-plugin-yum

Checks for updates on RPM-based distributions via yum.
GNU General Public License v2.0
23 stars 22 forks source link

Error when trying to bake Agents with this yum plugin enabled. #46

Closed DreFraNorge closed 2 years ago

DreFraNorge commented 2 years ago

I get the following error when try to bake Agents with the yum plugin enabled. I am running on CEE 2.0.0p9. Any idea what it can be?

=============================== Exception: Error running automation call bake-agents (exit code 2), error: Error creating agent for checkmk2.xxxxx.xx: Error creating agents: Error creating b611afddc96d4415/linux_deb agent for checkmk2.xxxxx.xx: Error in bakery plugin "yum": name 'shutil' is not defined

Traceback (most recent call last): File "", line 10, in bake_yum NameError: name 'shutil' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/omd/sites/monitoring/lib/python3/cmk/base/cee/bakery/agent_bakery.py", line 426, in _execute_pre_17_bakery_plugin bake_func(**func_args) File "", line 15, in bake_yum NameError: name 'shutil' is not defined . .

More information can be found in ~/var/log/web.log

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

Jon1760 commented 2 years ago

Version 2.3.1 resolved this issue for me. It uses the new Check_MK API for agent plugins.

DreFraNorge commented 2 years ago

Thanks for your answer. I have updated to 2.3.1 and now it works.