From: Jean Flach Date: Thu, 28 Mar 2019 12:33:52 +0000 (+0100) Subject: Document check_command may be a string X-Git-Tag: v2.11.0-rc1~176^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c612cf9c04471728c4776a8c195adfc1951fe634;p=icinga2 Document check_command may be a string --- diff --git a/doc/12-icinga2-api.md b/doc/12-icinga2-api.md index 2375ce8b2..bfeca45fb 100644 --- a/doc/12-icinga2-api.md +++ b/doc/12-icinga2-api.md @@ -931,7 +931,7 @@ Send a `POST` request to the URL endpoint `/v1/actions/process-check-result`. exit\_status | Number | **Required.** For services: 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN, for hosts: 0=OK, 1=CRITICAL. plugin\_output | String | **Required.** One or more lines of the plugin main output. Does **not** contain the performance data. performance\_data | Array|String | **Optional.** The performance data as array of strings. The raw performance data string can be used too. - check\_command | Array | **Optional.** The first entry should be the check commands path, then one entry for each command line option followed by an entry for each of its argument. + check\_command | Array|String | **Optional.** The first entry should be the check commands path, then one entry for each command line option followed by an entry for each of its argument. Alternativly a single string can be used. check\_source | String | **Optional.** Usually the name of the `command_endpoint` execution\_start | Timestamp | **Optional.** The timestamp where a script/process started its execution. execution\_end | Timestamp | **Optional.** The timestamp where a script/process ended its execution. This timestamp is used in features to determine e.g. the metric timestamp.