...
| Property | Default | Description |
|---|---|---|
| reactionner_name | N/A | Cette variable est utilisée pour identifier le nom raccourci du reactionner auquel les données sont attachées. |
| address | N/A | Cette directive est utilisée pour définir l'adresse d'où l'arbiter principal peut joindre le reactionner. Cela peut être un nom DNS ou une adresse IP. |
| port | 7769 | Cette directive est utilisée pour définir le port TCP utilisé par ce démon . |
| spare | 0 | Cette variable est utilisée pour définir si le reactionner doit être géré en tant que spare (ne chargera la configuration que si le maître tombe) La valeur par défaut est *0* |
| realm | N/A | Cette variable définie dans quel royaume sera le reactionner. Si aucun n'est sélectionné, il sera assigné à celui par défaut. |
| manage_sub_realms | 1 | Cette variable est utilisée pour définir si le poller acceptera les tâches du scheduler venant des sous-royaumes. |
| modules | N/A | Cette variable est utilisée pour définir tous les modules chargés par le reactionner. |
| reactionner_tags | None | Cette variable est utilisée pour définir les checks que peut lancer le reactionner. Si il n'y a aucun reactionner_tags spécifié, il prendra tous les checks non qualifiés.
|
Exemple de définition
Dans le répertoire /etc/shinken/reactionners/, voici un exemple de définition qui permet la définition du reactionner (à placer dans un fichier CFG) :
| Code Block |
|---|
#=============================================================================== # REACTIONNER #=============================================================================== # Description: The reactionner is responsible for: # - Executing notification actions # - Executing event handler actions #=============================================================================== define reactionner { #======== Daemon name and address ========= # Daemon name. Must be unique reactionner_name Main-reactionner # IP/fqdn of this daemon (note: you MUST change it by the real ip/fqdn of this server) address node1.mydomain # Port (HTTP/HTTPS) exposed by this daemon port 7769 # 0 = use HTTP, 1 = use HTTPS use_ssl spare 0 #======== Daemon realmperformance sizing ========= # Number of worker process to launch. 0 = 1 per AllCPU manage_sub_realms min_workers 0 ; Does1 it take jobs from# schedulersNumber of sub-Realms? min_workers maximum commands a worker is allowed to launch in the same time processes_by_worker 256 # How 1 ; Starts with N processes (0 = 1 per CPU) many seconds to wait between the poller to get jobs from the scheduler polling_interval 1 ; Get jobs from schedulers each 1 second timeout #======== Daemon connection timeout and down state limit ========= # timeout: how many seconds to consider a node don't answer timeout 3 ; Ping# data_timeout: how many second to consider a configuration transfert to be failed # because the network brandwith is too small. data_timeout 120 ; Data send timeout # max_check_attempts: how many fail check to consider this daemon as DEAD max_check_attempts 3 ; If ping fails# NCheck orthis more,daemon thenevery theX nodeseconds is dead check_interval 60 ; Ping node every minutes reactionner_tags tag1 modules module1,module2 } #======== Modules to enable for this daemon ========= # Available: None for this daemon modules #======== Realm and architecture settings ========= # Realm to set this daemon into realm All # manage_sub_realms 1 = take data from the daemon realm and its sub realms # 0 = take data only from the daemon realm manage_sub_realms 1 # Reactionner tags are managed tags. The hosts, checks and commands can have specific tags, and # this reactionner will only take them if the element tag is list in the reactionner # Reserved tag name: None = untaggued element (default value) #reactionner_tags None # passive: 0 = reactionner will connect to the scheduler to take/returs jobs # 1 = scheduler will connect to this reactionner to push/take back jobs passive 0 # spare: 0 = this reactionner is always active # 1 = this reactionner will be activated by the arbiter is another reactionner is dead spare 0 #======== Enable or not this daemon ========= # 1 = is enabled, o = is disabled enabled 1 } |