Icinga2 Plugins: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „=Example= =Script= =Definition= cat<<HERE >> /usr/share/icinga2/include/command-plugins.conf <pre> object CheckCommand "processes" { import "plugin-c…“) |
|||
| Zeile 7: | Zeile 7: | ||
=Definition= | =Definition= | ||
| − | |||
cat<<HERE >> /usr/share/icinga2/include/command-plugins.conf | cat<<HERE >> /usr/share/icinga2/include/command-plugins.conf | ||
| + | *cat<<HERE >> /tmp/test | ||
<pre> | <pre> | ||
object CheckCommand "processes" { | object CheckCommand "processes" { | ||
Version vom 20. November 2018, 17:49 Uhr
Example
Script
Definition
cat<<HERE >> /usr/share/icinga2/include/command-plugins.conf
- cat<<HERE >> /tmp/test
object CheckCommand "processes" {
import "plugin-check-command"
command = [ PluginDir + "/check_processes" ]
timeout = 1m
arguments += {
"-p" = {
description = "Programnames"
required = true
value = "$processes_names$"
}
}
}
HERE