forked from freddy36/check_mk_extensions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds updates for checkmk 2.0 (freddy36#12)
* renames Bakery ruleset file * adds ignored_keys for cmk-update-config * renames checkman files * fixes wrong section * adds check for CRE in bakery plugin Thank you @gurubert
- Loading branch information
Showing
12 changed files
with
61 additions
and
53 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
bird/lib/check_mk/gui/cee/plugins/wato/agent_bakery/bird.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env python3 | ||
# -*- encoding: utf-8; py-indent-offset: 4 -*- | ||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 | ||
|
||
# This file is part of the check_mk bird check. | ||
# | ||
# The check_mk bird check is free software: you can redistribute it | ||
# and/or modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation, either version 3 of | ||
# the License, or (at your option) any later version. | ||
# | ||
# The check_mk bird check is distributed in the hope that it will | ||
# be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
# See the GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with it. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
# Copyright 2014 by Frederik Kriewitz <[email protected]>. | ||
|
||
try: | ||
from cmk.gui.i18n import _ | ||
from cmk.gui.plugins.wato import ( | ||
HostRulespec, | ||
rulespec_registry, | ||
) | ||
from cmk.gui.cee.plugins.wato.agent_bakery.rulespecs.utils import RulespecGroupMonitoringAgentsAgentPlugins | ||
from cmk.gui.valuespec import ( | ||
DropdownChoice, | ||
) | ||
|
||
def _valuespec_agent_config_bird(): | ||
return DropdownChoice( | ||
title = _("BIRD Internet Routing Daemon (Linux)"), | ||
help = _("This will deploy the agent plugin <tt>bird</tt> for checking the BIRD Internet Routing Daemon."), | ||
choices = [ | ||
( True, _("Deploy plugin for BIRD") ), | ||
( None, _("Do not deploy plugin for BIRD") ), | ||
] | ||
) | ||
|
||
rulespec_registry.register( | ||
HostRulespec( | ||
group=RulespecGroupMonitoringAgentsAgentPlugins, | ||
name="agent_config:bird", | ||
valuespec=_valuespec_agent_config_bird, | ||
)) | ||
|
||
except ModuleNotFoundError: | ||
# RAW edition | ||
pass |