Hi,
First of all, I want to thank you both for the response.
@Erik, please We are knew with the Check_mk 2.0 release. I know how to create wato deploy rules in 1.6, please, I’m going to paste an example here and I kindly ask you to tell me if it is still valid in check_mk 2.0
- Pacage code in ./local/share/check_mk/agents/bakery/
def bake_veeam_o365(opsys, conf, conf_dir, plugins_dir):
shutil.copy2(cmk.utils.paths.local_agents_dir + “/windows/plugins/veeam_o365_status.ps1”,
plugins_dir + “/veeam_o365_status.ps1”)
bakery_info['veeam_o365'] = { 'bake_function': bake_veeam_o365, 'os': ['windows'], }
- WATO rule code in ./local/share/check_mk/web/plugins/wato/
`from cmk.gui.i18n import _
from cmk.gui.valuespec import (
DropdownChoice,
)
from cmk.gui.plugins.wato import (
HostRulespec,
rulespec_registry,
)
try:
from cmk.gui.cee.plugins.wato.agent_bakery import (
RulespecGroupMonitoringAgentsWindowsAgent
)
except Exception:
RulespecGroupMonitoringAgentsWindowsAgent = None
def valuespec_agent_config_veeam_o365():
return DropdownChoice(
title=(‘Veeam for Office 365’),
help=_('This will deploy the agent plugin veeam_o365_status ’
‘for checking Veeam for Office 365 status.’),
choices=[
(True, _(‘Deploy Veeam for Office 365 plugin’)),
(None, _(‘Do not deploy Veeam for Office 365 plugin’)),
],
)
if RulespecGroupMonitoringAgentsWindowsAgent is not None:
rulespec_registry.register(
HostRulespec(
group=RulespecGroupMonitoringAgentsWindowsAgent,
name=‘agent_config:veeam_o365’,
valuespec=_valuespec_agent_config_veeam_o365,
))`
Thank you so much