File monitoring-plugins-json-icinga2_check_command.cfg of Package monitoring-plugins-json
/*
* JSON Check Command
*/
object CheckCommand "check-json" {
import "plugin-check-command"
command = [ PluginDir + "/check_json" ]
arguments = {
"-u" = {
required = true
value = "$json_url$"
}
"-a" = {
required = true
value = "$json_attributes$"
}
"-d" = "$json_divisor$"
"-w" = "$json_warning$"
"-c" = "$json_critical$"
"-e" = "$json_expect$"
"-p" = "$json_perfvars$"
"-o" = "$json_outvars$"
"-m" = "$json_metadata$"
"--ignoressl" = {
set_if = "$json_ignoressl$"
description = "Ignore bad SSL certificates"
}
"-x" = {
value = "$json_xauth_token$"
description = "Add an X-Auth-Token header with the specified token"
}
"-b" = {
value = "$json_bearer_token$"
description = "Add an Authorization: Bearer header with the specified token"
}
}
}