ITL: Add missing check_apt arguments

refs #10504

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
Jo Goossens 2015-11-06 15:24:42 +01:00 committed by Michael Friedrich
parent d370275689
commit 8a677277a5
2 changed files with 44 additions and 2 deletions

View File

@ -95,9 +95,19 @@ which contains the path of the plugins from the Monitoring Plugins project.
### <a id="plugin-check-command-apt"></a> apt
Check command for the `check_apt` plugin.
The plugin `apt` is used to check the aptitude package management system for updates on Debian based systems.
The `apt` check command does not support any vars.
Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters):
Name | Description
------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
apt_extra_opts | **Optional.** Read options from an ini file.
apt_upgrade | **Optional.** [Default] Perform an upgrade. If an optional OPTS argument is provided, apt-get will be run with these command line options instead of the default.
apt_dist_upgrade | **Optional.** Perform a dist-upgrade instead of normal upgrade. Like with -U OPTS can be provided to override the default options.
apt_include | **Optional.** Include only packages matching REGEXP. Can be specified multiple times the values will be combined together.
apt_exclude | **Optional.** Exclude packages matching REGEXP from the list of packages that would otherwise be included. Can be specified multiple times.
apt_critical | **Optional.** If the full package information of any of the upgradable packages match this REGEXP, the plugin will return CRITICAL status. Can be specified multiple times.
apt_timeout | **Optional.** Seconds before plugin times out (default: 10).
### <a id="plugin-check-command-by-ssh"></a> by_ssh

View File

@ -1181,6 +1181,38 @@ object CheckCommand "apt" {
import "plugin-check-command"
command = [ PluginDir + "/check_apt" ]
arguments = {
"--extra-opts" = {
value = "$apt_extra_opts$"
description = "Read options from an ini file."
}
"--upgrade" = {
value = "$apt_upgrade$"
description = "[Default] Perform an upgrade. If an optional OPTS argument is provided, apt-get will be run with these command line options instead of the default."
}
"--dist-upgrade" = {
value = "$apt_dist_upgrade$"
description = "Perform a dist-upgrade instead of normal upgrade. Like with -U OPTS can be provided to override the default options."
}
"--include" = {
value = "$apt_include$"
description = "Include only packages matching REGEXP. Can be specified multiple times the values will be combined together."
}
"--exclude" = {
value = "$apt_exclude$"
description = "Exclude packages matching REGEXP from the list of packages that would otherwise be included. Can be specified multiple times."
}
"--critical" = {
value = "$apt_critical$"
description = "If the full package information of any of the upgradable packages match this REGEXP, the plugin will return CRITICAL status. Can be specified multiple times."
}
"--timeout" = {
value = "$apt_timeout$"
description = "Seconds before plugin times out (default: 10)."
}
}
}
object CheckCommand "dhcp" {