| Scroll Ignore | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Description
Le fichier webui_cfg_overload.cfg permettra de modifier des comportements sur tous les modules WebUI ( qui implémente ce fichier - voir le chapitre surcharge de la configuration de la pageConfiguration du module WebUI )
De plus, les fichiers de configuration des paramètres du module Webui pouvant peuvent être modifiés par les des commandes d'installation de Shinken.
Il est donc Shinken, il est préférable d'ajuster les paramètres nécessaires dans le fichier suivant : /etc/shinken-user/configuration/daemons/brokers/modules/webui/webui_cfg_overload.cfgce fichier.
Les paramètres définis dans ce fichier vont écraser ( seront prioritaires) sur ceux dans les fichiers de configuration des modules WebUI utilisant ce fichier.
Pour plus de détails sur les paramètres, référez-vous à la page suivante : Configuration du module WebUI
Exemple : Surcharge de la configuration de l'interface Web
Adresse par défaut du ficher : /etc/shinken-user/configuration/daemons/brokers/modules/webui/webui_cfg_overload.cfg
Exemple : Surcharge de la configuration de l'interface Web
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ─────────────────────────────────────────────────────────────────────────────────────────────────────── # # This comment is used by Shinken to recognize this file, please do not edit or remove it. # If done so, several parts of Shinken, like sanitize, may not work properly. # __OVERRIDE_TYPE__ webui_cfg_overload # ─────────────────────────────────────────────────────────────────────────────────────────────────────── # # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ # # │ ─────────────────────────────────────────── HIVE ──────────────────────────────────────────── │ # # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ # # ──────────────── default grid layout ──────────────────────────────────────────────────────────────── # # ─── default_tiles_format#********************************************************************************** # This file contains overloaded values for webui configuration # Example available in /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/webui_cfg_overload.cfg #********************************************************************************** #================================================================================== #======== default_tiles_format ========= # Describe how the tiles are displayed in the hive. ─── # ─── Describe how the tiles are displayed in the hive # ─── # # Possible values: # ─── # ... # -: context : (default) Tile_and_status => Tile color is ofsplit theby colorstatus of theand context when there is one, else─── of the status. # ... : status => Tile color matches the status, context displayed by a secondary icon ─── # Default : context => Tile color #matches the context - context_and_status : Tile color is split between status and context, when there is one.if one, else matches the status ─── # ─── # - status : Tile is always of the color of the status. Context is displayed as a secondary icon. ─── tiles_background=context_and_status #================================================================================== #======== Colors for graphics ========= # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ # # │ ──────────────────────────────────────── PAGE DETAIL ──────────────────────────────────────── │ # # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ # # ────────────────────── Graphics ───────────────────────────────────────────────────────────────────── # # ─── Colors for graphics ─── # ─── Give the list of color format hexadecimal (without the #) separate by comma ─── # # # Possible values ==> any existing color ─── # ... : X => infinite number of any existing color # size => infinite colors_graphics=6cc4b9,4485aa,314293,329347,72a82c,ef7c14,d82e2e,931616,FF00FF,000000 #================================================================================== #================================================================================== #======== ─── # ─── ─── colors_graphics=6cc4b9,4485aa,314293,329347,72a82c,ef7c14,d82e2e,931616,FF00FF,000000 # ────────────────────── Historic ───────────────────────────────────────────────────────────────────── # # ─── history__nb_changes_displayed ========= ─── # ─── Number of changes displayed in change detail area of each days in History/SLA tab ─── # ─── in History/SLA tab # This number will be also used to display next changes went a user click on button "show more" ─── # ─── This number will be also used to display next changes went # ─── # ─── a user click on button "show more" # Possible values ==> any positive integer history__nb_changes_displayed=30 #======== history__size_sla_pane ========= ─── # # The default width of SLA column in History/SLA tab # The width is define in px. If not set, the history column will be take 60% of the detail pane width ─── # ... : X => positive integer # ─── # Possible─── values ==> any positive integer #history__size_sla_pane=250 #======== history__default_display_outputs ========= # The default status of the output display on the History/SLA tab for all new users (it still editable in UI) ─── history__nb_changes_displayed=30 # ─── history__size_sla_pane # ─── # ─── The #default Possiblewidth values ==> of SLA column in History/SLA tab ─── # ─── The width is define in -px. 1If ->not outputsset, willthe behistory display column will ─── # ─── be take 60% of the detail pane width # - 0 -> outputs will be hidden history__default_display_outputs=1 #======== history__default_collapse_outputs ========= ─── # # The default state of outputs folding in History/SLA tab for all new users (it still editable in UI) # ─── # ... : X => positive integer # Possible values ==> ─── # ─── # - 1 -> outputs will be fold # - 0 -> outputs will be unfold ─── # history__defaultsize_collapsesla_outputspane=0 #================================================================================== colors_graphics=6cc4b9,4485aa,314293,329347,72a82c,ef7c14,d82e2e,931616,FF00FF,000000 #================================================================================== #======== Webui Authentication External Log ========= 250 # ─── history__default_display_outputs ─── # ─── The default status of the output display on the History/SLA ─── # ─── tab for all new users (it still editable in UI) # Log the webui authentication history in a file ─── # # Enable authentication log or not. # by default: 0 (disabled) webui__log_users__enabled=0 ─── # ... : 0 => outputs will be hidden # File use for log authentication history webui__log_users__file_path=/var/log/shinken/webui/log_users.log ─── # Default : 1 => outputs #will Addbe userdisplay name to log. ─── # by default: 0 (disabled) webui__log_users__add_user_name=0 #================================================================================== #======== Synthesis ========= ─── # These parameters are used to configure the─── Synthesis (or "Wall") menu. history__default_display_outputs=1 # ─── history__default_collapse_outputs # This property enables or disables the reports in the Synthesis menu.─── # ─── The default state of outputs folding in History/SLA # by default: 1 (enabled) broker__module_webui__synthesis__report__enable=1 ─── # ─── tab for all new users (it still editable in UI) ─── # ─── # ... : 1 => outputs will be fold ─── # Default : 0 => outputs will be unfold ─── # ─── ─── history__default_collapse_outputs=0 # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ # # │ ────────────────────────────────────────── REPORTS ────────────────────────────────────────── │ # # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ # # ─── Synthesis ─── # ─── These parameters are used to configure the Synthesis (or "Wall") menu. ─── # ─── # ... : 0 => disabled ─── # Default : 1 => enabled ─── # ─── ─── broker__module_webui__synthesis__report__enable=1 # ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ # # │ ─────────────────────────────────────────── LOGS ──────────────────────────────────────────── │ # # └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ # # ─── Webui Authentication External Log ─── # ─── Log the webui authentication history in a file ─── # ─── # ... : 1 => enabled ─── # Default : 0 => disabled ─── # ─── ─── broker__module_webui__log_users__enabled=0 # ─── File use for log authentication history ─── # ─── ─── broker__module_webui__log_users__file_path=/var/log/shinken/webui/log_users.log # ─── Add user name to log ─── # ─── # ... : 1 => enabled ─── # Default : 0 => disabled ─── # ─── ─── broker__module_webui__log_users__add_user_name=0 # ─── The log files will be rotated daily, up to the number of days configured. ─── # ─── All log files older than the configured number of days will be deleted automatically. ─── # ─── # Default : 7 (days) ─── # ─── ─── broker__module_webui__log_users__logs_rotation__nb_days_before_deletion=7 |
Détails des sections composant le fichier de configuration
Portail
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ─────────────────────────────────────────── HIVE ──────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ──────────────── default grid layout ──────────────────────────────────────────────────────────────── #
# ─── default_tiles_format ───
# ─── Describe how the tiles are displayed in the hive ───
# ───
# ... : context_and_status => Tile color is split by status and context when there is one ───
# ... : status => Tile color matches the status, context displayed by a secondary icon ───
# Default : context => Tile color matches the context if one, else matches the status ───
# ─── ───
tiles_background=context_and_status
|
| Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | --- | context_and_status | Modifie l'affichage des tuiles du portail ( voir la page Paramétrage de l'interface de Visualisation ) |
Page détail
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ──────────────────────────────────────── PAGE DETAIL ──────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ────────────────────── Graphics ───────────────────────────────────────────────────────────────────── #
# ─── Colors for graphics ───
# ─── Give the list of color format hexadecimal (without the #) separate by comma ───
# ───
# ... : X => infinite number of any existing color ───
# ─── ───
colors_graphics=6cc4b9,4485aa,314293,329347,72a82c,ef7c14,d82e2e,931616,FF00FF,000000
# ────────────────────── Historic ───────────────────────────────────────────────────────────────────── #
# ─── history__nb_changes_displayed ───
# ─── Number of changes displayed in change detail area of each days in History/SLA tab ───
# ─── in History/SLA tab ───
# ─── This number will be also used to display next changes went ───
# ─── a user click on button "show more" ───
# ───
# ... : X => positive integer ───
# ─── ───
history__nb_changes_displayed=30
# ─── history__size_sla_pane ───
# ─── The default width of SLA column in History/SLA tab ───
# ─── The width is define in px. If not set, the history column will ───
# ─── be take 60% of the detail pane width ───
# ───
# ... : X => positive integer ───
# ─── ───
# history__size_sla_pane=250
# ─── history__default_display_outputs ───
# ─── The default status of the output display on the History/SLA ───
# ─── tab for all new users (it still editable in UI) ───
# ───
# ... : 0 => outputs will be hidden ───
# Default : 1 => outputs will be display ───
# ─── ───
history__default_display_outputs=1
# ─── history__default_collapse_outputs ───
# ─── The default state of outputs folding in History/SLA ───
# ─── tab for all new users (it still editable in UI) ───
# ───
# ... : 1 => outputs will be fold ───
# Default : 0 => outputs will be unfold ───
# ─── ───
history__default_collapse_outputs=0 |
L'onglet Graphiques
| Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | --- | 6cc4b9,4485aa,314293,329347,72a82c,ef7c14,d82e2e,931616,FF00FF,000000s | Choix des couleurs des graphiques ( voir la page Paramétrage de l'interface de Visualisation ) |
L'onglet Historique/SLA
| Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Entier | --- | 30 | Limite le nombre d'entrées ( changements ) pour chaque journée dans l'onglet Historique/SLA(permet d'éviter le fait que les pages soient trop lourdes à l'ouverture. L'utilisateur pourra toujours en voir plus sur une journée, en utilisant le bouton approprié "Voir Plus") ( voir la page Paramétrage de l'interface de Visualisation ) | ||
| Entier | --- | 250 | Taille de la colonne SLA en pixel par défaut, lorsque les deux colonnes sont affichées ( voir la page Paramétrage de l'interface de Visualisation ) | ||
| Entier | --- | 1 | Permet de définir si par défaut le résultat et le résultat long de chaque changement d'état sont affichés.
( voir la page Paramétrage de l'interface de Visualisation ) | ||
| Entier | --- | 0 | Permet de définir si par défaut les résultats sont affichés en réduit ou en totalité.
( voir la page Paramétrage de l'interface de Visualisation ) |
Les rapports
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ────────────────────────────────────────── REPORTS ────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── Synthesis ───
# ─── These parameters are used to configure the Synthesis (or "Wall") menu. ───
# ───
# ... : 0 => disabled ───
# Default : 1 => enabled ───
# ─── ───
broker__module_webui__synthesis__report__enable=1 |
| Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Entier | --- | 1 | Surcharge de la propriété du fichier /etc/shinken/modules/webui .cfg ( voir la page Configuration du module WebUI ) |
Les logs
| Code Block | ||||
|---|---|---|---|---|
| ||||
# ┌─────────────────────────────────────────────────────────────────────────────────────────────────────┐ #
# │ ─────────────────────────────────────────── LOGS ──────────────────────────────────────────── │ #
# └─────────────────────────────────────────────────────────────────────────────────────────────────────┘ #
# ─── Webui Authentication External Log ───
# ─── Log the webui authentication history in a file ───
# ───
# ... : 1 => enabled ───
# Default : 0 => disabled ───
# ─── ───
broker__module_webui__log_users__enabled=0
# ─── File use for log authentication history ───
# ─── ───
broker__module_webui__log_users__file_path=/var/log/shinken/webui/log_users.log
# ─── Add user name to log ───
# ───
# ... : 1 => enabled ───
# Default : 0 => disabled ───
# ─── ───
broker__module_webui__log_users__add_user_name=0
# ─── The log files will be rotated daily, up to the number of days configured. ───
# ─── All log files older than the configured number of days will be deleted automatically. ───
# ───
# Default : 7 (days) ───
# ─── ───
broker__module_webui__log_users__logs_rotation__nb_days_before_deletion=7
|
| Nom | Type | Unité | Défaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Booléen | --- | 0 | Surcharge de la propriété du fichier /etc/shinken/modules/webui .cfg ( voir la page Configuration du module WebUI ) | ||
| Text | --- | /var/log/shinken/webui/log_users.log | Surcharge de la propriété du fichier /etc/shinken/modules/webui .cfg ( voir la page Configuration du module WebUI ) | ||
| Booléen | --- | 0 | Surcharge de la propriété du fichier /etc/shinken/modules/webui .cfg ( voir la page Configuration du module WebUI ) | ||
| Entier | jour | 7 | Surcharge de la propriété du fichier /etc/shinken/modules/webui .cfg ( voir la page Configuration du module WebUI ) |