mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Update documentation
This commit is contained in:
parent
6490d03b1f
commit
477f7a713c
@ -160,6 +160,8 @@ is that whenever Icinga needs the value for such a custom attribute it runs
|
|||||||
the function and uses whatever value the function returns:
|
the function and uses whatever value the function returns:
|
||||||
|
|
||||||
object CheckCommand "random-value" {
|
object CheckCommand "random-value" {
|
||||||
|
import "plugin-check-command"
|
||||||
|
|
||||||
command = [ PluginDir + "/check_dummy", "0", "$text$" ]
|
command = [ PluginDir + "/check_dummy", "0", "$text$" ]
|
||||||
|
|
||||||
vars.text = {{ Math.random() * 100 }}
|
vars.text = {{ Math.random() * 100 }}
|
||||||
@ -201,6 +203,8 @@ are used in command definitions to figure out which IP address a check should be
|
|||||||
run against:
|
run against:
|
||||||
|
|
||||||
object CheckCommand "my-ping" {
|
object CheckCommand "my-ping" {
|
||||||
|
import "plugin-check-command"
|
||||||
|
|
||||||
command = [ PluginDir + "/check_ping", "-H", "$ping_address$" ]
|
command = [ PluginDir + "/check_ping", "-H", "$ping_address$" ]
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user