From: Michael Friedrich Date: Sat, 25 Apr 2015 11:42:04 +0000 (+0200) Subject: Move 'runing_kernel' check command to plugins-contrib 'operating system' section X-Git-Tag: v2.4.0~689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74d75c5d2a8236bb58b5c13600845db5f1b8e674;p=icinga2 Move 'runing_kernel' check command to plugins-contrib 'operating system' section fixes #9175 --- diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 6b0ea3d4b..e8c6e50f3 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -614,14 +614,6 @@ procs_command | **Optional.** Only scan for exact matches of COMMAND (wit procs_nokthreads | **Optional.** Only scan for non kernel threads. Defaults to false. -## running_kernel - -Check command object for the `check_running_kernel` plugin -provided by the `nagios-plugins-contrib` package on Debian. - -The `running_kernel` check command does not support any vars. - - ## simap Check command object for the `check_simap` plugin. @@ -1547,6 +1539,14 @@ mem_cache | **Optional.** If set to true plugin will count cache as free memo mem_warning | **Required.** Specifiy the warning threshold as number interpreted as percent. mem_critical | **Required.** Specifiy the critical threshold as number interpreted as percent. +## running_kernel + +Check command object for the `check_running_kernel` plugin +provided by the `nagios-plugins-contrib` package on Debian. + +The `running_kernel` check command does not support any vars. + + ## Virtualization This category includes all plugins for various virtualization technologies. diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index b91269fd8..2842f0831 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -1313,11 +1313,3 @@ object CheckCommand "ldap" { vars.ldap_timeout = 10s vars.ldap_verbose = false } - -/* Contrib plugins */ -object CheckCommand "running_kernel" { - import "plugin-check-command" - - command = [ "sudo", PluginDir + "/check_running_kernel" ] -} - diff --git a/itl/plugins-contrib.d/operating-system.conf b/itl/plugins-contrib.d/operating-system.conf index b51dcef24..8de00be53 100644 --- a/itl/plugins-contrib.d/operating-system.conf +++ b/itl/plugins-contrib.d/operating-system.conf @@ -50,3 +50,9 @@ object CheckCommand "mem" { vars.mem_cache = false } +object CheckCommand "running_kernel" { + import "plugin-check-command" + + command = [ "sudo", PluginDir + "/check_running_kernel" ] +} +