Merge pull request #3052 from Icinga/fix/cli-monitoring-update-help

Fix help for icingacli monitoring list (--unhandled is --problems, etc.)
This commit is contained in:
lippserd 2017-11-06 09:49:52 +01:00 committed by GitHub
commit 28bd928678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 3 deletions

View File

@ -129,17 +129,26 @@ class ListCommand extends Command
* *
* --format=<csv|json|<custom>> * --format=<csv|json|<custom>>
* Dump columns in the given format. <custom> format allows $column$ * Dump columns in the given format. <custom> format allows $column$
* placeholders, e.g. --format='$host$: $service$' * placeholders, e.g. --format='$host$: $service$'. This requires
* that the columns are specified within the --columns parameter.
* *
* --<column>[=filter] * --<column>[=filter]
* Filter given column by optional filter. Boolean (1/0) columns are * Filter given column by optional filter. Boolean (1/0) columns are
* true if no filter value is given. * true if no filter value is given.
* *
* --problems
* Only show unhandled problems (HARD state and not acknowledged/in downtime).
*
* --columns='<comma separated list of host/service columns>'
* Add a limited set of columns to the output. The following host/service
* attributes can be fetched: state, handled, output, acknowledged, in_downtime, perfdata last_state_change
*
* EXAMPLES * EXAMPLES
* *
* icingacli monitoring list --unhandled * icingacli monitoring list --problems
* icingacli monitoring list --problems --service_state_type 0
* icingacli monitoring list --host=local* --service=*disk* * icingacli monitoring list --host=local* --service=*disk*
* icingacli monitoring list --format='$host$: $service$' * icingacli monitoring list --columns 'host,service,service_output' --format='$host$: $service$ ($service_output$)'
*/ */
public function statusAction() public function statusAction()
{ {