diff --git a/modules/monitoring/application/clicommands/ListCommand.php b/modules/monitoring/application/clicommands/ListCommand.php index b06fd915a..491c12894 100644 --- a/modules/monitoring/application/clicommands/ListCommand.php +++ b/modules/monitoring/application/clicommands/ListCommand.php @@ -129,17 +129,26 @@ class ListCommand extends Command * * --format=> * Dump columns in the given format. 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. * * --[=filter] * Filter given column by optional filter. Boolean (1/0) columns are * true if no filter value is given. * + * --problems + * Only show unhandled problems (HARD state and not acknowledged/in downtime). + * + * --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 * - * 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 --format='$host$: $service$' + * icingacli monitoring list --columns 'host,service,service_output' --format='$host$: $service$ ($service_output$)' */ public function statusAction() {