Thank you for this plugin.
I'm a total newbie when it comes to check_mk so please bear with me.
Installing /omd/sites/test/var/check_mk/packages/adsl_line version 1.1.
File conflict: /omd/sites/cmk/local/lib/check_mk/base/plugins/agent_based/adsl_line.py already existing.
OMD[cmk]:~/downloads$ rm /omd/sites/cmk/local/lib/check_mk/base/plugins/agent_based/adsl_line.py /omd/sites/cmk/local/share/check_mk/checkman/adsl_line /omd/sites/cmk/local/share/check_mk/web/plugins/metrics/adsl_line.py /omd/sites/cmk/local/share/check_mk/web/plugins/wato/adsl_line.py /omd/sites/cmk/local/share/snmp/mibs/NAS.mib
OMD[cmk]:~/downloads$ mkp -v install adsl_line-1.1.mkp
Installing /omd/sites/test/var/check_mk/packages/adsl_line version 1.1.
Agent based plugins (Checks, Inventory):
adsl_line.py
Fixing permissions of /omd/sites/cmk/local/lib/check_mk/base/plugins/agent_based/adsl_line.py: 0640 -> 0644
Checks' man pages:
adsl_line
Fixing permissions of /omd/sites/cmk/local/share/check_mk/checkman/adsl_line: 0640 -> 0644
Legacy GUI extensions:
plugins/metrics/adsl_line.py
plugins/wato/adsl_line.py
Fixing permissions of /omd/sites/cmk/local/share/check_mk/web/plugins/metrics/adsl_line.py: 0640 -> 0644
Fixing permissions of /omd/sites/cmk/local/share/check_mk/web/plugins/wato/adsl_line.py: 0640 -> 0644
SNMP MIBs:
NAS.mib
Fixing permissions of /omd/sites/cmk/local/share/snmp/mibs/NAS.mib: 0640 -> 0644
Traceback (most recent call last):
File "/omd/sites/cmk/bin/check_mk", line 92, in <module>
exit_status = modes.call(mode_name, mode_args, opts, args)
File "/omd/sites/cmk/lib/python3/cmk/base/modes/__init__.py", line 69, in call
return handler(*handler_args)
File "/omd/sites/cmk/lib/python3/cmk/base/modes/check_mk.py", line 742, in mode_packaging
cmk.base.packaging.do_packaging(args)
File "/omd/sites/cmk/lib/python3/cmk/base/packaging.py", line 90, in do_packaging
f(args)
File "/omd/sites/cmk/lib/python3/cmk/base/packaging.py", line 300, in package_install
packaging.install_by_path(path)
File "/omd/sites/cmk/lib/python3/cmk/utils/packaging.py", line 398, in install_by_path
return install(file_object=cast(BinaryIO, f))
File "/omd/sites/cmk/lib/python3/cmk/utils/packaging.py", line 514, in install
write_package_info(package)
File "/omd/sites/cmk/lib/python3/cmk/utils/packaging.py", line 785, in write_package_info
with pkg_info_path.open("w", encoding="utf-8") as f:
File "/omd/sites/cmk/lib/python3.9/pathlib.py", line 1252, in open
return io.open(self, mode, buffering, encoding, errors, newline,
File "/omd/sites/cmk/lib/python3.9/pathlib.py", line 1120, in _opener
return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/omd/sites/test/var/check_mk/packages/adsl_line'
I was able to fix this by changing the the name in the metadata of your package to /omd/sites/cmk/var/check_mk/packages/adsl_line
. I guess there is a better way to fix this though :)