Skip to content

Commit

Permalink
Simplified RRD helper commandline
Browse files Browse the repository at this point in the history
* "Requiring an option" is an oxymoron. :-D
* Passing an RRD spec for manual RRD creation was removed in 1.6.

Change-Id: I7237f3484dd94ee3b8de1ff0ae035ea73e3f0a6f
  • Loading branch information
spt29 committed Jan 16, 2025
1 parent 2eb0afb commit 07b4d4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 0 additions & 5 deletions cmk/base/modes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,6 @@ def get_sub_options(self, all_opts: Options) -> dict[OptionName, Argument | int
return options


keepalive_option = Option(
long_option="keepalive",
short_help="Execute in keepalive mode (CEE only)",
)

#
# Initialize the modes object and load all available modes
#
Expand Down
7 changes: 5 additions & 2 deletions cmk/base/modes/check_mk.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
)
from cmk.base.core_factory import create_core, get_licensing_handler_type
from cmk.base.errorhandling import CheckResultErrorHandler, create_section_crash_dump
from cmk.base.modes import keepalive_option, Mode, modes, Option
from cmk.base.modes import Mode, modes, Option
from cmk.base.sources import make_parser, SNMPFetcherConfig
from cmk.base.utils import register_sigint_handler

Expand Down Expand Up @@ -1800,7 +1800,10 @@ def ensure_nagios(msg: str) -> None:
long_option="log-to-stdout",
short_help="Also write log messages to console",
),
keepalive_option,
Option(
long_option="keepalive",
short_help="Execute in keepalive mode (CEE only)",
),
],
)
)
Expand Down

0 comments on commit 07b4d4a

Please sign in to comment.