ImTheLucKyOne / check_mk_emcunity

Check_MK Extensions for Dell EMC Unity Storages
GNU General Public License v3.0
5 stars 8 forks source link

CMK 1.6 #17

Closed wernermarcel1 closed 4 years ago

wernermarcel1 commented 4 years ago

Hi,

we upgraded to 1.6 and realized that the check is not running.

2019-10-16 09:33:00,055 [40] [cmk.web 19058] Failed to load plugin /local/share/check_mk/web/plugins/metrics/emcunity.py: name 'df_translation' is not defined Traceback (most recent call last): File "lib/python/cmk/gui/utils.py", line 173, in load_web_plugins execfile(file_path, globalvars) File "local/share/check_mk/web/plugins/metrics/emcunity.py", line 4, in check_metrics["check_mk-emcunity_pool"] = df_translation

I know that is untested but has you any hints for me ?

rg marcel

ImTheLucKyOne commented 4 years ago

Hi Marcel,

I will have a look into this. Thank you for reporting!

Regards Philipp

ImTheLucKyOne commented 4 years ago

Hi Marcel,

as a workaround, please append the content of

~/local/share/check_mk/web/plugins/metrics/emcunity.py

to

~/lib/python/cmk/gui/plugins/metrics/check_mk.py

With the update to cmk 1.6 they moved the place where all the web plugins resided and it seems like check_mk does not register and read the python file in the "local" path anymore so the metric value translation does not work correctly anymore.

PS:

On a fresh cmk1.6.0p5 installation I was able to monitor my unity without any major errors. Just the metric calculation was wrong. Moving stated content to the new location fixed it, so I hope it will fix your bigger error aswell. I will head out to the cmk on the mailing list because of that. Please report if the workaround works for you.

wernermarcel1 commented 4 years ago

Hi ,

you workarounf worked.

Im on 1.6P3. at the moment.

Rg Marcel

--

From: "Philipp N." notifications@github.com Reply to: ImTheLucKyOne/check_mk_emcunity reply@reply.github.com Date: Tuesday, 22. October 2019 at 17:11 To: ImTheLucKyOne/check_mk_emcunity check_mk_emcunity@noreply.github.com Cc: "Werner, Marcel" Marcel.Werner@prosiebensat1.com, Author author@noreply.github.com Subject: Re: [ImTheLucKyOne/check_mk_emcunity] CMK 1.6 (#17)

Hi Marcel,

as a workaround, please append the content of

~/local/share/check_mk/web/plugins/metrics/emcunity.py

to

~/lib/python/cmk/gui/plugins/metrics/check_mk.py

With the update to cmk 1.6 they moved the place where all the web plugins resided and it seems like check_mk does not register and read the python file in the "local" path anymore so the metric value translation does not work correctly anymore.

PS:

On a fresh cmk1.6.0p5 installation I was able to monitor my unity without any major errors. Just the metric calculation was wrong. Moving stated content to the new location fixed it, so I hope it will fix your bigger error aswell. I will head out to the cmk on the mailing list because of that. Please report if the workaround works for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FImTheLucKyOne%2Fcheck_mk_emcunity%2Fissues%2F17%3Femail_source%3Dnotifications%26email_token%3DAJCHSBG5VLWNA7DJAUW5MVDQP4J2DA5CNFSM4JBHPEXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB6DG2I%23issuecomment-545010537&data=02%7C01%7CMarcel.Werner%40prosiebensat1.com%7Cfe18ce3a30824470f3d508d757021e62%7C3825a6f324cb47d48aa235d3e5891324%7C1%7C0%7C637073538915314138&sdata=Sy%2FCUE1MJTURRTMElx7FbZod9wWicrQjnzh4lz9W0LI%3D&reserved=0, or unsubscribehttps://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJCHSBCNSZFZOAULF4RE4WTQP4J2DANCNFSM4JBHPEXA&data=02%7C01%7CMarcel.Werner%40prosiebensat1.com%7Cfe18ce3a30824470f3d508d757021e62%7C3825a6f324cb47d48aa235d3e5891324%7C1%7C0%7C637073538915324134&sdata=Mqj%2F%2FlwS9gP5lQl9fLwb3eQS8KIoY6duUGXZtHMrG%2FE%3D&reserved=0.

gurubert commented 4 years ago

df_translation needs to be imported in 1.6:

from cmk.gui.plugins.metrics.check_mk import df_translation