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

contrib/icinga2: harmonize Icinga 2 config w/ ITL #38

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<small>[Compare with latest](https://github.com/Josef-Friedrich/check_systemd/compare/v4.1.0...HEAD)</small>

### Changed

- Updated `contrib/icinga2/command.conf` to support latest commands and harmonize with Icinga 2 ITL upstream.
The two variables `systemd_dead_timer_warning` and `systemd_dead_timer_critical` were renamed to `systemd_dead_timers_warning` and `systemd_dead_timers_critical`, respectively.

## [v4.1.0] - 2024-03-01

<small>[Compare with v0.4.0](https://github.com/Josef-Friedrich/check_systemd/compare/v4.0.0...v4.1.0)</small>
Expand Down
14 changes: 6 additions & 8 deletions contrib/icinga2/command.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ object CheckCommand "systemd_jf" {
arguments = {
/* General options */
"-v" = {
set_if = "$systemd_verbose1$"
description = "Increase verbosity"
set_if = {{ macro("$systemd_verbose_level$") == 1 }}
description = "Increase verbosity level (Accepted values: `1`, `2` or `3`). Defaults to none."
}
"-vv" = {
set_if = "$systemd_verbose2$"
description = "Increase verbosity more"
set_if = {{ macro("$systemd_verbose_level$") == 2 }}
}
"-vvv" = {
set_if = "$systemd_verbose3$"
description = "Increase verbosity even more"
set_if = {{ macro("$systemd_verbose_level$") == 3 }}
}

/* Options related to unit selection */
Expand Down Expand Up @@ -82,12 +80,12 @@ specified with the options '-W, --dead-timer-warning'
and '-C, --dead-timers-critical'.}}}
}
"--timers-warning" = {
value = "$systemd_dead_timer_warning$"
value = "$systemd_dead_timers_warning$"
description = {{{Time ago in seconds for dead / inactive timers to
trigger a warning state (by default 6 days).}}}
}
"--timers-critical" = {
value = "$systemd_dead_timer_critical$"
value = "$systemd_dead_timers_critical$"
description = {{{Time ago in seconds for dead / inactive timers to
trigger a critical state (by default 7 days).}}}
}
Expand Down