...
Rôle
The Le reactionner daemon issues notifications and launches event_handlers. This centralizes communication channels with external systems in order to simplify SMTP authorizations or RSS feed sources (only one for all hosts/services). There can be many reactionners for load-balancing and spare roles
Connexions with other daemons
The reactionner get it's configuration from the Arbiter daemon, on its 7769 port.
The configuration is the realm scheduler list where the reactionner will have to connect.
Mail server visibility
The reactionner launches notification plugins in order to notify contacts from host or checks alerts. Notification plugins are mainly based on the mail system, and so the reactionner server need a local MTA configured to relay emails to the contacts. The MTA configuration is up to the administrators.
Data
The reactionner get command from the schedulers.
It does not known about contacts objects. It only get commands to execute, and the commands are created by the schedulers
...
délivre les notifications et lance les gestionnaires d'événements. Cela permet de centraliser les canaux d'échange avec les systèmes externes afin de simplifier les autorisations SMTP ou l'alimentation des sources RSS (seulement un pour tous les hôtes/services). Il peut y avoir plusieurs reactionners pour du load-balancing ou un rôle de spare
Connexions avec les autres démons
Le reactionner récupère sa configuration de l'arbiter , sur son port 7769 .
Sa configuration vient de la liste du royaume du scheduler auquel le reactionner se connectera.
Visibilité du serveur mail
Le reactionner lance les plugins de notification afin de notifier les contacts sur les alertes. Les plugins de notification sont principalement basés sur le système mail, donc le reactionner a besoin d'une configuration MTA locale . Cette configuration est à la discrétion de l'administrateur système.
Données
Le reactionner reçoit les commandes des schedulers.
Il ne connait rien aux objets, il reçoit juste des commandes à exécuter (créées par les scheduler)
Résumé des connexions du reactionner
| Source | Destination | Port | ProtocolProtocole | Note |
|---|---|---|---|---|
| Reactionner | Schedulers | 7768 | HTTPS |
Variable Descriptions
| Property | Default | Description |
|---|---|---|
| reactionner_name | N/A | This variable is used to identify the *short name* of the reactionner which the data is associated withCette variable est utilisée pour identifier le nom raccourci du reactionner auquel les données sont attachées. |
| address | N/A | This directive is used to define the address from where the main arbier can reach this reactionner. This can be a DNS name or a IP address Cette directive est utilisée pour définir l'adresse d'où l'arbiter principal peut joindre le reactionner. elapeut être un nom DNS ou une adresse IP. |
| port | 7772 | This directive is used to define the TCP port used bu the daemonCette directive est utilisée pour définir le port TCP utilisé par ce démon . |
| spare | 0This variable is used to define if the reactionner must be managed as a spare one (will take the conf only if a master failed). The default value is *0* (master). | 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 | This variable is used to define the realm where the reactionner will be put. If none is selected, it will be assigned to the default oneCette 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 | This variable is used to define if the poller will take jobs from scheduler from the sub-realms of it's realmCette variable est utilisée pour définir si le poller acceptera les tâches du scheduler venant des sous-royaumes. |
| modules | N/A | This variable is used to define all modules that the reactionner will loadCette variable est utilisée pour définir tous les modules chargés par le reactionner. |
| reactionner_tags | None | This variable is used to define the checks the reactionner can take. If no reactionner_tags is defined, reactionner will take all untagued notifications and event handlers. If at least one tag is defined, it will take only the checks that are also taggued like it. By default, there is no reactionner_tag, so reactionner can take all untagued notification/event handlers (default). |
...
Exemple de définition
| Code Block |
|---|
define reactionner{
reactionner_name Main-reactionner
address node1.mydomain
port 7769
spare 0
realm All
manage_sub_realms 0 ; Does it take jobs from schedulers of sub-Realms?
min_workers 1 ; Starts with N processes (0 = 1 per CPU)
polling_interval 1 ; Get jobs from schedulers each 1 second
timeout 3 ; Ping timeout
data_timeout 120 ; Data send timeout
max_check_attempts 3 ; If ping fails N or more, then the node is dead
check_interval 60 ; Ping node every minutes
reactionner_tags tag1
modules module1,module2
} |
