Results 1 to 4 of 4

Thread: Merge Discory with existing configuration

  1. #1

    Merge Discory with existing configuration

    Is that possible to merge new discovery with existing config file ?

    First, I run shinken-discovery -o some/dir

    I change one host (to add some specific conf)

    If I run the discovery again my change are lost

    I try to add cfg_dir/cfg_file in discovery.cfg to load existing conf but I always get :

    Code:
    Traceback (most recent call last):
     File "../bin/shinken-discovery", line 144, in <module>
      d = DiscoveryManager(cfg_input, macros, overwrite, runners, output_dir=outpu
     File "/usr/local/shinken/shinken/discovery/discoverymanager.py", line 345, in
      self.conf.is_correct()
     File "/usr/local/shinken/shinken/objects/config.py", line 1328, in is_correct
      if not cur.is_correct():
     File "/usr/local/shinken/shinken/objects/item.py", line 767, in is_correct
      if not i.is_correct():
     File "/usr/local/shinken/shinken/objects/host.py", line 449, in is_correct
      for c in cls.illegal_object_name_chars:
    AttributeError: type object 'Host' has no attribute 'illegal_object_name_chars'

  2. #2
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: Merge Discory with existing configuration

    Discovery do not merge data sorry.

    For this bug, I don't know where it can came from. Can you try with just one or two hosts in theses directory to see if it fails again?
    No direct support by personal message. Please open a thread so everyone can see the solution

  3. #3

    [SOLVED] Merge Discory with existing configuration

    I'm giving up for this because :

    - When I use the default discovery.cfg, all works fine
    - I addeed my hosts in discovery.cfg so that it can merge object from existing conf file (as this doesn't work) there's no need to change discovery.cfg


    Perhaps should be a good feature, isn't it ?

  4. #4
    Shinken project leader
    Join Date
    May 2011
    Location
    Bordeaux (France)
    Posts
    2,131

    Re: Merge Discory with existing configuration

    Why not, but from now the discovery module is not my priority, there still lot of work to do on WebUI before
    No direct support by personal message. Please open a thread so everyone can see the solution

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •