| Scroll Ignore | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
|
Contexte
Il est possible deย modifier le paramรฉtrage du Module WebUI ( module qui porte l' UI de Visualisation ) :
- La configuration du module se trouve par dรฉfaut dans le fichierย /etc/shinken/modules/webui .cfg
- Un exemple dansย /etc/shinken-user-example/configuration/daemons/brokers/modules/webui/webui-example.cfg
Exemple de fichier de configuration
| Code Block | ||||
|---|---|---|---|---|
| ||||
# CFG_FORMAT_VERSION 1 ( SHINKEN : DON'T TOUCH THIS LINE )
#================================================================================
# WebUI
#================================================================================
# Daemons that can load this module:
# - broker
# This module is the visualization interface
#================================================================================
define module {
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MODULE IDENTITY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Module name [ Must be unique ] [ MANDATORY ] โโโ
# โโโ โโโ
module_name WebUI
# โโโ Module type [ Do not edit ] [ MANDATORY ] โโโ
# โโโ โโโ
module_type webui
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโโโโโโโโโโโโโโ Lang โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Select the lang that will be used by default on the UIs. โโโ
# โโโ Currently managed: โโโ
# โโโ
# Default : en => (english) โโโ
# ... : fr => (francais) โโโ
# โโโ โโโ
lang LANG
# โโโโโโโโโโโโโโโโโโโโ Images paths โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Folder containing shared files (displayed UI icons) โโโ
# โโโ โโโ
share_dir /var/lib/shinken/share
# โโโ Folder containing pictures โโโ
# โโโ โโโ
photo_dir /var/lib/shinken/photos
# โโโโโโโโโโโโโโโโโโโโโโ Outputs โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Maximum output length for plugin output โโโ
# โโโ note: 0 = no limit โโโ
# โโโ โโโ
max_output_length 0
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE ACCESS OPTIONS AND SECURITY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโโโโโ Listening address/port โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ IP address to listen to. โโโ
# โโโ note: 0.0.0.0 = all interfaces โโโ
# โโโ
# Default : 0.0.0.0 โโโ
# โโโ โโโ
host 0.0.0.0
# โโโ Port to listen to. โโโ
# โโโ
# Default : 7767 โโโ
# โโโ โโโ
port 7767
# โโโโโโโโโโโโโโโโโโโโโโโ HTTPS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Enable HTTPS. โโโ
# โโโ
# Default : 0 => Use HTTP โโโ
# ... : 1 => Use HTTPS โโโ
# โโโ โโโ
use_ssl 0
# โโโ SSL Certificates to use. โโโ
# โโโ โโโ
ssl_cert /etc/shinken/certs/server.cert
# โโโ SSL key to use. โโโ
# โโโ โโโ
ssl_key /etc/shinken/certs/server.key
# โโโโโโโโโโโโโโโโโโโโโโ Security โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Secret key used to crypt cookie. โโโ
# โโโ note: must be the same as the configuration UI โโโ
# โโโ โโโ
auth_secret THIS SHOULD BE CHANGED BEFORE PRODUCTION
# โโโ Manage ACL. โโโ
# โโโ
# ... : 0 => Enable everything for everyone โโโ
# Default : 1 => Use users ACL โโโ
# โโโ โโโ
manage_acl 1
# โโโ Remote application authentication. โโโ
# โโโ
# Default : 0 => Disable authentication using HTTP Header โโโ
# ... : 1 => Allow the user to be load from a HTTP Header โโโ
# โโโ โโโ
remote_user_enable 0
# โโโ HTTP Header to use to get user name if remote_user_enable is set to 1. โโโ
# โโโ โโโ
remote_user_variable X-Remote-User
# โโโ Enable case sensitive for user name from remote_user_variable HTTP Header. โโโ
# โโโ
# ... : 0 => Disable case check on remote user login โโโ
# Default : 1 => Enable case check on remote user login โโโ
# โโโ โโโ
remote_user_case_sensitive 1
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MODULES โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Modules loaded by the Visualisation interface. โโโ
# โโโ Available: โโโ
# โโโ
# ... : Mongodb => [mandatory] use to save user data (hive, favorites, ...) โโโ
# ... : webui-enterprise => [mandatory] โโโ
# ... : sla => [mandatory] read sla from this module definition โโโ
# ... : Cfg_password => check password from the user configuration โโโ
# ... : event-manager-reader => activate the event manager page to show event โโโ
# (do not forget to activate the module in your broker to write data) โโโ
# ... : webui-module-authentication-LDAP => check password from LDAP server โโโ
# ... : webui-module-service-weather => activate the service weather module which allow to create โโโ
# external views of a service weather to look at service state โโโ
# from outside of Shinken โโโ
# ... : webui--module-report-handler => activate the report handler module which allow to โโโ
# generate reports โโโ
# โโโ โโโ
modules Mongodb, webui-enterprise, sla, Cfg_password, event-manager-reader, webui-module-service-weather, webui--module-report-handler
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ METROLOGY ACCESS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ This parameter defines the graphite server addresses for each realm used to create the metrology data. โโโ
# โโโ The address preceded by the character * corresponds to the default graphite. โโโ
# โโโ You can specify an address for a specific realm by using this syntax : <Realm>=<Protocol>://<Hostname>:<Port> โโโ
# โโโ For now, the managed protocol is : http / https โโโ
# โโโ Ex. : graphite_backends *=http://127.0.0.1:80, France=http://192.168.1.220:8080 โโโ
# โโโ โโโ
graphite_backends *=http://127.0.0.1:80
# โโโ Before a graphite query is done, the graphite server is tested โโโ
# โโโ Timeout for the alive timeout (in seconds) โโโ
# โโโ
# Default : 10 (seconds) โโโ
# โโโ โโโ
metrology__ping_timeout 10
# โโโ Timeout for graphite queries (in seconds) โโโ
# โโโ
# Default : 20 (seconds) โโโ
# โโโ โโโ
metrology__query_timeout 20
# โโโ If the test does fail, the graphite server will be exclude during this time to avoid to lock query for timeouts โโโ
# โโโ
# Default : 120 (seconds) โโโ
# โโโ โโโ
metrology__after_error_wait_before_retry 120
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ BROKS GETTER IN WEBUI โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ INTERNAL : DO NOT EDIT FOLLOWING PARAMETER WITHOUT YOUR DEDICATED SUPPORT โโโ
# โโโ These parameters allow some internal tuning in broks management in WebUI โโโ
# โโโ Enable or disable late broks sets catchup โโโ
# โโโ
# ... : 0 => Disable โโโ
# Default : 1 => Enable โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__activate_late_set_catchup 1
# โโโ Take extra broks sets to manage if more than this parameter sets are waiting โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__nb_late_set_allowed_before_catchup 10
# โโโ Stop taking extra broks sets in catchup when we reach this number of broks โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__catchup_broks_managed_by_module_in_a_catchup_loop 200000
# โโโ Continue catchup if too much late broks sets remains after โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__catchup_run_endless_until_nb_late_set_allowed_reached 0
# โโโ Take the lock as soon as getter thread has some broks to manage in order to โโโ
# โโโ attempt to reduce concurrent usage of CPU โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__include_deserialisation_and_catchup_in_lock 0
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ EXTERNAL AUTHENTICATION LOGS PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Log the webui authentication history in a file โโโ
# โโโ Enable authentication log or not. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ
# broker__module_webui__log_users__enabled 0
# โโโ File used for log authentication history. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# โโโ
# broker__module_webui__log_users__file_path /var/log/shinken/webui/log_users.log
# โโโ Add user name to log. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ
# 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. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# Default : 7 (days) โโโ
# โโโ
# broker__module_webui__log_users__logs_rotation__nb_days_before_deletion 7
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ LIST CSV EXPORT OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ INTERNAL : DO NOT EDIT FOLLOWING PARAMETER WITHOUT YOUR DEDICATED SUPPORT โโโ
# โโโ Time (in minutes) to keep a list in cache for CSV export โโโ
# โโโ
# Default : 1 (minutes) โโโ
# โโโ โโโ
broker__module_webui__csv_export_cache__limit_time_to_keep_in_cache 1
# โโโ RAM allowed (in megabytes) to the CSV export cache โโโ
# โโโ
# Default : 4000 (MB) โโโ
# โโโ โโโ
broker__module_webui__csv_export_cache__limit_memory_to_use_in_cache 4000
# โโโ Number of items to send per CSV Export request โโโ
# โโโ
# Default : 25000 โโโ
# โโโ โโโ
broker__module_webui__csv_export_cache__number_of_items_per_part 25000
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MONITORING INFORMATION IN WEBUI โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ If the loading of the configuration exceeds a given time, shinken-healthcheck and the check โโโ
# โโโ "Broker - $KEY$ - Module Visualisation UI" can warn you. โโโ
# โโโ This parameter ( in minutes ) allows you to define the time before the warning. โโโ
# โโโ โโโ
# broker__module_webui__loading_new_configuration__time_before_warning_if_load_is_long 10
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE DEFAULT NOTIFICATIONS OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโ Users Notification Parameters โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Configure users sound notification volume โโโ
# โโโ Format is in percent. โโโ
# โโโ
# ... : Min => 0 ( /!\ With this value, the sound notification is played, but is not audible. ) โโโ
# ... : Max => 100 โโโ
# โโโ Format is in percent. โโโ
# โโโ
# Default : 50 โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__users__sound__volume_percent 50
# โโโ Configure users visual blink notification โโโ
# โโโ Visual notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 1 => Enable ( Visual notification is played ) โโโ
# ... : 0 => Disable ( Visual notification is not played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__users__visual__blink__enabled 1
# โโโ The parameters below allow users to change default configuration of notification for webui interfaces โโโ
# โโโ
# ... : Lists ( All elements / Root problems ) โโโ
# ... : Hives โโโ
# โโโโโโโโโโโ Lists Notification Parameters โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Lists sound notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Sound notification in lists is not played ) โโโ
# ... : 1 => Enable ( Sound notification in lists is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__lists__sound__enabled 0
# โโโ Lists visual notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Visual notification in lists is not played ) โโโ
# ... : 1 => Enable ( Visual notification in lists is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__lists__visual__blink__enabled 0
# โโโโโโโโโโโ Hives Notification Parameters โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Hives sound notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Sound notification in hives is not played ) โโโ
# ... : 1 => Enable ( Sound notification in hives is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__hives__sound__enabled 0
# โโโ Hives visual notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Visual notification in hives is not played ) โโโ
# ... : 1 => Enable ( Visual notification in hives is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__hives__visual__blink__enabled 0
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE VIEWS OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโโโโโโโโโโโโ History โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ This option allows you to set the maximum number of changes saved in database for each view. โโโ
# โโโ /!\ If you decrease the value, the extra history can be deleted on daemon startup. โโโ
# โโโ /!\ Minimum value is 10. โโโ
# Default : 100 โโโ
# โโโ
# broker__module_webui__views_history__nb_changes_kept__default_for_all 100
# โโโโโโโโโโโโโโโโโโโโโโโ Trash โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ 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 : 30 (days) โโโ
# โโโ
# broker__module_webui__views_trash__delay_before_deletion__default_for_all 30
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ EXTENDED FILE CONFIGURATION โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ The first file ( in /etc/shinken/_default ) contains the default values provided by Shinken. This file : โโโ
# โโโ will be erased each update/patch โโโ
# โโโ must be present โโโ
# โโโ must not be changed. โโโ
[OVERRIDE_FROM] /etc/shinken/_default/daemons/brokers/modules/webui.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/webui_cfg_overload.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" dans l'architecture Shinken.
- Chaque instance devra avoir un nom unique.
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | --- | WebUI | 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 | Ne peux รชtre modifiรฉ. |
Options de fonctionnement de l'interface
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโโโโโโโโโโโโโโ Lang โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Select the lang that will be used by default on the UIs. โโโ
# โโโ Currently managed: โโโ
# โโโ
# Default : en => (english) โโโ
# ... : fr => (francais) โโโ
# โโโ โโโ
lang LANG
# โโโโโโโโโโโโโโโโโโโโ Images paths โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Folder containing shared files (displayed UI icons) โโโ
# โโโ โโโ
share_dir /var/lib/shinken/share
# โโโ Folder containing pictures โโโ
# โโโ โโโ
photo_dir /var/lib/shinken/photos
# โโโโโโโโโโโโโโโโโโโโโโ Outputs โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Maximum output length for plugin output โโโ
# โโโ note: 0 = no limit โโโ
# โโโ โโโ
max_output_length 0 ย |
Langues
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | --- | en | Modification de la langue utilisรฉe dans l'interface de visualisation.
|
Dossiers de fichiers partagรฉs et de photos
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | --- | /var/lib/shinken/share | Emplacement du dossier des fichiers partagรฉs ( contiens les icรดnes affichรฉes dans les listes de l'interface de configuration ) | ||
| Texte | --- | /var/lib/shinken/photos | Emplacement du dossier des photos |
Limitation de la taille des textes de rรฉsultats
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Entier | --- | 0 | Taille maximum de caractรจres pour l'affichage des rรฉsultats La valeur 0 signifie que la limite n'est pas dรฉfinie. Il existe une autre limite dans le fichier de configuration de shinken.cfg qui peut influer sur l'affichage max_plugins_output_length ( voir la page Fichier de configuration ( shinken.cfg ) ย ) |
Options d'accรจs ร l'interface et sรฉcuritรฉ
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE ACCESS OPTIONS AND SECURITY โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโโโโโ Listening address/port โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ IP address to listen to. โโโ
# โโโ note: 0.0.0.0 = all interfaces โโโ
# โโโ
# Default : 0.0.0.0 โโโ
# โโโ โโโ
host 0.0.0.0
# โโโ Port to listen to. โโโ
# โโโ
# Default : 7767 โโโ
# โโโ โโโ
port 7767
# โโโโโโโโโโโโโโโโโโโโโโโ HTTPS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Enable HTTPS. โโโ
# โโโ
# Default : 0 => Use HTTP โโโ
# ... : 1 => Use HTTPS โโโ
# โโโ โโโ
use_ssl 0
# โโโ SSL Certificates to use. โโโ
# โโโ โโโ
ssl_cert /etc/shinken/certs/server.cert
# โโโ SSL key to use. โโโ
# โโโ โโโ
ssl_key /etc/shinken/certs/server.key
# โโโโโโโโโโโโโโโโโโโโโโ Security โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Secret key used to crypt cookie. โโโ
# โโโ note: must be the same as the configuration UI โโโ
# โโโ โโโ
auth_secret THIS SHOULD BE CHANGED BEFORE PRODUCTION
# โโโ Manage ACL. โโโ
# โโโ
# ... : 0 => Enable everything for everyone โโโ
# Default : 1 => Use users ACL โโโ
# โโโ โโโ
manage_acl 1
# โโโ Remote application authentication. โโโ
# โโโ
# Default : 0 => Disable authentication using HTTP Header โโโ
# ... : 1 => Allow the user to be load from a HTTP Header โโโ
# โโโ โโโ
remote_user_enable 0
# โโโ HTTP Header to use to get user name if remote_user_enable is set to 1. โโโ
# โโโ โโโ
remote_user_variable X-Remote-User
# โโโ Enable case sensitive for user name from remote_user_variable HTTP Header. โโโ
# โโโ
# ... : 0 => Disable case check on remote user login โโโ
# Default : 1 => Enable case check on remote user login โโโ
# โโโ โโโ
remote_user_case_sensitive 1 |
Adresse et port d'รฉcoute
Il est possible de configurer l'interface rรฉseau sur laquelle est mise ร disposition l'interface de visualisation. Si par exemple l'interface de visualisation ne doit รชtre accessible que via un rรฉseau local, il est possible d'รฉcouter que les requรชtes sur cette interface rรฉseau.
Les paramรจtres suivants permettent de configurer l'accรจs ร l'interface de visualisation :
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | ||
|---|---|---|---|---|---|---|
| Texte | Adresse IPv4 | 0.0.0.0 | L'interface rรฉseau sur laquelle le module WebUI va รฉcouter. | ||
| Texte | Port rรฉseau | 7767 | Port rรฉseau sur lequel le module WebUI va รฉcouter. |
Sรฉcurisation de la communication avec le module
L'interface de visualisation est accessible via HTTP. Il est recommandรฉ d'utiliser le protocole HTTPS pour chiffrer la communication avec le module.
Si pour des raisons de sรฉcuritรฉ, cette interface de visualisation doit รชtre accessible via HTTPS, il est possible de configurer les certificats avec les paramรจtres suivants :
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Boolรฉen | --- | 0 | Permet d'activer ou non l'utilisation du protocole HTTPS.
| |||||||
| Texte | Chemin | /etc/shinken/certs/server.cert | Chemin vers le certificat SSL utilisรฉ par le protocole HTTPS. | |||||||
| Texte | Chemin | /etc/shinken/certs/server.key | Chemin vers la clรฉ SSL utilisรฉe par le protocole HTTPS. |
Sรฉcuritรฉ du module
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | --- | Les cookies sont chiffrรฉs par l'interface afin que les utilisateurs ne puissent pas les crรฉer et rรฉcupรฉrer le compte d'un autre utilisateur.ย Pour cela, il utilise la clรฉ de chiffrement contenue dans ce paramรจtre .
| |||||||||||
| Boolรฉan | --- | 1 | Gestion des droits d'exรฉcution des utilisateurs sur l'exรฉcution d'actions sur l'interface de visualisation ( ex: Forcer le statut, dรฉfinir une pรฉriode de maintenance ... ). Selon les droits dรฉfinis sur l'utilisateur, certains boutons d'actions lui seront cachรฉs.ย | |||||||||||
| Boolรฉan | --- | 0 | Authentification de l'application ร distance.ย ( voir la pageย WebUI - Authentification unique ( SSO ), pour plus de dรฉtail sur l'utilisation de l'authentification unique ). | |||||||||||
| Texte | X-REMOTE-USER | En-tรชte HTTP qui permettra d'obtenir le nom de l'utilisateur si le paramรจtre "remote_user_enable" est activรฉ. ( voir la pageย WebUI - Authentification unique ( SSO ), pour plus de dรฉtail sur l'utilisation de l'authentification unique ). | ||||||||||||
| Boolรฉan | 1 | Vรฉrification de la casse sur le login de l'utilisateur distant seulement si le paramรจtre remote_user_enable est activรฉ.
( voir la pageย WebUI - Authentification unique ( SSO ), pour plus de dรฉtail sur l'utilisation de l'authentification unique ). |
Modules du module WebUI
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MODULES โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Modules loaded by the Visualisation interface. โโโ
# โโโ Available: โโโ
# โโโ
# ... : Mongodb => [mandatory] use to save user data (hive, favorites, ...) โโโ
# ... : webui-enterprise => [mandatory] โโโ
# ... : sla => [mandatory] read sla from this module definition โโโ
# ... : Cfg_password => check password from the user configuration โโโ
# ... : event-manager-reader => activate the event manager page to show event โโโ
# (do not forget to activate the module in your broker to write data) โโโ
# ... : webui-module-authentication-LDAP => check password from LDAP server โโโ
# ... : webui-module-service-weather => activate the service weather module which allow to create โโโ
# external views of a service weather to look at service state โโโ
# from outside of Shinken โโโ
# ... : webui--module-report-handler => activate the report handler module which allow to โโโ
# generate reports โโโ
# โโโ โโโ
modules Mongodb, webui-enterprise, sla, Cfg_password, event-manager-reader, webui-module-service-weather, webui--module-report-handler |
Plusieurs modules sont disponibles pour le module WebUI.
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | Liste de noms de sous modules, sรฉparรฉs par des virgules. Par dรฉfaut, aucun sous module n'est activรฉ. Voici la liste des modules possibles :
( voir la page Les Modules de la WebUI ) |
Connexion ร la base MongoDB
Le module WebUI a besoin de se connecter ร une base MongoDB pour stocker les portails, tableaux de bord et favoris des utilisateurs. Le paramรฉtrage pour la connexion ร cette base Mongo est dรฉcrit dans la page duย Module MongoDB.
Les Synthรจses
Il est possible de modifier le comportement des options dans le menu "Les Synthรจses" de l'Interface de Visualisation. (ย voir la page Les Synthรจses ย ) :
- pour activer le bouton "Rapport" du menu et la gรฉnรฉration CSV par script, il suffit d'ajouter le module webui--module-report-handler dans la liste des modules
- pour cacher le bouton "Rapport" du menu et dรฉsactiver la gรฉnรฉration de CSV par script, il suffit de retirer le module webui--module-report-handlerย de la liste des modules
Accรจs aux donnรฉes de Mรฉtrologie
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ METROLOGY ACCESS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ This parameter defines the graphite server addresses for each realm used to create the metrology data. โโโ
# โโโ The address preceded by the character * corresponds to the default graphite. โโโ
# โโโ You can specify an address for a specific realm by using this syntax : <Realm>=<Protocol>://<Hostname>:<Port> โโโ
# โโโ For now, the managed protocol is : http / https โโโ
# โโโ Ex. : graphite_backends *=http://127.0.0.1:80, France=http://192.168.1.220:8080 โโโ
# โโโ โโโ
graphite_backends *=http://127.0.0.1:80
# โโโ Before a graphite query is done, the graphite server is tested โโโ
# โโโ Timeout for the alive timeout (in seconds) โโโ
# โโโ
# Default : 10 (seconds) โโโ
# โโโ โโโ
metrology__ping_timeout 10
# โโโ Timeout for graphite queries (in seconds) โโโ
# โโโ
# Default : 20 (seconds) โโโ
# โโโ โโโ
metrology__query_timeout 20
# โโโ If the test does fail, the graphite server will be exclude during this time to avoid to lock query for timeouts โโโ
# โโโ
# Default : 120 (seconds) โโโ
# โโโ โโโ
metrology__after_error_wait_before_retry 120 |
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | Ce paramรจtre dรฉfinit les adresses des serveurs graphite pour chaque royaume utilisรฉ pour crรฉer les donnรฉes de mรฉtrologie. La syntaxe est la suivante : <Realm>=<Protocol>://<Hostname>:<Port>
Pour dรฉfinir plusieurs graphite_backend sur une WebUI, les adresses doivent รชtre sรฉparรฉes par des virgules. Exemple :
Dans cet exemple, le royaume France utilise l'adresse http://192.168.100:8080 et tous les autres royaumes utilisent l'adresse http://127.0.0.1:80 . | |||||||||||||||
| Entier | Secondes | 10 | Avant qu'une requรชte graphite soit effectuรฉe, une vรฉrification est faite pour s'assurer du bon fonctionnement du serveur graphite. | ||||||||||||||
| Entier | Secondes | 20 | Temps maximum d'exรฉcution des requรชtes graphites. | ||||||||||||||
| Entier | Secondes | 120 | Si la commande de vรฉrification du bon fonctionnement du serveur graphite รฉchoue, le module sera suspendu avant de relancer la vรฉrification. |
Rรฉcupรฉration des broks
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ BROKS GETTER IN WEBUI โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ INTERNAL : DO NOT EDIT FOLLOWING PARAMETER WITHOUT YOUR DEDICATED SUPPORT โโโ
# โโโ These parameters allow some internal tuning in broks management in WebUI โโโ
# โโโ Enable or disable late broks sets catchup โโโ
# โโโ
# ... : 0 => Disable โโโ
# Default : 1 => Enable โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__activate_late_set_catchup 1
# โโโ Take extra broks sets to manage if more than this parameter sets are waiting โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__nb_late_set_allowed_before_catchup 10
# โโโ Stop taking extra broks sets in catchup when we reach this number of broks โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__catchup_broks_managed_by_module_in_a_catchup_loop 200000
# โโโ Continue catchup if too much late broks sets remains after โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__catchup_run_endless_until_nb_late_set_allowed_reached 0
# โโโ Take the lock as soon as getter thread has some broks to manage in order to โโโ
# โโโ attempt to reduce concurrent usage of CPU โโโ
# โโโ โโโ
# broker__module_webui__broks_getter__include_deserialisation_and_catchup_in_lock 0 |
| Warning |
|---|
Ces paramรจtres sont dรฉdiรฉs au fonctionnement interne du module, il est fortement recommandรฉ de ne pas les modifier sans le support dรฉdiรฉ.ย |
Le fonctionnement du thread de rรฉcupรฉration des broks peut รชtre configurรฉ via certains paramรจtres, afin de modifier son "agressivitรฉ".
Pendant la mise ร jour des donnรฉes de supervision, le module ne peut pas rรฉpondre aux requรชtes HTTP qu'il reรงoit.
Principe de l'algorithme d'absorption des broks :
- Attente de broks ร traiter.
- Rรฉcupรฉration de broks en retard ( fonctionnalitรฉ de rattrapage ).
- Dรฉsรฉrialisation des broks.
- Entrรฉe en session critique ( les requรชtes ร l'API sont bloquรฉes ).
- Traitement des broks.
- Libรฉrer la session critique et attendre de nouveaux broks,ย ou ย continuer l'absorption de broks ( en cas de retard important, on repart ร l'รฉtape 1. en restant sur la session critique ).
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Boolรฉen | --- | 1 | Utilisation deย laย fonctionnalitรฉ de rattrapage pour absorber desย broks en retard.
| |||||||
| Nombre | Nombre de broks set | 10 | Nombre deย brok set ย en attente tolรฉrรฉ. Au-dessus de ce nombre, lesย brokย set ย sont immรฉdiatement rรฉcupรฉrรฉs par l'algorithme de rattrapage pour รชtre traitรฉs immรฉdiatement. | |||||||
| Nombre | Nombre de broks | 200000 | Nombre maximal deย broks ย que l'algorithme de rattrapage rรฉcupรจre avant de lancer le traitement. | |||||||
| Boolรฉen | --- | 1 | Aprรจs traitement desย broks, si le nombre deย brok set ย en retard est trop รฉlevรฉ :
| |||||||
| Boolรฉen | --- | 0 | Pour disposer d'un maximum de temps CPU pour traiter lesย broksย en retard, il es possible activer ce paramรจtre afin de bloquer les requรชtes ร l'API dรจs la phase 2 ( ย Rรฉcupรฉration de broks en retard ย ) puis une fois les broks rattrapรฉs passรฉs en Phase 5 ( ย Traitement des broksย ). Deux valeurs possiblesย :
|
Les logs d'activitรฉ des utilisateurs ( authentification et session )
Les paramรจtres suivants permettent au module WebUI de crรฉer un fichier de log supplรฉmentaire pour y recenser l'activitรฉ des utilisateurs ( authentification et session ), qu'elles soient rรฉussites ou non, ainsi que les dรฉconnexions.
- Il est conseillรฉ fortement de les surcharger dans le fichier/etc/shinken-user/configuration/daemons/brokers/modules/webui/webui_cfg_overload.cfg.
- Ils sont prรฉsents dans ce fichier pour indiquer qu'ils existent, mais leur modification dans le fichier de surcharge permettra une meilleure gestion (ย ne pas modifier ce que l'on livre par dรฉfaut, mais le surcharger ย ).
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ EXTERNAL AUTHENTICATION LOGS PARAMETERS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Log the webui authentication history in a file โโโ
# โโโ Enable authentication log or not. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ
# broker__module_webui__log_users__enabled 0
# โโโ File used for log authentication history. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# โโโ
# broker__module_webui__log_users__file_path /var/log/shinken/webui/log_users.log
# โโโ Add user name to log. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# Default : 0 => Disable โโโ
# ... : 1 => Enable โโโ
# โโโ
# 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. โโโ
# โโโ /!\ Need to be changed in the file [OVERRIDE_FROM] webui_cfg_overload.cfg โโโ
# Default : 7 (days) โโโ
# โโโ
# broker__module_webui__log_users__logs_rotation__nb_days_before_deletion 7 |
| Clรฉ | Type | Valeur par dรฉfaut | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Boolรฉen | 0 | Active ou non le log de la connexion des utilisateurs dans un fichier de logs ร part :
| |||||||
| Texte | /var/log/shinken/webui/log_users.log | Prรฉcise le chemin vers le quel les logs vont รชtre รฉcrits. | |||||||
| Boolรฉen | 0 | Ajoute le nom des utilisateur dans les logs. Par dรฉfaut, seul un identifiant anonyme sera prรฉsent ร la place.
| |||||||
| Entier positif | 7ย | Configuration de la rotation des logs. Les fichiers plus anciens que la valeur de la clรฉ seront supprimรฉs. |
Options pour l'export de la liste en CSV
Il est possible d'effectuer un export CSV depuis une liste dans l'interface de Visualisation. Pour des raisons de performances, ces exports, s'ils sont trop importants, sont divisรฉs en plusieurs parties.
Ceci afin de ne pas faire tomber le navigateur.
Il est possible de modifier ce comportement via les paramรจtres ci-dessous.
| Warning |
|---|
Ces paramรจtres sont dรฉdiรฉs au fonctionnement interne du module, il est fortement recommandรฉ de ne pas les modifier sans le support dรฉdiรฉ.ย |
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ LIST CSV EXPORT OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ INTERNAL : DO NOT EDIT FOLLOWING PARAMETER WITHOUT YOUR DEDICATED SUPPORT โโโ
# โโโ Time (in minutes) to keep a list in cache for CSV export โโโ
# โโโ
# Default : 1 (minutes) โโโ
# โโโ โโโ
broker__module_webui__csv_export_cache__limit_time_to_keep_in_cache 1
# โโโ RAM allowed (in megabytes) to the CSV export cache โโโ
# โโโ
# Default : 4000 (MB) โโโ
# โโโ โโโ
broker__module_webui__csv_export_cache__limit_memory_to_use_in_cache 4000
# โโโ Number of items to send per CSV Export request โโโ
# โโโ
# Default : 25000 โโโ
# โโโ โโโ
broker__module_webui__csv_export_cache__number_of_items_per_part 25000 |
| Clรฉ | Type | Valeur par dรฉfaut | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Entier | 1 | Dรฉfini le temps maximum de rรฉtention d'un cache d'export en RAM ( en minutes ). Ce temps est rรฉinitialisรฉ entre chaque requรชte. Si une partie d'un export est demandรฉe, on remet ร 0 le temps limite de rรฉtention de l'export. | |||||||
| Entier | 4000 | Dรฉfini la limite de RAM allouรฉe au cache d'export. Si cette limite est dรฉpassรฉe au moment d'un nouvel export, celui-ci ne peut รชtre effectuรฉ ( en mรฉgaoctets ). | |||||||
| Entier | 25000 | Dรฉfini le nombre d'รฉlรฉments Shinken par part ร envoyer lors de l'export CSV. Ceci dรฉfini plus globalement la taille des donnรฉes envoyรฉes au navigateur ร chaque requรชte de l'interface de Visualisation. |
Supervision du module WebUI
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ MONITORING INFORMATION IN WEBUI โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ If the loading of the configuration exceeds a given time, shinken-healthcheck and the check โโโ
# โโโ "Broker - $KEY$ - Module Visualisation UI" can warn you. โโโ
# โโโ This parameter ( in minutes ) allows you to define the time before the warning. โโโ
# โโโ โโโ
# broker__module_webui__loading_new_configuration__time_before_warning_if_load_is_long 10 |
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Entier | minute | 10 | Ce paramรจtre permet de dรฉfinir le temps avant que les outils de vรฉrifications ( Shinken-healthcheck et check "Broker - $KEY$ - Module Visualisation UI" ) considรจre que le temps de rรฉponse de la WebUI est trop long |
Options de notifications par dรฉfaut
Il est possible de choisir une notification sonore ainsi qu'une notification visuelle lorsqu'un รฉlรฉment change de statut ou de contexte.
Les valeurs de ces paramรจtres impacteront seulement les valeurs par dรฉfaut des interfaces suivantes :
- les listes ( Tous les รฉlรฉments / Problรจmes sources ),
- les portails.
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE DEFAULT NOTIFICATIONS OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโ Users Notification Parameters โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Configure users sound notification volume โโโ
# โโโ Format is in percent. โโโ
# โโโ
# ... : Min => 0 ( /!\ With this value, the sound notification is played, but is not audible. ) โโโ
# ... : Max => 100 โโโ
# โโโ Format is in percent. โโโ
# โโโ
# Default : 50 โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__users__sound__volume_percent 50
# โโโ Configure users visual blink notification โโโ
# โโโ Visual notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 1 => Enable ( Visual notification is played ) โโโ
# ... : 0 => Disable ( Visual notification is not played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__users__visual__blink__enabled 1
# โโโ The parameters below allow users to change default configuration of notification for webui interfaces โโโ
# โโโ
# ... : Lists ( All elements / Root problems ) โโโ
# ... : Hives โโโ
# โโโโโโโโโโโ Lists Notification Parameters โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Lists sound notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Sound notification in lists is not played ) โโโ
# ... : 1 => Enable ( Sound notification in lists is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__lists__sound__enabled 0
# โโโ Lists visual notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Visual notification in lists is not played ) โโโ
# ... : 1 => Enable ( Visual notification in lists is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__lists__visual__blink__enabled 0
# โโโโโโโโโโโ Hives Notification Parameters โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ Hives sound notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Sound notification in hives is not played ) โโโ
# ... : 1 => Enable ( Sound notification in hives is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__hives__sound__enabled 0
# โโโ Hives visual notification on element change ( Only for the status/context currently ) โโโ
# โโโ
# Default : 0 => Disable ( Visual notification in hives is not played ) โโโ
# ... : 1 => Enable ( Visual notification in hives is played ) โโโ
# โโโ โโโ
# broker__module_webui__default_notifications_settings__hives__visual__blink__enabled 0 |
Paramรฉtrage des notifications pour les utilisateurs
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Entier | % | 50 | Ce paramรจtre permet de dรฉfinir la valeur par dรฉfaut du volume des notifications sonores pour les utilisateurs dans toutes les interfaces de la webui et de ses modules. | |||||||
| Texte | --- | 1 | Permet d'activer/dรฉsactiver la notification visuelle qui sera jouรฉe lors d'une notificationpour les utilisateurs.
|
Paramรฉtrage des notifications pour les "Listes" ( Tous les รฉlรฉments / Problรจmes sources)
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | 0 | Permet d'activer/dรฉsactiver la notification sonore qui sera jouรฉe lors d'une notification dans les listes.
| |||||||
| Texte | --- | 0 | Permet d'activer/dรฉsactiver la notification visuelle qui sera jouรฉe lors d'une notification dans les listes.
|
Paramรฉtrage des notifications pour les "Portails"
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | 0 | Permet d'activer/dรฉsactiver la notification sonore qui sera jouรฉe lors d'une notification dans les portails.
| |||||||
| Texte | --- | 0 | Permet d'activer/dรฉsactiver la notification visuelle qui sera jouรฉe lors d'une notification dans les portails.
|
Changement du son jouรฉ
Il est possible de changer le son jouรฉ lors des notifications de changements (ย voir la page Changer le son des notifications utilisรฉ par l'Interface de visualisation ย )
Options pour les vues de l'interface
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ INTERFACE VIEWS OPTIONS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโโโโโโโโโโโโโโโโโโโโ History โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ This option allows you to set the maximum number of changes saved in database for each view. โโโ
# โโโ /!\ If you decrease the value, the extra history can be deleted on daemon startup. โโโ
# โโโ /!\ Minimum value is 10. โโโ
# Default : 100 โโโ
# โโโ
# broker__module_webui__views_history__nb_changes_kept__default_for_all 100
# โโโโโโโโโโโโโโโโโโโโโโโ Trash โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ 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 : 30 (days) โโโ
# โโโ
# broker__module_webui__views_trash__delay_before_deletion__default_for_all 30 |
Historique
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | 100 | Dรฉfinir le nombre de changements maximum enregistrรฉ en base. Les entrรฉes les plus anciennes seront donc supprimรฉes lorsque :
|
Corbeille
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | Jours | 30 | Dรฉfinir le nombre de jours pendant lesquels les vues sont sauvegardรฉes en base avant la suppression dรฉfinitive Les vues les plus anciennes seront donc supprimรฉes lorsque :
|
Surcharge de la configuration
| Code Block | ||||
|---|---|---|---|---|
| ||||
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ EXTENDED FILE CONFIGURATION โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ #
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ #
# โโโ The first file ( in /etc/shinken/_default ) contains the default values provided by Shinken. This file : โโโ
# โโโ will be erased each update/patch โโโ
# โโโ must be present โโโ
# โโโ must not be changed. โโโ
[OVERRIDE_FROM] /etc/shinken/_default/daemons/brokers/modules/webui.cfg
[OVERRIDE_FROM] /etc/shinken-user/configuration/daemons/brokers/modules/webui/webui_cfg_overload.cfg |
| Nom | Type | Unitรฉ | Dรฉfaut | Commentaire | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Texte | --- | Ce paramรจtre permet de surcharger les paramรจtres de la webui. Il contient les paramรจtres de l'interface, qui peuvent รชtre commun avec d'autres WebUI. Le premier fichier contient les valeurs livrรฉes par dรฉfaut par Shinken. Il sera รฉcrasรฉ et mis ร jour ร chaque mise ร jour et installation de patch. Il doit รชtre prรฉsent et non modifiรฉ. Ce paramรจtre peut รชtre utilisรฉ plusieurs fois pour ajouter plusieurs fichiers. |
| Warning | ||
|---|---|---|
| ||
Si une mรชme clรฉ est dรฉfinie dans webui.cfg et dans un fichier de surcharge, c'est la valeur dans le fichier de surcharge qui est conservรฉe. Si une mรชme clรฉ est dรฉfinie dans plusieurs fichiers de surcharge, c'est la valeur du dernier fichier de surcharge listรฉ dans webui.cfg qui est conservรฉe. |
Propriรฉtรฉs uniquement prรฉsentent dans le fichier de surcharge
Pour toutes les propriรฉtรฉs suivantes, l'explication est dans la page Surcharge des paramรจtres du module ( webui_cfg_overload.cfg )
| Nom | |||||||
|---|---|---|---|---|---|---|---|
| |||||||
| |||||||
| |||||||
| |||||||
| |||||||
|