Skip to content

Commit

Permalink
Merge pull request #38 from oxzi/icinga2-harmonize-cfg
Browse files Browse the repository at this point in the history
contrib/icinga2: harmonize Icinga 2 config w/ ITL
  • Loading branch information
Josef-Friedrich committed May 8, 2024
2 parents 4548c7b + 8d21d01 commit 8338e94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
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

0 comments on commit 8338e94

Please sign in to comment.