From 54c44a70541ff95e9513da68557706c8d735eaca Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Mon, 13 May 2019 18:12:02 +0200 Subject: [PATCH] fix help openweathermap (#1507) --- .../restapi/mode/cityweather.pm | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/apps/openweathermap/restapi/mode/cityweather.pm b/apps/openweathermap/restapi/mode/cityweather.pm index e4f0e0b7c..b43a40082 100644 --- a/apps/openweathermap/restapi/mode/cityweather.pm +++ b/apps/openweathermap/restapi/mode/cityweather.pm @@ -157,28 +157,37 @@ Check city weather =item B<--city-name> -Filter node name (regexp can be used) +City name (e.g London or ISO 3166 code like London,uk) =item B<--warning-weather> -Set warning threshold on node compliance. +Set warning threshold for weather string desc (Default: ''). +Can used special variables like: %{weather} =item B<--critical-weather> -Set critical threshold on node compliance. - -=item B<--warning-status> - -Set warning threshold for status of rule compliance (Default: ''). -Can used special variables like: %{rule}, %{compliance} - -=item B<--critical-status> - -Set critical threshold for status of rule compliance (Default: ''). -Can used special variables like: %{rule}, %{compliance} - +Set critical threshold for weather string desc (Default: ''). +Can used special variables like: %{weather} Example : - --critical-status='%{rule} eq "Global configuration for all nodes" && %{compliance} < 95' + --critical-weather='%{weather} eq "Clouds' + +=item B<--warning-*> + +Set warning threshold for each metric gathered +Can be : + - temperature (Celsius) + - humidity (%) + - clouds (% coverage) + - wind (speed m/s) + +=item B<--critical-*> + +Set warning threshold for each metric gathered +Can be : + - temperature (Celsius) + - humidity (%) + - clouds (% coverage) + - wind (speed m/s) =back