Contexte

Il peut être nécessaire de changer le nom des propriétés affichées dans l'interface de "Configuration" et de "Visualisation.

  • Ce renommage peut être défini dans le fichier /etc/shinken-user/configuration/monitoring_policy/elements/elements_default_properties /default_properties_configuration.cfg.
    • ( Un fichier d'exemple est disponible : /etc/shinken-user-example/configuration/monitoring_policy/elements/elements_default_properties/default_properties_configuration.cfg. )
  • S'agissant d'un texte, il doit être traduit dans les langues couvertes par Shinken.
  • Le mot-clé pour définir les noms de propriété est [DISPLAY_TEXT: LANG ], où "LANG" peut valoir :
    • fr ⇒ pour le français
    • en ⇒ pour l'anglais


Remarque : seules les propriétés suivantes sont modifiables :

  • URL externe ( notes_url ) :
    • Le nom de la propriété.
  • Impact métier ( business_impact ) :
    • Les valeurs de la propriété.


Redémarrer l'Arbiter et le Synchronizer pour que les changements soient pris en compte.

Propriété URL externe ( notes_url )

Il est possible de changer le nom d'affichage de la propriété "notes_url" ( visible par défaut sous le nom "Url externe" ). En effet, selon l'utilisation, un texte plus explicite que le nom par défaut peut s'avérer nécessaire.

Exemple de modification

Afficher " Documentation " au lieu de " Url externe" .

Affichage dans l'interface de configuration

Affichage dans l'interface de visualisation

Format d'écriture

Pour modifier les valeurs d'affichage de la propriété "URL externe", décommenter et modifier les lignes DISPLAY_TEXT.

Exemple :

    # ┌───────────────────────────────────────────────────────────┐ #
    # │ ─────────     NOTES_URL LABEL CONFIGURATION    ────────── │ #
    # └───────────────────────────────────────────────────────────┘ #  

    # ───  /!\ Only alphanumeric characters, spaces, hyphens, apostrophes and underscores are allowed /!\ ───
    # ───  /!\      Only 80 characters allowed      /!\           ───  
    #[DISPLAY_TEXT:fr] notes_url=Url externe
    #[DISPLAY_TEXT:en] notes_url=External URL
    # ┌───────────────────────────────────────────────────────────┐ #
    # │ ─────────     NOTES_URL LABEL CONFIGURATION    ────────── │ #
    # └───────────────────────────────────────────────────────────┘ #  

    # ───  /!\ Only alphanumeric characters, spaces, hyphens, apostrophes and underscores are allowed /!\ ───
    # ───  /!\      Only 80 characters allowed      /!\           ───  
    [DISPLAY_TEXT:fr] notes_url=Documentation
    [DISPLAY_TEXT:en] notes_url=Documentation

Propriété Impact métier ( business_impact )

Il est possible de modifier le nom affiché de chaque valeur de la propriété "business_impact" ( Impact Métier dans l'interface ).

Exemple de modification

Afficher "Plomb, Fer, Bronze, Argent, Or, Platine" au lieu de "*, **, ***, $$$$, $$$$$, $$$$$$".

Affichage dans l'interface de configuration

Affichage dans l'interface de visualisation


Format d'écriture

Pour modifier les valeurs d'affichage de la propriété "Impact métier", décommenter et modifier les lignes PROPERTY_VALUE__DISPLAY_TEXT.

Exemple :

   # ┌───────────────────────────────────────────────────────────┐ #
   # │ ──    BUSINESS IMPACT LABEL CONFIGURATION PER VALUE    ── │ #
   # └───────────────────────────────────────────────────────────┘ #  

   # ───  /!\ Only alphanumeric characters, spaces and _-*$!? are allowed /!\ ───
   # ───  /!\      Only 80 characters allowed      /!\           ───

   # ─────────────────────────  fr  ────────────────────────────── #

   #[PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_0=*
   #[PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_1=**
   #[PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_2=***
   #[PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_3=$$$$
   #[PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_4=$$$$$
   #[PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_5=$$$$$$

   # ─────────────────────────  en  ────────────────────────────── #

   #[PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_0=*
   #[PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_1=**
   #[PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_2=***
   #[PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_3=$$$$
   #[PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_4=$$$$$
   #[PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_5=$$$$$$ 
   # ┌───────────────────────────────────────────────────────────┐ #
   # │ ──    BUSINESS IMPACT LABEL CONFIGURATION PER VALUE    ── │ #
   # └───────────────────────────────────────────────────────────┘ #  

   # ───  /!\ Only alphanumeric characters, spaces and _-*$!? are allowed /!\ ───
   # ───  /!\      Only 80 characters allowed      /!\           ───

   # ─────────────────────────  fr  ────────────────────────────── #

   [PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_0=Plomb
   [PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_1=Fer
   [PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_2=Bronze
   [PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_3=Argent
   [PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_4=Or
   [PROPERTY_VALUE__DISPLAY_TEXT:fr] business_impact_5=Platine

   # ─────────────────────────  en  ────────────────────────────── #

   [PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_0=Plumb
   [PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_1=Iron
   [PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_2=Bronze
   [PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_3=Silver
   [PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_4=Gold
   [PROPERTY_VALUE__DISPLAY_TEXT:en] business_impact_5=Platinium