Icinga2 Plugins: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 7: | Zeile 7: | ||
=Definition= | =Definition= | ||
| + | <pre> | ||
cat<<HERE >> /usr/share/icinga2/include/command-plugins.conf | cat<<HERE >> /usr/share/icinga2/include/command-plugins.conf | ||
| − | |||
| − | |||
object CheckCommand "processes" { | object CheckCommand "processes" { | ||
import "plugin-check-command" | import "plugin-check-command" | ||
| Zeile 22: | Zeile 21: | ||
} | } | ||
} | } | ||
| + | HERE | ||
</pre> | </pre> | ||
| − | |||
Version vom 20. November 2018, 17:50 Uhr
Example
Script
Definition
cat<<HERE >> /usr/share/icinga2/include/command-plugins.conf
object CheckCommand "processes" {
import "plugin-check-command"
command = [ PluginDir + "/check_processes" ]
timeout = 1m
arguments += {
"-p" = {
description = "Programnames"
required = true
value = "$processes_names$"
}
}
}
HERE