Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Make by tools (01.00.01) - action=clean_macro_parameter
Scroll Ignore
scroll-viewporttrue
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbookhtmltruefalse
scroll-eclipsehelpdocbooktrue
scroll-epubeclipsehelptrue
scroll-htmlepubtrue
Panel
titleSommaire

Table of Contents
stylenone

Contexte

Il est possible de modifier la valeur par défaut des éléments.

  • Les modifications se trouvent dans le dossier suivant : /etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/
    • ( des fichiers d'exemple sont disponibles dans le dossier suivant : /etc/shinken-user-example/configuration/monitoring_policy/elements/elements_default_properties/
.
    • )
  • Chaque fichier à l'intérieur de ce répertoire correspond à un type d'élément.

Anchor
elementDefaultPropertiesViewContacts
elementDefaultPropertiesViewContacts

Pour les Hôtes / Modèles d'hôtes et Clusters / Modèles de cluster

Les valeurs par défaut des hôtes se configurent dans le fichier suivant : /etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/hosts_default_properties.cfg

( un fichier d'exemple est disponible ici : /etc/shinken-user-example/configuration/monitoring_policy/elements/elements_default_properties/hosts_default_properties.cfg )

Les valeurs modifiables sont Les valeurs modifiables sont :

  • view_contacts ( les contacts qui peuvent voir l'élément ),
  • element_visibility_on_not_authenticated_view ( Les éléments sont par défaut visibles ou pas sur les vues ne demandant pas d'authentification )
    • Indisponible dans les modèles d'hôtes
    )
    • et dans les modèles de cluster ,
  • sla_warning_threshold ( seuil de warning pour les SLAs par défaut ),
  • sla_critical_threshold ( seuil de critique pour les SLAs par défaut ),
  • threshold_display ( Texte par défaut de l'Affichage des seuils ).
  • business_impact ( Impact métier ).
  • template_can_be_applied_by_si_admin ( Modèle applicable par les administrateurs de SI ? ).

Voici son contenu :


Code Block
languagejs
themebashConfluence
title/etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/hosts_default_properties.cfg
#**********************************************************************************
#  This file contains DEFAULT VALUES for host properties that can be changed.
#
#**********************************************************************************

#==================================================================================
#======== default_view_contacts ========= 

                                                       # Describe which user will have access to hosts without view_contacts property 
                                                       # (template inheritance included)
                                                       #
                                                       # Two values are possible:
                                                       #   - nobody      : (default) only shinken admin will be able to view then
                                                       #   - everyone    : all users will be able to see them
#[DEFAULT:host] view_contacts = nobody

#======== default_element_visibility_on_not_authenticated_view =========

                                                        # Describe visibility on not authenticated view for all hosts and clusters
                                                        #
                                                        # Two values are possible:
                                                        #   - 0     		: (default) all hosts and clusters are hidden in not authenticated view
                                                        #   - 1    		 : all hosts and clusters are visible in not authenticated view

#[DEFAULT:host] element_visibility_on_not_authenticated_view = 0

#======== default sla threshold =========

#[DEFAULT:host] sla_warning_threshold  = 99.0
#[DEFAULT:host] sla_critical_threshold = 97.0
#==================================================================================
    

Pour les Utilisateurs / Modèles d'utilisateurs



#======== default_thresholds_display =========

                                                       # Displays and describes the thresholds used by the command to compute the status (OK, WARNING or CRITICAL).
#[DEFAULT:host] thresholds_display =
#==================================================================================

#======== default business_impact =========
# This property is used to set the importance we gave to this check for the business:
#       values possible:
#           0               : *      ( lower importance )
#           1               : **
#           2               : ***
#           3               : $$$$
#           4               : $$$$$
#           5               : $$$$$$ ( higher importance )

#[DEFAULT:host] business_impact = 2
#==================================================================================

#======== default_template_can_be_applied_by_si_admin =========
                                                        # Possible values:
                                                        #   - 1 : (default) Host templates can be applied by the SI administrator.
                                                        #   - 0 : Host templates cannot be applied by the SI administrator.
                                                        #
#[DEFAULT:host] template_can_be_applied_by_si_admin = 1
#==================================================================================

   

Pour les Checks / Modèles de checks

Les valeurs par défaut des checks se configurent dans le fichier suivant : /etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/checks_default_properties.cfg

  • ( un fichier d'exemple est disponible ici : /etc/shinken-user-example/configuration/monitoring_policy/elements/elements_default_properties/checks_default_properties.cfg )

Les valeurs modifiables sont :

  • threshold_display ( Texte par défaut de l'Affichage des seuils ).
  • business_impact ( Impact métier ).


Voici son contenu :

Code Block
languagejs
themeConfluence
title/etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/checks_default_properties.cfg
#**********************************************************************************
#  This file contains DEFAULT VALUES for check properties that can be changed.
#
#**********************************************************************************

#==================================================================================
#======== default thresholds_display =========
# Displays and describes the thresholds used by the command to compute the status (OK, WARNING or CRITICAL).

#[DEFAULT:check] thresholds_display =


#======== default business_impact =========
# This property is used to set the importance we gave to this check for the business:
#       values possible:
#           0               : *      ( lower importance )
#           1               : **
#           2               : ***
#           3               : $$$$
#           4               : $$$$$
#           5               : $$$$$$ ( higher importance )
#           same_as_parent  : Same as its parents ( host or cluster )

#[DEFAULT:check] business_impact = same_as_parent
#==================================================================================

  

Pour les Utilisateurs / Modèles d'utilisateurs

Les valeurs par défaut des contacts se configurent dans le fichier suivant : /etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/contacts_default_properties.cfg

  • ( un fichier d'exemple est disponible ici : /etc/shinken-user-example/configuration/monitoring_policy/elements/elements_default_properties/contacts_default_properties.cfg )

Les valeurs modifiables sont :

  • Autorisations sur l'UI de Visualisation :
    • Action possible sur les éléments :
      • acl_make_downtime,
      • acl_make_acknowledge,
      • acl_force_result_check,
      • acl_force_retry_check,
      • acl_show_external_url,
      • acl_acknowledge__automatic_deletion_condition__user_can_choose.
    • Historique et SLA :
      • acl_in_tab_history.

    • Gestion des favoris :
      • acl_share_private,
      • acl_share_group,
      • acl_share_everybody.

    • Météo des services : 
      • acl__service_weather__owned__rights
      • acl__service_weather__owned__nb_max_user_can_own 
      • acl__service_weather__non_owned__rights 


  • Autorisations sur l'UI de Configuration :

    • Sur l'essai des checks :
      • acl_try_check_on_poller,
      • acl_try_check_on_synchronizer.

    • Gestions de cookies
      • authentication_cookie_validity_duration

    • Affichage des seuils
      • user__rights__property_permission__thresholds_display__can_edit


    • Edition des clusters
      • acl__can_edit__clusters



Voici son contenu :


Code Block
languagejs
themeConfluence
title/etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/contacts_default_properties.cfg
#**********************************************************************************
#  This file contains DEFAULT VALUES for contact properties.
#
#**********************************************************************************

#==================================================================================
# - tab Generic
#==================================================================================
# - Authentication
#==================================================================================
#======== authentication_cookie_validity_duration =========
# This property is used to define the authentication validity time
# unit : Minute, min value : 5 , max value : 5256000
# Default value : 5256000 ( 10 years )
# preconized value : 1440 ( 24h )
#[DEFAULT:contact] authentication_cookie_validity_duration = 1440

#==================================================================================
# - tab authorizations
#==================================================================================
# - UI Configuration
#==================================================================================
#======================= ELEMENTS EDITION =========================================
#======== acl__can_edit__clusters =========
# Only for SI administrator.
# Shinken Administrator always have all the rights.

# Possible values:
#   - 1 : SI administrator can edit Clusters.
#   - 0 : (default) SI administrator cannot edit Clusters.
#[DEFAULT:contact] acl__can_edit__clusters = 1

#======================= TRY CHECK =========================================
#======== acl_try_check_on_poller =========
# This property is used to authorize the user to try check on production platform.
# Possible values:
#   - 1 : (default) enable.
#   - 0 : disable.
#[DEFAULT:contact] acl_try_check_on_poller = 1
#======== acl_try_check_on_synchronizer =========
# This property is used to authorize the user to try check on configuration platform.
# Possible values:
#   - 1 : (default) enable.
#   - 0 : disable.
#[DEFAULT:contact] acl_try_check_on_synchronizer = 1

#======================= THRESHOLD =========================================
#======== user__rights__property_permission__thresholds_display__can_edit =========
# This property is used to define if the user can edit the thresholds display on an Host, cluster, check.
# Possible values:
#   - 1 : (default) enable.
#   - 0 : disable.
#[DEFAULT:contact] user__rights__property_permission__thresholds_display__can_edit = 1

#======================= VIEWS =========================================
#======== acl_change_element_visibility_on_not_authenticated_view =========
# This property is used to set if the user is allowed to change the property "element_visibility_on_not_authenticated_view" in the user rights of the elements
# in the user rights of the elements
# Possible values:
#   - nobody                            : Nobody will be allowed to change the property "element_visibility_on_not_authenticated_view"
#   - everybody                         : Everybody will be allowed to change the property "element_visibility_on_not_authenticated_view"
#   - is_admin_shinken                  : (default) Only shinken administrators (is_admin=1) will be allowed to change the property
#                                         "element_visibility_on_not_authenticated_view"

#[DEFAULT:contact] acl_change_element_visibility_on_not_authenticated_view = is_admin_shinken





#

Les valeurs par défaut des contacts se configurent dans le fichier suivant : /etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/ contacts_default_properties.cfg

Les valeurs modifiables sont :

  • Autorisations sur l'UI de Visualisation
    • Action possible sur les éléments:
      • acl_make_downtime
      • acl_make_acknowledge
      • acl_force_result_check
      • acl_force_retry_check
      • acl_show_external_url
    • Historique et SLA:
      • acl_in_tab_history
    • Gestion des favoris:
      • acl_share_private
      • acl_share_group
      • acl_share_everybody
  • Autorisations sur l'UI de Configuration:
    • Sur l'essaie des checks
      • acl_try_check_on_poller
      • acl_try_check_on_synchronizer
Voici son contenu:
Code Block
languagebash
title/etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/contacts_default_properties.cfg
#**********************************************************************************
#  This file contains DEFAULT VALUES for contact properties.
#
#**********************************************************************************

#==================================================================================
# This property is used to authorize the contact to make a downtime in visualisation interface
# Possible values are [0 : disable] / [1 : enable]
#[DEFAULT:contact] acl_make_downtime = 1

# This property is used to authorize the contact to make a acknowledge in visualisation interface
# Possible values are [0 : disable] / [1 : enable]
#[DEFAULT:contact] acl_make_acknowledge = 1

# This property is used to authorize the contact to force a check result in visualisation interface
# Possible values are [0 : disable] / [1 : enable]
#[DEFAULT:contact] acl_force_result_check = 1

===============================
# - UI Visualisation
#==================================================================================


#======================= ACTIONS =========================================
#======== acl_make_downtime =========
# This property is used to authorize the contact to askmake immediate launch of the checka downtime in visualisation interface
# Possible values are [0 : disable] / [1 : enable]:
#   - 1 : (default) enable.
#   - 0 : disable.
#[DEFAULT:contact] acl_forcemake_retry_checkdowntime = 1

#================================================================ acl_make_acknowledge ==================

#================================================================
# This property is used to authorize the contact to make a acknowledge in visualisation interface
# Possible values:
#   - 1 : (default) enable.
#   - 0 : disable.
#[DEFAULT:contact] acl_make_acknowledge = 1

#========= acl_force_result_check =========

# This property is used to authorize the usercontact to force trya check result onin productionvisualisation platform.interface
# Possible values are [:
#   - 1 : (default) enable.
#   - 0 : disable.
#[DEFAULT:contact] / [1 : enable]
#[DEFAULT:contact] acl_try_check_on_poller = 1

 acl_force_result_check = 1

#======== acl_force_retry_check =========
# This property is used to authorize the usercontact to try ask immediate launch of the check onin configurationvisualisation platform.interface
# Possible values are [0 : disable] / [1 : enable]:
#   - 1 : (default) enable.
#   - 0 : disable.
#[DEFAULT:contact] acl_force_tryretry_check_on_synchronizer = 1


#======================= HISTORY / SLA =========================================
#========= acl_in_tab_history =========

# This propertiesproperty is used to controlset thewhat userto accessdisplay ofin thehistory sharetab in visualisationvisualization interface.
# Possible values:
# are all /- nonehistory_sla / read, create, organize, modify, delete
#[DEFAULT:contact] acl_share_private = all
#[DEFAULT:contact] acl_share_group = all: (default)
#   - history
#   - sla
#[DEFAULT:contact] acl_in_sharetab_everybodyhistory = allhistory_sla

#======================= URL =========================================
#======== acl_show_external_url ==========

# This property is used to set what to display in history tab in visualization interface is used to set if the user is allowed to see the links (URL) on the supervision page.
# Possible values:
#   - 1 : (default) enable.
# Possible values are- history_sla0 / history / sla: disable.
#[DEFAULT:contact] acl_show_in_tab_history = history_sla    

#external_url = 1

#======================= FAVORITE =========================================
#======== acl_share_private =========
#======== acl_share_group =========
#======== acl_share_everybody =========

# This property is used to set if the user is allowed to change the property "element_visibility_on_not_authenticated_view" inproperties is used to control the user rightsaccess of the elements
#share in the user rights of the elementsvisualisation interface.
# SeveralPossible possibilitiesvalues:
#   - nobody                            : Nobody will be allowed to change the property "element_visibility_on_not_authenticated_view"all : (default)
#   - none
#   - everybodyread
#   - create
#   - organize
#   - modify
#   - delete
#[DEFAULT:contact] acl_share_private = all
#[DEFAULT:contact] acl_share_group     : Everybody will be allowed to change the property "element_visibility_on_not_authenticated_view"
#   - is_admin_shinken                  : (default) Only shinken administrators (is_admin=1) will be allowed to change the property
#                                         "element_visibility_on_not_authenticated_view"

#[DEFAULT:contact] acl_change_element_visibility_on_not_authenticated_view = is_admin_shinken  

#======================================================================= all
#[DEFAULT:contact] acl_share_everybody = all

#======================= WEATHER =========================================
#======== acl__service_weather__owned__rights =========
# This property is used to set if the user is allowed to create modify and manage his weather
# Possible values:
#   - all
#   - none : (default)
#   - create
#   - modify
#   - manage

#[DEFAULT:contact] acl__service_weather__owned__rights = none  

#======== acl__service_weather__owned__nb_max_user_can_own ============

# This property isallows usedyou to set if the user is allowed to see the links (URL) on the supervision page specify the maximum number of service weather a user can have.
# This property is implemented because published weather reports are calculated at regular intervals, and not limiting their number can impact performance.
# Possible values:
# are [0 :- disable]Integer /between [10 :and enable]20
# [DEFAULT:contact] acl_show_external_url = 1

#==================================================================================

Pour les propriétés

Les valeurs par défaut des propriétés se configurent dans le fichier suivant : /etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties /default_properties_configuration.cfg

Les valeurs modifiables sont :

  • Nom d'affichage de la propriété
    • notes_url
Voici son contenu :
Code Block
languagejs
title/etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties/default_properties_configuration.cfg
#**********************************************************************************
#  This file contains DEFAULT VALUES for properties configuration.
#
#**********************************************************************************

#=================== acl__service_weather__owned__nb_max_user_can_own = 3  

#======== acl__service_weather__non_owned__rights =========
# This property is used to give a user rights to modify weather that they see but do not own.
# Possible values:
#   - all
#   - none : (default)
#   - copy
#   - transfer_of_ownership
#   - delete
#   - restore
#   - permanent_delete

#[DEFAULT:contact] acl__service_weather__non_owned__rights = none

#======================= CONTACTS TEMPLATES ========================================
#======== notes_url label configuration =========
#======== /!\ Only alphanumeric characters allowed /!\default_template_can_be_applied_by_si_admin =========
#======== /!\   Possible values:
#   - Only1 80: characters allowed(default) enable.
#   - 0  /!\ =========
[display_text_fr] notes_url=Lien vers la documentation
[display_text_en] notes_url=Documentation links: disable.

#[DEFAULT:contact] template_can_be_applied_by_si_admin = 1
#==================================================================================