Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 05660b21 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 03056f7a
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/unbound-1.2.5-20240523.mkp "unbound-1.2.5-20240523.mkp" [PACKAGE]: ../../raw/master/mkp/unbound-1.2.6-20240527.mkp "unbound-1.2.6-20240527.mkp"
# unbound # unbound
This agent plugin cheks the state of the unbound dns daemon. For more information about unbound see: https://nlnetlabs.nl/projects/unbound/about/ This agent plugin cheks the state of the unbound dns daemon. For more information about unbound see: https://nlnetlabs.nl/projects/unbound/about/
......
File added
...@@ -25,59 +25,53 @@ ...@@ -25,59 +25,53 @@
# renamed to unbound.py (from unbound_parameters.py) # renamed to unbound.py (from unbound_parameters.py)
# moved to ~/local/lib/check_mk/gui/plugins/wato/check_parameters (from local/share/check_mk/web/plugins/wato) # moved to ~/local/lib/check_mk/gui/plugins/wato/check_parameters (from local/share/check_mk/web/plugins/wato)
# 2024-05-14: separated WATO for bakery and check in two files # 2024-05-14: separated WATO for bakery and check in two files
# 2024-05-27: fixed crash in CRE version (has no cee elements)
from cmk.gui.i18n import _ try:
from cmk.gui.plugins.wato.utils import ( from cmk.gui.cee.plugins.wato.agent_bakery.rulespecs.utils import RulespecGroupMonitoringAgentsAgentPlugins
HostRulespec, except ModuleNotFoundError:
rulespec_registry, pass
) else:
from cmk.gui.cee.plugins.wato.agent_bakery.rulespecs.utils import ( from cmk.gui.i18n import _
RulespecGroupMonitoringAgentsAgentPlugins, from cmk.gui.plugins.wato.utils import HostRulespec, rulespec_registry
) from cmk.gui.valuespec import Alternative, Dictionary, FixedValue, TextInput
from cmk.gui.valuespec import (
Alternative,
Dictionary,
FixedValue,
TextInput,
)
def _parameter_valuespec_unbound_bakery():
def _parameter_valuespec_unbound_bakery(): return Alternative(
return Alternative( title='Unbound',
title='Unbound', elements=[
elements=[ Dictionary(
Dictionary( title='Deploy the unbound agent plugin',
title='Deploy the unbound agent plugin', required_keys=['deploy_plugin'],
required_keys=['deploy_plugin'], elements=[
elements=[ ('config_file_path',
('config_file_path', TextInput(
TextInput( title=_('Path of config file'),
title=_('Path of config file'), size=100,
size=100, allow_empty=False,
allow_empty=False, placeholder='/etc/unbound/unbound.conf',
placeholder='/etc/unbound/unbound.conf', )),
)), ('deploy_plugin',
('deploy_plugin', FixedValue(
FixedValue( True,
True, title=_('Deploy unbound plugin'),
title=_('Deploy unbound plugin'), totext='Yes',
totext='Yes', ))
)) ]),
]), FixedValue(
FixedValue( None,
None, title=_('Do not deploy the unbound agent plugin'),
title=_('Do not deploy the unbound agent plugin'), totext=_('The unbound agent plugin will not be deployed')
totext=_('The unbound agent plugin will not be deployed') ),
), ]
] )
)
rulespec_registry.register( rulespec_registry.register(
HostRulespec( HostRulespec(
group=RulespecGroupMonitoringAgentsAgentPlugins, group=RulespecGroupMonitoringAgentsAgentPlugins,
name='agent_config:unbound', name='agent_config:unbound',
valuespec=_parameter_valuespec_unbound_bakery, valuespec=_parameter_valuespec_unbound_bakery,
)
) )
)
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
'lib': ['python3/cmk/base/cee/plugins/bakery/unbound.py']}, 'lib': ['python3/cmk/base/cee/plugins/bakery/unbound.py']},
'name': 'unbound', 'name': 'unbound',
'title': 'Unbound', 'title': 'Unbound',
'version': '1.2.5-20240523', 'version': '1.2.6-20240527',
'version.min_required': '2.2.0b1', 'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p24', 'version.packaged': '2.2.0p24',
'version.usable_until': None} 'version.usable_until': None}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment