| Scroll Ignore | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
|
Présentation
Pour une raison de simplicité de gestion, les dispositions par défaut et le reste de la configuration du module sont découpées en plusieurs parties qui se trouvent par défaut dans les fichiers suivants :
- Pour la configuration générale du module :
- /etc/shinken/modules/webui_module_service_weather.cfg
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather.cfg
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather.cfg
- /etc/shinken/modules/webui_module_service_weather.cfg
- Pour la configuration de la disposition par défaut de la grille :
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_grid_layout.cfg
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_grid_layout.cfg
( voir Configuration de la disposition par défaut de la grille - webui-module-service-weathera page Configuration de la disposition par défaut de la grille - webui-module-service-weather )
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_grid_layout.cfg
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_grid_layout.cfg
- Pour la configuration de la disposition par défaut de la barre d'information :
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_info_bar_layout.cfg
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_info_bar_layout.cfg
( voir la page Configuration de la disposition par défaut de la barre d'information - webui-module-service-weather )
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_info_bar_layout.cfg
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_info_bar_layout.cfg
- Pour la configuration de la disposition par défaut des widgets :
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg
( voir la page Configuration de la disposition par défaut des widgets - webui-module-service-weather )
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg
- Pour la configuration par défaut des notifications :
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_notifications_settings.cfg
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_notifications_settings.cfg
( voir la page Configuration des paramètres par défaut des notifications de changements - webui-module-service-weather )
- Fichier d'exemple : /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_notifications_settings.cfg
- /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_notifications_settings.cfg
| Info |
|---|
Si vous faites S'il y a plusieurs modules de météo, vous devez il faut choisir soit de :
|
Configuration du module
Exemple de fichier de configuration
| Code Block | ||||
|---|---|---|---|---|
| ||||
# CFG_FORMAT_VERSION 1 ( SHINKEN : DON'T TOUCH THIS LINE )
#================================================================================
# webui-module-service-weather
#================================================================================
# Modules that can load this module:
# - WebUI
# This module display service-weather in WebUI
#================================================================================
define module {
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ────────────────────────────────────────────────────────── MODULE IDENTITY ────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── Module name [ Must be unique ] [ MANDATORY ] ───
# ─── ───
module_name webui-module-service-weather-example
# ─── Module type [ Do not edit ] [ MANDATORY ] ───
# ─── ───
module_type webui_module_service_weather
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── EXTERNALDATABASE LINKS OPTIONS ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── ThisWhich optiondatabase allowscontains youservice toweather changedata the path for external links. ───
# ─── Use───
it for security reasons,# to have external url with a different path than the ───
# ─── default installation ───
# Default : webui ───
# ─── /!\ Change this parameter will change all your external links. ───
# ─── sample url : http://localhost:7767/service-weather/external/abcd01/xyz009 ───
# ─── where : ───
# broker__module_webui__module_service_weather__database webui
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ────────────────────────────────────────────────────── EXTERNAL LINKS OPTIONS ─────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── This option allows you to change the path for external links. ───
# ─── "http://" is the value of the link protocol ───
# ─── Use it for security reasons, to have external url with a different path than the ───
# ─── "localhost:7767" is the value of the base url ───
# ─── default installation ───
# ─── "external" is the value of this parameter ───
# ─── /!\ Change this parameter will change all your external links. ───
# ─── "abcd01" is the service weather uuid ───
# ─── sample url : http://localhost:7767/service-weather/external/abcd01/xyz009 ───
# ─── where ───
: # ─── "xyz009" is the external link configuration uuid ───
# ─── The following characters are prohibited : ",',/ and space. ───
# ─── "http://" is the value of the link protocol ───
# ───
# ─── "localhost:7767" is the value of the base url ───
# ─── "external" is the value of Defaultthis :parameter external ───
# ─── "abcd01" is the service weather uuid ───
# ─── ───
# ─── "xyz009" is the external link configuration uuid ───
# broker__module_webui__module_service_weather__default_external_link__external_part_url external
# ─── This option allows you to change the path for external links. ───
# ─── The following characters are prohibited : ",',/ and space. ───
# ─── Use it for security reasons, to have external url with a different path than the ───
# ───
# ─── default installation ───
# ───
Default #: ───external /!\ Change this parameter will change all your external links. ───
# ─── sample url : http://localhost:7767/service-weather/external/abcd01/xyz009 ───
# ─── ───
# ─── where : ───
# broker__module_webui__module_service_weather__default_external_link__external_part_url external
# ─── This option allows you to change the path for external links. ───
# ─── "http://" is the value of the link protocol ───
# ─── Use it for security reasons, to have external url with a different path than the ───
# ─── "localhost:7767" is the value of this parameter ───
# ─── default installation ───
# ─── "external" is the value of the external_part_url ───
# ─── /!\ Change this parameter will change all your external links. ───
# ─── "abcd01" is the service weather uuid ───
# ─── sample url : http://localhost:7767/service-weather/external/abcd01/xyz009 ───
# ─── where : "xyz009" is the external link configuration uuid ───
# ─── The following characters are prohibited : ",', and space. ───
# ─── "http://" is the value of the link protocol ───
# ───
# ─── "localhost:7767" is the value of this parameter ───
# ─── "external" is the value Default : Your broker base urlof the external_part_url ───
# ─── "abcd01" is the service weather uuid ───
# ─── ───
# ─── "xyz009" is the external link configuration uuid ───
# broker__module_webui__module_service_weather__default_external_link__base_url
# ─── This option allows you to change the link protocol for your external links ───
# ─── The following characters are prohibited : ",', and space. ───
# ─── This can be useful if you want your links to be on a reverse proxy that doesn't use same protocol as the WebUI ───
# ─── default installation ───
# ─── Change this parameter will change all your external links. ───
# Default : Your broker base url ───
# ───
# ─── ───
# Default : protocol_from_webui => It will be equal to the use_ssl of the WebUI. ───
# broker__module_webui__module_service_weather__default_external_link__base_url
# ─── This option allows you to change the link protocol for your external links ───
# If use_ssl is True, it will───
be HTTPS, else it# will─── be HTTP This can be useful if you want your links to be on a reverse proxy that doesn't use same protocol as the WebUI ───
# ───
# ─── ... :default httpinstallation ───
# ───
# Change this parameter will change all your external .links.. : https ───
# ───
# ─── ───
# Default : protocol_from_webui => It will be equal to the use_ssl of the WebUI. ───
# broker__module_webui__module_service_weather__default_external_link__link_protocol protocol_from_webui
# ─── This option allows you to change if the authentication is needed for an external link. ───
# ───
# If use_ssl is True, it will be HTTPS, else it will be HTTP ───
# ... : http ───
# Default : 1 ( authentication is needed ) ───
# ... : https ───
# ... : 0 ( authentication is not needed ) ───
# ─── ───
# ─── ───
# broker__module_webui__module_service_weather__default_external_link__authenticationlink_needed 1protocol protocol_from_webui
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐─── #
This option allows you #to │change ──────────────────────────────────────────────────if the authentication is INTERFACEneeded VIEWSfor HISTORYan OPTIONSexternal link. ────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ──────────────── All Views Parameters ─────────────────────────────────────────────────────────────────────────────────────────────────────── #
# ─── This option allows you to set the maximum number of changes saved in database for each weather view. ───
# ───
# ─── /!\ If you decrease the value, the extra history will be deleted on daemon startup. ───
# ─── /!\ Minimum value is 10. ───
# Default : 1 ( authentication is needed ) ───
# Default : use_default_for_all => It will be equal to the 'views_history__nb_changes_kept__default_for_all' of the WebUI ───
# ... : 0 A( positiveauthentication numberis (fornot exampleneeded 100) ───
# ─── ───
# broker__module_webui__module_service_weather__viewsdefault_historyexternal_link_nb_changes_kept__service_weather use_default_for_allauthentication_needed 1
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ───────────────────────────────────────────────────────────────────────────────────────────────────── INTERFACE VIEWS TRASHHISTORY OPTIONS ───────────────────────────────────────────────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ──────────────── All Views Parameters ─────────────────────────────────────────────────────────────────────────────────────────────────────── #
# ─── This option allows you to set the maximum number of dayschanges thatsaved viewsin aredatabase keptfor ineach theweather trashview. ───
# ─── /!\ AfterIf thisyou delay,decrease the viewsvalue, arethe permanentlyextra DELETED.history will be deleted on daemon startup. ───
# ─── /!\ Minimum value ───
# ─── /!\ If you decrease the value, the too old views can be DELETED on daemon startupis 10. ───
# ─── /!\ Minimum value is 30 days. ───
# Default : use_default_for_all => It will be equal to the 'views_trashhistory__delaynb_beforechanges_deletionkept__default_for_all' of the WebUI ───
# ... : A positive number of days (for example 30100) ───
# ───
# broker__module_webui__module_service_weather__views_trashhistory__delaynb_beforechanges_deletionkept__service_weather use_default_for_all
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ─────────────────────────────────────────────────────────────────────────────────────────────────────────── INTERFACE VIEWS PERFORMANCETRASH OPTIONS ─────────────────────────────────────────────────────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─────────────────── Maximal numberAll ofViews widgetsParameters for one─────────────────────────────────────────────────────────────────────────────────────────────────────── weather#
page. # ─── This option allows you to set the maximum number of days that views are kept in the trash. ───
# ─── /!\ After this delay, the views are permanently DELETED. ───
# ─── Use this to limit your users and prevent them from making a weather page that takes ───
# ─── all server resources. /!\ If you decrease the value, the too old views can be DELETED on daemon startup. ───
# ─── /!\ Minimum value is 30 days. ───
# ─── ───
# Default : use_default_for_all => It will be equal to the 'views_trash__delay_before_deletion__default_for_all' of the WebUI ───
# ... : A number of days (for example ───
30) # broker__module_webui__module_service_weather__default_max_widget_number 100
# ─────────────────────── CACHE ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── #
# ─── The refresh interval in seconds between each cache data calculation. ───
# ───
# ─── Increase this period if the cache takes too many resources on server. ───
# ─── Minimum value is 60 seconds. ───
# broker__module_webui__module_service_weather__views_trash__delay_before_deletion__service_weather use_default_for_all
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ──────────────────────────────────────────────────────── PERFORMANCE OPTIONS ──────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── Maximal number of widgets for one weather page. ───
# ───
# ─── Use this to limit your users and prevent them from making a weather page that takes ───
# ─── all server resources. Default : 60 ( seconds ) ───
# ─── ───
# broker__module_webui__module_service_weather__cachedefault_max_refreshwidget_intervalnumber 60100
# ─── Define the limited time allowed to refresh the cache before raising a warning. ─────────────────────── CACHE ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── #
# ─── The refresh interval in seconds between each cache data calculation. ───
# ─── This will───
be used by the shinken-broker-module-weather-service checks to change its state # ─── Increase this period if the cache takes too many resources on server. ───
# ───
# ─── Minimum value is 60 seconds. ───
# Default : 30 ( seconds ) ───
# ─── ───
# Default : 60 ( seconds ) ───
# broker__module_webui__module_service_weather__cache__time_taken_for_compute_warning 30
───
# ─── Define the limited time allowed to refresh the cache before raising an error. ───
# ─── This will be used by the shinken-broker-module-weather-service checks to change its state ───
# broker__module_webui__module_service_weather__cache__refresh_interval 60
# ─── Define the limited time allowed to refresh the cache before raising a warning. ───
# ─── This will be used by the shinken-broker-module-weather-service checks to change its state ───
# Default : 40 ( seconds ) ───
# ─── ───
# Default : 30 ( seconds ) ───
# broker__module_webui__module_service_weather__cache__time_taken_for_compute_critical 40
─── # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ───────────────────────────────────────────────────────── INTERNAL OPTIONS ────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── INTERNAL : DO NOT EDIT FOLLOWING PARAMETERS WITHOUT YOUR DEDICATED SUPPORT ───
# ─── The time to wait before starting to refresh the cache ───
# broker__module_webui__module_service_weather__cache__time_taken_for_compute_warning 30
# ─── Define the limited time allowed to refresh the cache before raising an error. ───
# ─── At start of the Broker, some element data are───
not directly available # ─── This will be used by the shinken-broker-module-weather-service checks to change its state ───
───
# # ─── Increase this time if the module has "missing element" on every element at start ───
# ─── This will give more time to the Scheduler to give all element data to the Broker and the module ───
# Default : 40 ( seconds ) ───
# ─── ───
# Default : 30 ( seconds ) ───
# ─── broker__module_webui__module_service_weather__cache__time_taken_for_compute_critical 40
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ───────────────────────────────────────────────────────── INTERNAL OPTIONS ────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── INTERNAL : DO NOT EDIT FOLLOWING PARAMETERS WITHOUT YOUR DEDICATED SUPPORT ───
# ─── The time to wait before starting to refresh the cache ───
# broker__module_webui__module_service_weather__awaited_time_before_fetching_element_data 30
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ──────────────────────────────────────────────────── EXTENDED FILE CONFIGURATION ──────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_grid_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_info_bar_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_notifications_settings.cfg
}
|
Détails des sections composant le fichier de configuration
Identification du module
───
# ─── At start of the Broker, some element data are not directly available ───
# ─── Increase this time if the module has "missing element" on every element at start ───
# ─── This will give more time to the Scheduler to give all element data to the Broker and the module ───
# ───
# Default : 30 ( seconds ) ───
# ─── ───
# broker__module_webui__module_service_weather__awaited_time_before_fetching_element_data 30
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ──────────────────────────────────────────────────── EXTENDED FILE CONFIGURATION ──────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_grid_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_info_bar_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_notifications_settings.cfg
}
|
Détails des sections composant le fichier de configuration
Identification du module
Il est possible de définir plusieurs instances de module de type "webui-module-service-weather" dans l'architecture Shinken .
Chaque instance devra avoir un nom unique.
Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | --- | webui-module-service-weather | Il est conseillé de choisir un nom en fonction de l'utilisation du module pour que la configuration soit simple à maintenir. Doit être unique. | ||
| Texte | --- | webui_module_service_weather | Ne peut être modifié. |
Accès à la base MongoDB
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ───────────────────────────────────────────────────────── DATABASE OPTIONS ────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── Which database contains service weather data ───
# ───
# Default : webui ───
# ─── ───
# broker__module_webui__module_service_weather__database webui |
Les informations de connexion à la base de données sont renseigné dans le module MongoDB ( voir la page Module MongoDB )
Il est possible de définir plusieurs instances de module de type "webui-module-service-weather" dans votre architecture Shinken .
Chaque instance devra avoir un nom unique.
Nom | Type | Unité | Défaut | Commentaire |
|---|---|---|---|---|
|
Texte
---
webui-module-service-weather
Nous vous conseillons de choisir un nom en fonction de l'utilisation du module pour que votre configuration soit simple à maintenir.
Doit être unique.
| Texte | --- | webui |
Nom de la base de données où sont stockées les données des vues météos. |
Options des liens externes
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ────────────────────────────────────────────────────── EXTERNAL LINKS OPTIONS ─────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── This option allows you to change the path for external links. ───
# ─── Use it for security reasons, to have external url with a different path than the ───
# ─── default installation ───
# ─── ⚠ Change this parameter will change all your external links. ───
# ─── sample url : http://localhost:7767/service-weather/external/abcd01/xyz009 ───
# ─── where : ───
# ─── "http://localhost:7767" is the value of the base url ───
# ─── "external" is the value of this parameter ───
# ─── "abcd01" is the service weather uuid ───
# ─── "xyz009" is the external link configuration uuid ───
# ─── The following characters are prohibited : ",',/ and space. ───
# ───
# Default : external ───
# ───
# broker__module_webui__module_service_weather__default_external_link__external_part_url external
# ─── This option allows you to change the path for external links. ───
# ─── Use it for security reasons, to have external url with a different path than the ───
# ─── default installation ───
# ─── ⚠ Change this parameter will change all your external links. ───
# ─── sample url : http://localhost:7767/service-weather/external/abcd01/xyz009 ───
# ─── where : ───
# ─── "http://localhost:7767" is the value of this parameter ───
# ─── "external" is the value of the external_part_url ───
# ─── "abcd01" is the service weather uuid ───
# ─── "xyz009" is the external link configuration uuid ───
# ─── The following characters are prohibited : ",', and space. ───
# ───
# Default : Your broker base url ───
# ───
# broker__module_webui__module_service_weather__default_external_link__base_url
# ─── This option allows you to change the link protocol for your external links ───
# ─── This can be useful if you want your links to be on a reverse proxy that doesn't use same protocol as the WebUI ───
# ─── default installation ───
# ─── Change this parameter will change all your external links. ───
# ───
# Default : protocol_from_webui => It will be equal to the use_ssl of the WebUI. ───
# If use_ssl is True, it will be HTTPS, else it will be HTTP ───
# ... : http ───
# ... : https ───
# ───
# broker__module_webui__module_service_weather__default_external_link__link_protocol protocol_from_webui
# ─── This option allows you to change if the authentication is needed for an external link. ───
# ───
# Default : 1 ( authentication is needed ) ───
# ... : 0 ( authentication is not needed ) ───
# ───
# broker__module_webui__module_service_weather__default_external_link__authentication_needed 1 |
Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | --- | external | Cette option vous permet de modifier le chemin d'accès aux liens externes.
Le caractère "/" et les autres caractères interdits dans les URL ne sont pas autorisés dans ce paramètre. | ||
| Texte | --- | La base url du Broker | Cette option vous permet de modifier la base url d'accès aux liens externes.
Le caractère "/" et les autres caractères interdits dans les URL ne sont pas autorisés dans ce paramètre. | ||
| Texte | --- | Le protocole du serveur WebUI | Cette option vous permet de modifier le protocole utilisé par les url d'accès aux liens externes.
| ||
| Texte | Booléen | 1 | Cette option permet de choisir si une authentification est nécessaire pour avoir accès aux liens externes de la météo. |
| Warning |
|---|
La modification de ce paramètre entraîne la modification de tous vos les liens externes. |
Options de l'historique des météos
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ────────────────────────────────────────────────── INTERFACE VIEWS HISTORY OPTIONS ────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ──────────────── All Views Parameters ─────────────────────────────────────────────────────────────────────────────────────────────────────── #
# ─── This option allows you to set the maximum number of changes saved in database for each weather view. ───
# ─── /!\ If you decrease the value, the extra history will be deleted on daemon startup. ───
# ─── /!\ Minimum value is 10. ───
# Default : use_default_for_all => It will be equal to the 'views_history__nb_changes_kept__default_for_all' of the WebUI ───
# ... : A positive number (for example 100) ───
# ───
# broker__module_webui__module_service_weather__views_history__nb_changes_kept__service_weather use_default_for_all |
Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Entier positif | --- | 100 | Limite du nombre d'entrées stockées dans l'historique des vues |
Options de suppression des vues
| No Format | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ─────────────────────────────────────────────────── INTERFACE VIEWS TRASH OPTIONS ─────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ──────────────── All Views Parameters ─────────────────────────────────────────────────────────────────────────────────────────────────────── #
# ─── This option allows you to set the maximum number of days that views are kept in the trash. ───
# ─── /!\ After this delay, the views are permanently DELETED. ───
# ─── /!\ If you decrease the value, the too old views can be DELETED on daemon startup. ───
# ─── /!\ Minimum value is 30 days. ───
# Default : use_default_for_all => It will be equal to the 'views_trash__delay_before_deletion__default_for_all' of the WebUI ───
# ... : A number of days (for example 30) ───
# ───
# broker__module_webui__module_service_weather__views_trash__delay_before_deletion__service_weather use_default_for_all |
Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte / Entier positif | jour | use_default_for_all | Nombre de jours durant lesquels les météos seront sauvegardées dans la poubelle |
Options de performances
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ──────────────────────────────────────────────────────── PERFORMANCE OPTIONS ──────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── Maximal number of widgets for one weather page. ───
# ─── Use this to limit your users and prevent them from making a weather page that takes ───
# ─── all server resources. ───
# ─── ───
# broker__module_webui__module_service_weather__default_max_widget_number 100
# ─────────────────────── CACHE ─────────────────────────────────────────────────────────────────────────────────────────────────────────────── #
# ─── The refresh interval in seconds between each cache data calculation. ───
# ─── Increase this period if the cache takes too many resources on server. ───
# ─── Minimum value is 60 seconds. ───
# ───
# Default : 60 ( seconds ) ───
# ───
# broker__module_webui__module_service_weather__cache__refresh_interval 60
# ─── Define the limited time allowed to refresh the cache before raising a warning. ───
# ─── This will be used by the shinken-broker-module-weather-service checks to change its state ───
# ───
# Default : 30 ( seconds ) ───
# ───
# broker__module_webui__module_service_weather__cache__time_taken_for_compute_warning 30
# ─── Define the limited time allowed to refresh the cache before raising an error. ───
# ─── This will be used by the shinken-broker-module-weather-service checks to change its state ───
# ───
# Default : 40 ( seconds ) ───
# ───
# broker__module_webui__module_service_weather__cache__time_taken_for_compute_critical 40 |
Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Entier positif | --- | 100 | Nombre maximal de widgets pour une page météo. Utilisez ceci pour limiter vos les utilisateurs et les empêcher de faire une page météo qui prend toutes les ressources du serveur. |
Cache
Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Entier positif | seconde | 60 | L’intervalle de rafraîchissement en secondes entre chaque calcul de données du cache. Augmentez cette période si le cache prend trop de ressources sur le serveur. | ||
| Entier positif | --- | 30 | Définie la limite de temps alloué pour rafraîchir le cache, avant de générer un avertissement dans les checks de Sup de Sup. Ceci sera utilisé par les checks shinken-broker-module-weather-service. | ||
| Entier positif | seconde | 40 | Définie la limite temps alloué pour rafraîchir le cache avant de générer une erreur dans les checks de Sup de Sup. Ceci sera utilisé par les checks shinken-broker-module-weather-service. |
Options internes
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ───────────────────────────────────────────────────────── INTERNAL OPTIONS ────────────────────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── INTERNAL : DO NOT EDIT FOLLOWING PARAMETERS WITHOUT YOUR DEDICATED SUPPORT ───
# ─── The time to wait before starting to refresh the cache ───
# ─── At start of the Broker, some element data are not directly available ───
# ─── Increase this time if the module has "missing element" on every element at start ───
# ─── This will give more time to the Scheduler to give all element data to the Broker and the module ───
# ───
# Default : 30 ( seconds ) ───
# ───
# broker__module_webui__module_service_weather__awaited_time_before_fetching_element_data 30 |
Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Entier positif | seconde | 30 | Temps d’attente avant de commencer à rafraîchir le cache. Au démarrage du Broker, certaines données ne sont pas disponibles. Augmentez cette durée si le module affiche "élément manquant" sur chaque élément au démarrage. Cela donnera plus de temps au Scheduler pour donner les données au Broker et au module. |
Surcharge de la configuration
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ───────────────────────────────────────── EXTENDED FILE CONFIGURATION ───────────────────────────────────── │ #
# └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_grid_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_info_bar_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_widgets_layout.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/modules/webui_module_service_weather/webui_module_service_weather__default_notifications_settings.cfg |
| Nom | Type | Unité | Défaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | --- | Ce paramètre permet de surcharger les paramètres du module webui-module-service-weather. |