Hi guys,
I encounter issue where during baking agent it throws that issue:
Error creating aaac481b884bcd2a/linux_deb agent for GENERIC: Error in bakery plugin “systemd”: ‘module’ object has no attribute ‘paths’
Traceback (most recent call last):
File “/omd/sites/test/lib/python/cmk_base/cee/agent_bakery.py”, line 364, in execute_bakery_plugin
bake_func(*func_args)
File “/omd/sites/test/local/share/check_mk/agents/bakery/systemd”, line 18, in bake_systemd
shutil.copy2(cmk.paths.local_agents_dir + “/plugins/systemd”, plugins_dir + “/systemd”)
AttributeError: ‘module’ object has no attribute ‘paths’
.
I have installed systemd plugin ver 0.6 and I’ve created rule to monitor linux systemd units.
Has this plugin been tested on never version ?
Your help in resolving that would be much appreciated
web.log
2020-04-01 10:38:28,341 [40] [cmk.web.automations 29323] Error running ‘check_mk --automation bake-agents --’ (exit code 2)
2020-04-01 10:38:28,342 [40] [cmk.web.background_process 29323] Exception in background function
Traceback (most recent call last):
File “/omd/sites/test/lib/python/cmk/gui/background_job.py”, line 205, in _execute_function
func_ptr(*args, **kwargs)
File “/omd/sites/test/lib/python/cmk/gui/cee/plugins/wato/agent_bakery.py”, line 5219, in bake_agents_background_job
watolib.check_mk_local_automation(‘bake-agents’)
File “/omd/sites/test/lib/python/cmk/gui/watolib/automations.py”, line 126, in check_mk_local_automation
err=errdata)
MKGeneralException: Error running automation call bake-agents (exit code 2), error:
Error creating agent for GENERIC: Error creating agents: Error creating aaac481b884bcd2a/linux_rpm agent for GENERIC: Error in bakery plugin “systemd”: ‘module’ object has no attribute ‘paths’Traceback (most recent call last):
File “/omd/sites/test/lib/python/cmk_base/cee/agent_bakery.py”, line 364, in execute_bakery_plugin
bake_func(*func_args)
File “/omd/sites/test/local/share/check_mk/agents/bakery/systemd”, line 18, in bake_systemd
shutil.copy2(cmk.paths.local_agents_dir + “/plugins/systemd”, plugins_dir + “/systemd”)
AttributeError: ‘module’ object has no attribute ‘paths’
.
Error creating aaac481b884bcd2a/linux_deb agent for GENERIC: Error in bakery plugin “systemd”: ‘module’ object has no attribute ‘paths’Traceback (most recent call last):
File “/omd/sites/test/lib/python/cmk_base/cee/agent_bakery.py”, line 364, in execute_bakery_plugin
bake_func(*func_args)
File “/omd/sites/test/local/share/check_mk/agents/bakery/systemd”, line 18, in bake_systemd
shutil.copy2(cmk.paths.local_agents_dir + “/plugins/systemd”, plugins_dir + “/systemd”)
AttributeError: ‘module’ object has no attribute ‘paths’Error creating aaac481b884bcd2a/linux_tgz agent for GENERIC: Error in bakery plugin “systemd”: ‘module’ object has no attribute ‘paths’
Traceback (most recent call last):
File “/omd/sites/test/lib/python/cmk_base/cee/agent_bakery.py”, line 364, in execute_bakery_plugin
bake_func(*func_args)
File “/omd/sites/test/local/share/check_mk/agents/bakery/systemd”, line 18, in bake_systemd
shutil.copy2(cmk.paths.local_agents_dir + “/plugins/systemd”, plugins_dir + “/systemd”)
AttributeError: ‘module’ object has no attribute ‘paths’