kuhn-ruess / Checkmk-Checks

Checks and Stuff for Check_MK
MIT License
40 stars 22 forks source link

Cannot find check file agent_pure needed for check type agent_pure #42

Closed rschitz closed 1 year ago

rschitz commented 2 years ago

Hi, got this error while activating: image

Despite the fact that the checks are running fine: image

rschitz commented 2 years ago

Traceback (most recent call last): File "/omd/sites/xxxxx/lib/python3/cmk/base/automations/check_mk.py", line 1006, in execute do_restart( File "/omd/sites/xxxxx/lib/python3/cmk/base/core.py", line 66, in do_restart core_config.do_create_config(core, hosts_to_update=hosts_to_update) File "/omd/sites/xxxxx/lib/python3/cmk/base/core_config.py", line 309, in do_create_config _create_core_config(core, hosts_to_update=hosts_to_update) File "/omd/sites/xxxxx/lib/python3/cmk/base/core_config.py", line 381, in _create_core_config core.create_config(config_path, config_cache, hosts_to_update=hosts_to_update) File "/omd/sites/xxxxx/lib/python3/cmk/base/core_nagios.py", line 76, in create_config self._precompile_hostchecks(config_path) File "/omd/sites/xxxxx/lib/python3/cmk/base/core_nagios.py", line 94, in _precompile_hostchecks _precompile_hostchecks(config_path) File "/omd/sites/xxxxx/lib/python3/cmk/base/core_nagios.py", line 1076, in _precompile_hostchecks host_check = _dump_precompiled_hostcheck( File "/omd/sites/xxxxx/lib/python3/cmk/base/core_nagios.py", line 1217, in _dump_precompiled_hostcheck file_list = sorted(_get_legacy_check_file_names_to_load(needed_legacy_check_plugin_names)) File "/omd/sites/xxxxx/lib/python3/cmk/base/core_nagios.py", line 1413, in _get_legacy_check_file_names_to_load raise MKGeneralException( cmk.utils.exceptions.MKGeneralException: Cannot find check file agent_pure needed for check type agent_pure

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/omd/sites/xxxxx/bin/check_mk", line 92, in exit_status = modes.call(mode_name, mode_args, opts, args) File "/omd/sites/xxxxx/lib/python3/cmk/base/modes/init.py", line 69, in call return handler(*handler_args) File "/omd/sites/xxxxx/lib/python3/cmk/base/modes/check_mk.py", line 1413, in mode_automation sys.exit(automations.automations.execute(args[0], args[1:])) File "/omd/sites/xxxxx/lib/python3/cmk/base/automations/init.py", line 60, in execute result = automation.execute(args) File "/omd/sites/xxxxx/lib/python3/cmk/base/automations/check_mk.py", line 1012, in execute raise MKAutomationError(str(e)) cmk.base.automations.MKAutomationError: Cannot find check file agent_pure needed for check type agent_pure

Bastian-Kuhn commented 1 year ago

Hello, with 1.3.1 every problem should be fixed now.

rschitz commented 1 year ago

Hi, sorry for the delay. Same issue with 1.3.1 and 1.4

rschitz commented 1 year ago

image

rschitz commented 1 year ago

same issue after upgrading to 2.1.0p28 image

rschitz commented 1 year ago

solved it by renaming pure_agent to agent_pure in /local/share/check_mk/checks

image

Bastian-Kuhn commented 1 year ago

Are you are using nagios as core?

Am 07.06.2023 um 13:03 schrieb Raphaël SCHITZ @.***>:

solved it by renaming pure_agent to agent_pure in /local/share/check_mk/checks

https://user-images.githubusercontent.com/8385646/244028801-012c06d8-0447-4d71-9157-552ad3c62f35.png — Reply to this email directly, view it on GitHub https://github.com/kuhn-ruess/Checkmk-Checks/issues/42#issuecomment-1580538263, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG3QJWZILDGSMJ73SWNIQDXKBNWZANCNFSM6AAAAAAR2WAG3I. You are receiving this because you modified the open/close state.

rschitz commented 1 year ago

i'm not sure, it's a stock Checkmk Raw Edition installed on debian 11

Bastian-Kuhn commented 1 year ago

ah thanks, then you have the slow nagios as core and that would be the reason I never noticed a problem.

Am 14.06.2023 um 15:21 schrieb Raphaël SCHITZ @.***>:

i'm not sure, it's a stock Checkmk Raw Edition installed on debian 11

— Reply to this email directly, view it on GitHub https://github.com/kuhn-ruess/Checkmk-Checks/issues/42#issuecomment-1591199997, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG3QJREVR6PFWUQAYK6U5TXLG3GFANCNFSM6AAAAAAR2WAG3I. You are receiving this because you modified the open/close state.

rschitz commented 1 year ago

didnt know the other version have a different and faster core, looks fast enough to me already :) edit: all explained here: https://checkmk.com/blog/raw-vs-enterprise

Bastian-Kuhn commented 1 year ago

You will notice the difference quickly if you have more than about 20–30 Hosts :)

Thanks, then, for the Feedback, I will make sure to fix that soon.

Am 14.06.2023 um 15:25 schrieb Raphaël SCHITZ @.***>:

didnt know the other version have a different and faster core, looks fast enough to me already :D

— Reply to this email directly, view it on GitHub https://github.com/kuhn-ruess/Checkmk-Checks/issues/42#issuecomment-1591206024, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG3QJWB5VN7JI23L55GT2TXLG3S5ANCNFSM6AAAAAAR2WAG3I. You are receiving this because you modified the open/close state.

rschitz commented 1 year ago

we have more that that and i'm still very satisfied but i'll look into it thank you for this great plugin!