Created
March 22, 2022 13:09
-
-
Save VerosK/2f3c1504cf261a58576f8fc01fa3a1da to your computer and use it in GitHub Desktop.
Icinga check_updates.con
This file contains hidden or 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
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