Skip to content

Instantly share code, notes, and snippets.

@VerosK
Created March 22, 2022 13:09
Show Gist options
  • Save VerosK/2f3c1504cf261a58576f8fc01fa3a1da to your computer and use it in GitHub Desktop.
Save VerosK/2f3c1504cf261a58576f8fc01fa3a1da to your computer and use it in GitHub Desktop.
Icinga check_updates.con
object CheckCommand "yum_updates" {
command = [ PluginDir + "/check_updates" ]
vars.updates_warning = 10
vars.updates_critical = 30
vars.updates_timeout = 45
arguments = {
"--no-boot-check" = {
set_if = "$updates_no_boot_check$"
}
"--boot-check-warning" = {
set_if = "$updates_boot_check_warning$"
}
"-w" = {
value = "$updates_warning$"
description = "WARNING status if more than XXX non-security updates are available"
}
"-c" = {
value = "$updates_critical$"
description = "CRITICAL status if more than XXX non-security updates are available"
}
"--timeout" = {
value = "$updates_timeout$"
description = "Timeout in XX seconds"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment