Pour quoi est-il fait ? | |||
Vous pouvez définir un tagger qui va utiliser automatiquement le nom pour ajouter des templates aux objets détectés. Le nom commun du tagger est regexp-tags et peut charger de nouvelles règles de nommage | |||
Comment définir une règle Regexp | |||
Pour chaque règle Regexp , vous devrez définir un nouveau module et l'ajouter dans la configuration du tagger regexp-tags . Vous pouvez copier l'exemple | |||
What Host name based tagger is done for | |||
You can define a tagger that will use the Host name to automatically add host templates to detected objects. The common tagger named regexp-tags can load new ip range rules with modules. | |||
How to define a new Regexp rule | |||
For each Regexp rule, you will need to define a new module and add it in the regexp-tags tagger configuration. You can copy the sample module /etc/shinken/modules/sync-regexp-tag.cfg into a new file name and edit it: dans un nouveau fichier pour le modifier
For each Regexp rule, you will need to define a new module and add it in the regexp-tags tagger configuration. You can copy the sample module /etc/shinken/modules/sync-regexp-tag.cfg into a new file name and edit it:
The properties are: | |||
Les propriétés sont :
Vous devez alors éditer le fichier rexexp-tags pour lier le nouveau module dans le fichier Then you must edit the ip-tags tagger definition to link your new module in the file /etc/shinken/taggers/regexp-tags.cfg: | |||
Then you must restart your shinken-synchronizer daemon.Vous devez ensuite redémarrer le synchronizer
| |||