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

Plugin not compatible with check_mk 2.3 - factory_settings not defined #2

Open
randomcop opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@randomcop
Copy link

randomcop commented Sep 11, 2024

Hi.

The plugin check_mk_zvolsize does not run on CMK Version 2.3 raw
Very sad, as it is very useful for monitoring zvol storage based bhyve-VMs on FreeBSD.

My Check_MK Version: check-mk-raw-2.3.0p14
/omd/sites/mysite/bin/python3.12
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble

OMD[mysite]:~$ mkp list

zvolsize               1.1     ZVol Sizes                         Jens Giessmann [email protected]                                             1.2.6p12     None          4     Enabled (active on this site)

OMD[mysite]:~$ cmk -D lemmy
Ignoring outdated plugin file /omd/sites/mysite/local/share/check_mk/checks/zvolsize: name 'factory_settings' is not defined -- this API is deprecated!

I looked into /omd/sites/mysite/local/share/check_mk/checks/zvolsize,
factory_settings seems to be defined?

# default values for warn_used, crit_used, warn_snap, crit_snap
# zvolsize_default_values = (1.5,2,0.5,1.0)
factory_settings["zvolsize_default_values"] = {
   "levels" : (1.5,2,0.5,1.0)
}

https://docs.checkmk.com/latest/en/dev_guidelines.html

3. Constructing a check plug-in
3.1. General structure
"Default values for the check parameters (factory_settings)."

4.6. Default thresholds
"The default thresholds should be defined in factory_settings (if the check has a dictionary as a parameter)."

Any ideas why it does not work?

Regards,
Kai.
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

1 participant