Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wsus_sync_status not compatible with CMK 1.6 #7

Open
meilon opened this issue Sep 18, 2019 · 1 comment
Open

wsus_sync_status not compatible with CMK 1.6 #7

meilon opened this issue Sep 18, 2019 · 1 comment

Comments

@meilon
Copy link

meilon commented Sep 18, 2019

Hi there,

wsus_sync_status isn't compatible with the latest CMK 1.6 beta, so I'm guessing it won't be with the final release:

Failed to load plugin /omd/sites/prod/local/share/check_mk/web/plugins/wato/wsus_sync_status.py: No module named defines
Traceback (most recent call last):
  File "/omd/sites/prod/lib/python/cmk/gui/utils.py", line 173, in load_web_plugins
    execfile(file_path, globalvars)
  File "/omd/sites/prod/local/share/check_mk/web/plugins/wato/wsus_sync_status.py", line 4, in <module>
    import cmk.defines as defines
ImportError: No module named defines

I think it's supposed to be cmk.utils.defines now

@Ralle75
Copy link

Ralle75 commented Oct 2, 2019

Hi meilon,

i has the same problem and make some changes in two files.

in /omd/sites/prod/local/share/check_mk/web/plugins/wato/wsus_sync_status.py

delete or comment the following line:
import cmk.defines as defines

and in /omd/sites/prod/local/share/check_mk/agents/bakery/wsus_sync_status
change the line:
shutil.copy2(cmk.paths.local_agents_dir + "/plugins/wsus_sync_status.ps1",

to:
shutil.copy2(cmk.utils.paths.local_agents_dir + "/plugins/wsus_sync_status.ps1",

hope this helps for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants