Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Scroll Ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue


Panel
titleSommaire

Table of Contents
maxLevel3
stylenone




Introduction

Le module architecture-export permet

  • d'envoyer une description de l'architecture d'installation Shinken
  • de recevoir cette configuration ( ou celle d'une autre installation ) et d'en gรฉnรฉrer :
    • des cartes NagVis
    • des hรดtes Shinken qui seront envoyรฉs ร  leur tour au Synchronizer pour les superviser


Une description dรฉtaillรฉe de ce module, son utilitรฉ et son utilisation sont prรฉsentes dans les pages de documentations associรฉes : Visualiser l'architecture de son installation Shinken


Ci-dessous sont prรฉsentรฉes de maniรจre synthรฉtique les diffรฉrentes options de configuration de ce module, leur rรดle ainsi que leurs valeurs par dรฉfaut.

Activation du module

Le module architecture-export est un module qui peut รชtre activรฉ seulement sur le dรฉmon sur Arbiter.

  • L'activation du module s'effectue en ajoutant le nom de ce module dans le fichier de configuration de l'Arbiter.
  • Pour ce faire, il faut ouvrir le fichier de configuration du Arbiter ร  l'emplacement /etc/shinken/arbiters/ , et ajouter le nom de votre module de type "architecture-export".


Exemple : par dรฉfaut, nous livrons un module dont le nom est " architecture-export " :

Code Block
languagebash
define arbiter {
    [...]
    modules                   synchronizer-import, architecture-export
    [...]
}


Pour prendre en compte les changements de configuration, il faut redรฉmarrer l'Arbiter :

Code Block
service shinken-arbiter restart


Info

Pour que l'architecture-export gรฉnรจre des cartes, il faut que l'addon nagvis-shinken-architecture soit activรฉ ( voir HIDDEN - V02.08.01 - 001.0 - SEF-8161__ Configuration de la Visualisation de l'architecture )


Configuration

La configuration du module se trouve par dรฉfaut dans le fichier /etc/shinken/modules/architecture-export.cfg

  • Vous trouverez aussi systรฉmatiquement un exemple dans /etc/shinken-user-example/configuration/daemons/arbiters/modules/architecture-export/architecture-export.cfg

Exemple de fichier de configuration


Code Block
#================================================================================
# Architecture-Export
#================================================================================
# Daemons that can load this module:
#  - arbiter
# This module exports Shinken architecture to others architecture-export modules
# It also creates NagVis Maps for received architecture
#================================================================================

define module {

    # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    MODULE IDENTITY    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #

    # โ”€โ”€โ”€ Module name [ Must be unique ]                                                      [ MANDATORY ] โ”€โ”€โ”€
    # โ”€โ”€โ”€                                                                                                   โ”€โ”€โ”€
    module_name                                         architecture-export

    # โ”€โ”€โ”€ Module type [ Do not edit ]                                                         [ MANDATORY ] โ”€โ”€โ”€
    # โ”€โ”€โ”€                                                                                                   โ”€โ”€โ”€
    module_type                                         architecture_export

    # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    NAGVIS FILE PATH    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #

    # โ”€โ”€โ”€ Path of NagVis installation                                                                       โ”€โ”€โ”€
    # โ”€โ”€โ”€ Used to store configuration maps files and to update NagVis settings                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : /etc/shinken/external/nagvis                                                      โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    path                                                /etc/shinken/external/nagvis

    # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    MODULE OPTIONS    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #

    # โ”€โ”€โ”€ Base of URL used to display links in the Visualization UI                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Use Arbiter URL                                                                   โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # map_base_url                                        http://example.com/

    # โ”€โ”€โ”€ Architecture description recipients                                                               โ”€โ”€โ”€
    # โ”€โ”€โ”€ When the architecture of this Shinken installation changes ( realms and daemons configuration ),  โ”€โ”€โ”€
    # โ”€โ”€โ”€ and the arbiter is restarted, the architecture description will be sent to the following hosts.   โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : http://127.0.0.1:7780 ( locally )                                                 โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    send_my_architecture_to_recipients                  http://127.0.0.1:7780

    # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    MODULE COMMUNICATION    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #

    # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  Listening socket configuration  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 

    # โ”€โ”€โ”€ This module opens a listening socket on which other Shinken installations                         โ”€โ”€โ”€
    # โ”€โ”€โ”€ will send their architecture description.                                                         โ”€โ”€โ”€
    # โ”€โ”€โ”€ Network interface used for the listening socket ( 0.0.0.0 = all interfaces )                      โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : 0.0.0.0                                                                           โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    host                                                0.0.0.0

    # โ”€โ”€โ”€ Port to use for the listening socket                                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : 7780                                                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    port                                                7780

    # โ”€โ”€โ”€ Protocol to use for the listening socket                                                          โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           ...     : Enable  => 1 ( Use HTTPS )                                                        โ”€โ”€โ”€
    #           Default : Disable => 0 ( Use HTTP )                                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    use_ssl                                             0

    # โ”€โ”€โ”€ SSL Certificate to use for the listening socket ( if HTTPS )                                      โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : /etc/shinken/certs/server.cert                                                    โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    ssl_cert                                            /etc/shinken/certs/server.cert

    # โ”€โ”€โ”€ SSL Key to use for the listening socket ( if HTTPS )                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : /etc/shinken/certs/server.key                                                     โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    ssl_key                                             /etc/shinken/certs/server.key

    # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  Connection with the listener-shinken  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 

    # โ”€โ”€โ”€ Connection parameters for the module to communicate with the listener-shinken                     โ”€โ”€โ”€
    # โ”€โ”€โ”€ ( used to create hosts for maps )                                                                 โ”€โ”€โ”€
    # โ”€โ”€โ”€ Protocol used by listener-shinken                                                                 โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           ...     : Enable  => 1 ( Use HTTPS )                                                        โ”€โ”€โ”€
    #           Default : Disable => 0 ( Use HTTP )                                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # listener_use_ssl                                    0

    # โ”€โ”€โ”€ Listener-shinken configured login                                                                 โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Shinken                                                                           โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # listener_login                                      login

    # โ”€โ”€โ”€ Listener-shinken configured password                                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Default password generated for listener-shinken                                   โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # listener_password                                   pass

    # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    MAPS CREATION PARAMETERS    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #

    # โ”€โ”€โ”€ When an architecture description is received by the module,                                       โ”€โ”€โ”€
    # โ”€โ”€โ”€ it creates corresponding hosts and NagVis maps.                                                   โ”€โ”€โ”€
    # โ”€โ”€โ”€ Name with which this Shinken installation will be identified in the NagVis maps                   โ”€โ”€โ”€
    # โ”€โ”€โ”€ The following characters are forbidden in the architecture name: ~!$%^&*"'|<>?,()=/+              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Shinken                                                                           โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    architecture_name                                   Shinken

    #                                                                                                       โ”€โ”€โ”€
    #           ...     : Sort order for realms in the NagVis maps                                          โ”€โ”€โ”€
    #           ...     : sort_by_name => Sort realms by alphabetic order                                   โ”€โ”€โ”€
    #           Default : sort_by_size => Sort realms by size (on the map)                                  โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # map_realm_layout                                    sort_by_size

    # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    BROKER CONNECTION PARAMETERS    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #

    # โ”€โ”€โ”€ These parameters are used to allow NagVis to communicate with the Broker and modules you want     โ”€โ”€โ”€
    # โ”€โ”€โ”€ Name of the Broker holding the modules you want NagVis to communicate with                        โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : broker-master                                                                     โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_name broker-master

    # โ”€โ”€โ”€ Name of the Livestatus module you want NagVis to communicate with to retrieve objects information โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Livestatus                                                                        โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_livestatus Livestatus

    # โ”€โ”€โ”€ Type of the target WebUI you want to communicate with                                             โ”€โ”€โ”€
    # โ”€โ”€โ”€ This allow redirection when clicking on object on the maps                                        โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : module => Use a WebUI module configuration to get it's address                    โ”€โ”€โ”€
    #           ...     : url    => Use a URL ( the WebUI address is behind a reverse proxy or use an DNS   โ”€โ”€โ”€
    #                               address )                                                               โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_webui_communication_type module

    # โ”€โ”€โ”€ Targeted WebUI to communicate with                                                                โ”€โ”€โ”€
    # โ”€โ”€โ”€ If previous parameter is set to "module", this must be a WebUI name                               โ”€โ”€โ”€
    # โ”€โ”€โ”€ If previous parameter is set to "url", this must be a URL                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : WebUI                                                                             โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_webui_target WebUI

}


Dรฉtails des sections composant le fichier de configuration

Identification du module

Il est possible de dรฉfinir l'identitรฉ du module de type architecture-export .

NomTypeUnitรฉDรฉfautCommentaire


Code Block
module_name 


Texte--- architecture-export

Nous vous conseillons de choisir un nom en fonction de l'utilisation du module pour que votre configuration soit simple ร  maintenir.

Doit รชtre unique.


Code Block
module_typeย 


Texte--- architecture-export Ne peut รชtre modifiรฉ.


Chemin d'accรจs ร  NagVis


Code Block
languagejs
	... 

 ย  	# โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    NAGVIS FILE PATH    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #
 
    # โ”€โ”€โ”€ Path of NagVis installation                                                                       โ”€โ”€โ”€
    # โ”€โ”€โ”€ Used to store configuration maps files and to update NagVis settings                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : /etc/shinken/external/nagvis                                                      โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    path                                                /etc/shinken/external/nagvis ย 

	...


Afin de modifier les paramรจtres de NagVis et de sauvegarder les fichiers de cartes gรฉnรฉrรฉes, le module doit connaรฎtre le chemin d'accรจs vers le NagVis utilisรฉ

NomTypeUnitรฉDรฉfautCommentaire


Code Block
path


Texte--- /etc/shinken/external/nagvis Chemin d'accรจs vers l'installation NagVis utilisรฉe par le module.


Options de fonctionnement du module


Code Block
languagejs
	... 

 ย  ย # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    MODULE OPTIONS    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #
 
    # โ”€โ”€โ”€ Base of URL used to display links in the Visualization UI                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Use Arbiter URL                                                                   โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # map_base_url                                        http://example.com/
 
    # โ”€โ”€โ”€ Architecture description recipients                                                               โ”€โ”€โ”€
    # โ”€โ”€โ”€ When the architecture of this Shinken installation changes ( realms and daemons configuration ),  โ”€โ”€โ”€
    # โ”€โ”€โ”€ and the arbiter is restarted, the architecture description will be sent to the following hosts.   โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : http://127.0.0.1:7780 ( locally )                                                 โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    send_my_architecture_to_recipients                  http://127.0.0.1:7780 ย 

	...


Le module gรฉnรจre des cartes et envois son architecture ร  d'autres modules du mรชme type. Il est possible de spรฉcifier l'URL d'accรจs aux cartes, mais aussi la liste des modules ร  qui envoyer sa propre architecture

NomTypeUnitรฉDรฉfautCommentaire


Code Block
map_base_url


Texte--- Url de l'Arbiter

URL d'accรจs aux cartes gรฉnรฉrรฉes par le module. L'URL sera utilisรฉe pour les liens dans l'interface de Visualisation.


Code Block
send_my_architecture_to_recipients


Texte--- http://127.0.0.1:7780 Liste des adresses des modules architecture-export vers lesquels envoyer son architecture. Les adresses doivent รชtre sรฉparรฉes par des virgules.


Communication du module

Le module doit รฉcouter vers l'extรฉrieur pour recevoir des architectures, mais il doit aussi communiquer avec le listener-shinken du Synchronizer pour lui envoyer les hรดtes gรฉnรฉrรฉs pour ses cartes. Ces paramรจtres de communications sont modifiables pour correspondre ร  chaque architecture.

Configuration des connexions entrantes


Code Block
languagejs
	... 

 ย  ย # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  Listening socket configuration  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 
    # โ”€โ”€โ”€ This module opens a listening socket on which other Shinken installations                         โ”€โ”€โ”€
    # โ”€โ”€โ”€ will send their architecture description.                                                         โ”€โ”€โ”€
    # โ”€โ”€โ”€ Network interface used for the listening socket ( 0.0.0.0 = all interfaces )                      โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : 0.0.0.0                                                                           โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    host                                                0.0.0.0
 
    # โ”€โ”€โ”€ Port to use for the listening socket                                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : 7780                                                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    port                                                7780
 
    # โ”€โ”€โ”€ Protocol to use for the listening socket                                                          โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           ...     : Enable  => 1 ( Use HTTPS )                                                        โ”€โ”€โ”€
    #           Default : Disable => 0 ( Use HTTP )                                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    use_ssl                                             0
 
    # โ”€โ”€โ”€ SSL Certificate to use for the listening socket ( if HTTPS )                                      โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : /etc/shinken/certs/server.cert                                                    โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    ssl_cert                                            /etc/shinken/certs/server.cert
 
    # โ”€โ”€โ”€ SSL Key to use for the listening socket ( if HTTPS )                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : /etc/shinken/certs/server.key                                                     โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    ssl_key                                             /etc/shinken/certs/server.key 

	...



NomTypeUnitรฉDรฉfautCommentaire


Code Block
host


Texte--- 0.0.0.0

Interface rรฉseau sur lequel le module รฉcoutera.

Remarque : 0.0.0.0 correspond ร  toutes les interfaces.


Code Block
port


Texte---

7780

Port d'รฉcoute du module.


Code Block
use_ssl


Boolรฉen--- 0

Paramรจtre activant le mode SSL ( HTTPS ).

Valeurs possibles :

  • 0
  • 1


Code Block
ssl_cert


Texte--- /etc/shinken/certs/server.cert Chemin d'accรจs vers le certificat SSL ร  utiliser ( si use_ssl est ร  1 ).


Code Block
ssl_key


Texte--- /etc/shinken/certs/server.key

Chemin d'accรจs vers la clรฉ SSL ร  utiliser ( si use_ssl est ร  1 ).


Communication avec le listener-shinken


Code Block
languagejs
	... 

 ย  ย # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  Connection with the listener-shinken  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 
    # โ”€โ”€โ”€ Connection parameters for the module to communicate with the listener-shinken                     โ”€โ”€โ”€
    # โ”€โ”€โ”€ ( used to create hosts for maps )                                                                 โ”€โ”€โ”€
    # โ”€โ”€โ”€ Protocol used by listener-shinken                                                                 โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           ...     : Enable  => 1 ( Use HTTPS )                                                        โ”€โ”€โ”€
    #           Default : Disable => 0 ( Use HTTP )                                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # listener_use_ssl                                    0
 
    # โ”€โ”€โ”€ Listener-shinken configured login                                                                 โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Shinken                                                                           โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # listener_login                                      login
 
    # โ”€โ”€โ”€ Listener-shinken configured password                                                              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Default password generated for listener-shinken                                   โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # listener_password                                   pass

	...



NomTypeUnitรฉDรฉfautCommentaire


Code Block
listener_use_ssl


Texte--- 0

Paramรจtre activant le mode SSL pour la communication avec le listener-shinken ( HTTPS ).

Valeurs possibles :

  • 0
  • 1


Code Block
listener_login


Texte--- Shinken

Nom d'utilisateur ร  utiliser pour communiquer avec le listener-shinken.


Code Block
listener_password


Texte--- mot de passe gรฉnรฉrรฉ ร  l'installation

Mot de passe ร  utiliser pour communiquer avec le listener-shinken.


Paramรจtres de crรฉation de cartes


Code Block
languagejs
	... 

 ย  ย # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    MAPS CREATION PARAMETERS    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #
 
    # โ”€โ”€โ”€ When an architecture description is received by the module,                                       โ”€โ”€โ”€
    # โ”€โ”€โ”€ it creates corresponding hosts and NagVis maps.                                                   โ”€โ”€โ”€
    # โ”€โ”€โ”€ Name with which this Shinken installation will be identified in the NagVis maps                   โ”€โ”€โ”€
    # โ”€โ”€โ”€ The following characters are forbidden in the architecture name: ~!$%^&*"'|<>?,()=/+              โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Shinken                                                                           โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    architecture_name                                   Shinken
 
    #                                                                                                       โ”€โ”€โ”€
    #           ...     : Sort order for realms in the NagVis maps                                          โ”€โ”€โ”€
    #           ...     : sort_by_name => Sort realms by alphabetic order                                   โ”€โ”€โ”€
    #           Default : sort_by_size => Sort realms by size (on the map)                                  โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # map_realm_layout                                    sort_by_size

	...


Il est possible de paramรฉtrer certains aspects de la crรฉation des cartes NagVis


NomTypeUnitรฉDรฉfautCommentaire


Code Block
architecture_name


Texte--- Shinken

Nom de l'architecture de l'installation Shinken oรน se situe le module.

Ce nom sera affichรฉ sur les cartes NagVis et les hรดtes gรฉnรฉrรฉs


Code Block
map_realm_layout


Texte--- sort_by_size

Ordre dans lequel les royaumes sont affichรฉs sur les cartes NagVis.
Valeurs possibles :

  • sort_by_name ( Ordre alphabรฉtique )
  • sort_by_size ( Ordonnรฉ par taille sur la carte )


Paramรจtre de communication avec le Broker et ses modules


Code Block
languagejs
	...
 ย  ย 
    # โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” #
    # โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€    BROKER CONNECTION PARAMETERS    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”‚ #
    # โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ #

    # โ”€โ”€โ”€ These parameters are used to allow NagVis to communicate with the Broker and modules you want     โ”€โ”€โ”€
    # โ”€โ”€โ”€ Name of the Broker holding the modules you want NagVis to communicate with                        โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : broker-master                                                                     โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_name broker-master

    # โ”€โ”€โ”€ Name of the Livestatus module you want NagVis to communicate with to retrieve objects information โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : Livestatus                                                                        โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_livestatus Livestatus

    # โ”€โ”€โ”€ Type of the target WebUI you want to communicate with                                             โ”€โ”€โ”€
    # โ”€โ”€โ”€ This allow redirection when clicking on object on the maps                                        โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : module => Use a WebUI module configuration to get it's address                    โ”€โ”€โ”€
    #           ...     : url    => Use a URL ( the WebUI address is behind a reverse proxy or use an DNS   โ”€โ”€โ”€
    #                               address )                                                               โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_webui_communication_type module

    # โ”€โ”€โ”€ Targeted WebUI to communicate with                                                                โ”€โ”€โ”€
    # โ”€โ”€โ”€ If previous parameter is set to "module", this must be a WebUI name                               โ”€โ”€โ”€
    # โ”€โ”€โ”€ If previous parameter is set to "url", this must be a URL                                         โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    #           Default : WebUI                                                                             โ”€โ”€โ”€
    #                                                                                                       โ”€โ”€โ”€
    # architecture_export__broker_connection__broker_webui_target WebUI

 ย  ...


Afin d'avoir les statuts des hรดtes sur les cartes NagVis, mais aussi d'รชtre correctement redirigรฉ vers une WebUI lors du clic sur l'un d'entres eux, il existe des paramรจtres pour rendre la communication entre NagVis et Shinken possible

NomTypeUnitรฉDรฉfautCommentaire


Code Block
architecture_export__broker_connection__broker_name


Texte--- broker-master

Nom du Broker sur lequel sont les modules avec lesquels nous allons communiquer


Code Block
architecture_export__broker_connection__broker_livestatus


Texte--- Livestatus Nom du module Livestatus avec lequel NagVis va communiquer pour afficher les statuts des hรดtes sur ses cartes


Code Block
architecture_export__broker_connection__broker_webui_communication_type


Texte--- module

Type de communication avec la WebUI souhaitรฉe. Ce paramรจtre est utilisรฉ pour la redirection lorsqu'on clique sur les liens de la carte.

Valeurs possibles :

  • module ( si on souhaite spรฉcifier le nom d'un module WebUI pour obtenir son adresse )
  • URL ( si on souhaite renseigner une URL : l'adresse de la WebUI est derriรจre un reverse proxy ou utilise une adresse DNS )


Code Block
architecture_export__broker_connection__broker_webui_target


Texte--- WebUI

WebUI avec laquelle communiquer.
Si le paramรจtre prรฉcรฉdent est ร  module celui-ci doit รชtre le nom d'un module WebUI

Sinon, ce doit รชtre une URL redirigeant vers un module WebUI


Envoi de la description de l'architecture

L'envoi de la description de l'architecture aux destinataires choisis ( paramรจtre send_my_architecture_to_recipients ) est dรฉclenchรฉ au dรฉmarrage du module architecture-export, c'est-ร -dire au dรฉmarrage du dรฉmon Arbiter.

Il est รฉgalement possible de dรฉclencher cet envoi manuellement, sans avoir ร  redรฉmarrer le dรฉmon Arbiter, en envoyant une requรชte HTTP POST ร  l'URL suivante :ย 

Code Block
adresse_arbiter:7780/v1/architecture/send


Par exemple, avec cURL :

Code Block
curl -v -X POST adresse_arbiter:7780/v1/architecture/send