Closed Paduu29 closed 4 years ago
Found the problem. I forked the project and commited and pushed a change. Now it should work without problems on CheckMK version 1.6
Great news! If you give me a pull request I could push it upstream :-)
Just did it, fairly new to github, that's why it took a while, sorry :P
Thanks! I just hope it still runs on CMK 1.5 - if not, might be a good reason to upgrade. :-)
You can allways change the "try : shutil.copy2(local_agents_dir + "/plugins/yum", target_dir + "/yum")" to " try : shutil.copy2(cmk.paths.local_agents_dir + "/plugins/yum", target_dir + "/yum")" and then it should work for both 1.5 and 1.6
Are you interested in another pull request? :-)
I wanted to do what I said earlier, tried it on my local CheckMK v 1.5 and what do you know...
shutil.copy2(cmk.utils.paths.local_agents_dir + "/plugins/yum", target_dir + "/yum") AttributeError: 'module' object has no attribute 'utils' So it need to do further testings. I think CheckMK doesn't handle try and except anymore, or who knows what's up now :D
Nevermind, it works. I forgot to upload the right file. I guess I can also close this issue, since it works for both 1.5 and 1.6 now
So https://github.com/HenriWahl/checkmk-agent-plugin-yum/pull/18/files works on 1.5 and 1.6?
With version 1.5 works with no problem, on version 1.6 after I make the rules and go to bake the agents, it gives me that error and agents are never baken