Systemd unit check in ver 1.6.0p8 issue during agent bakery

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’

Anyone ?
@r.sander I believe you’re the author of the plugin.

Can I have you input on above issue ?

Do not use the systemd MKP as a systemd check is now built into CMK 1.6

@r.sander As far as I know and see it monitors all services unless i specify which I don’t want to monitor.

Unless I’m wrong, but what if I want to monitor ONLY 5 services ? Is there any guide how to achieve it ?

It would be very beneficial to say that mkp is obsolete with version 1.6. Less confusion

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.