Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: install of 2.0-RC

  1. #11
    Junior Member
    Join Date
    Jan 2014
    Posts
    23

    Re: install of 2.0-RC

    Had the same traceback as Vincent when I wanted to use the cli and fixed it in ~/.shinken.ini. Now I got the following message:

    Code:
    #> shinken install livestatus
    Traceback (most recent call last):
     File "/usr/local/bin/shinken", line 356, in <module>
      CLI = CLICommander(CONFIG)
     File "/usr/local/bin/shinken", line 142, in __init__
      self.load_cli_mods()
     File "/usr/local/bin/shinken", line 160, in load_cli_mods
      cli_mods_dirs = [os.path.join(cli_mods_dir, d) for d in os.listdir(cli_mods_dir) if os.path.isdir(os.path.join(cli_mods_dir, d))]
    OSError: [Errno 2] No such file or directory: '/var/lib/shinken/cli'
    #>
    In fact, any "shinken" command fails like this.

    When the directory "/var/lib/shinken/cli" is suppose to be created? (I installed Shinken 2.0rc7 on Debian Wheezy with "pip".)

    Regards
    Juergen

  2. #12
    Junior Member
    Join Date
    Feb 2014
    Posts
    8

    Re: install of 2.0-RC

    Hello ja, the rc8 (or master on github) seems better considering the cli of shinken but still (on a completly new system centos 6.5) :

    it seems using wrong BIN and ETC

    /etc/init.d/shinken start
    Starting scheduler:
    FAILED: did not found scheduler file (/etc/shinken-schedule[FAILED] you sure shinken-scheduler is installed?
    Starting poller: [FAILED]
    FAILED: did not found poller file (/etc/shinken-poller) ; a[FAILED]ure shinken-poller is installed?
    Starting reactionner: [FAILED]
    FAILED: did not found reactionner file (/etc/shinken-reactionner) ; are you sure shinken-reactionner is installed? [FAILED]
    Starting broker: [FAILED]
    FAILED: did not found broker file (/etc/shinken-broker) ; a[FAILED]ure shinken-broker is installed?
    Starting receiver: [FAILED]
    FAILED: did not found receiver file (/etc/shinken-receiver)[FAILED]ou sure shinken-receiver is installed?
    Starting arbiter: [FAILED]
    FAILED: did not found arbiter file (/etc/shinken-arbiter) ;[FAILED] sure shinken-arbiter is installed?
    [root@shiken1 init.d]#

  3. #13
    Junior Member
    Join Date
    Feb 2014
    Posts
    8

    Re: install of 2.0-RC

    solve my problem correcting the /etc/init.d/shinken
    ## Default paths:
    test "$BIN" || BIN=$(cd $curpath/../../usr/bin && pwd)

    sucess to run the script but the deamons die juster after ...

    so manually start broker for example,

    /usr/bin/python /usr/bin/shinken-broker -d -c /etc/shinken/shinken.cfg
    [1393466373] Critical : I got an unrecoverable error. I have to exit
    [1393466373] Critical : You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help
    [1393466373] Critical : Back trace of it: Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/Shinken-2.0_RC8-py2.6.egg/shinken/daemons/brokerdaemon.py", line 653, in main
    self.load_config_file()
    File "/usr/lib/python2.6/site-packages/Shinken-2.0_RC8-py2.6.egg/shinken/daemon.py", line 296, in load_config_file
    self.parse_config_file()
    File "/usr/lib/python2.6/site-packages/Shinken-2.0_RC8-py2.6.egg/shinken/daemon.py", line 706, in parse_config_file
    config.read(self.config_file)
    File "/usr/lib64/python2.6/ConfigParser.py", line 286, in read
    self._read(fp, filename)
    File "/usr/lib64/python2.6/ConfigParser.py", line 482, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
    MissingSectionHeaderError: File contains no section headers.
    file: /etc/shinken/shinken.cfg, line: 3
    'cfg_dir=commands\n'

    Traceback (most recent call last):
    File "/usr/bin/shinken-broker", line 5, in <module>
    pkg_resources.run_script('Shinken==2.0-RC8', 'shinken-broker&#039
    File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
    File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
    File "/usr/lib/python2.6/site-packages/Shinken-2.0_RC8-py2.6.egg/EGG-INFO/scripts/shinken-broker", line 85, in <module>
    daemon.main()
    File "/usr/lib/python2.6/site-packages/Shinken-2.0_RC8-py2.6.egg/shinken/daemons/brokerdaemon.py", line 653, in main
    self.load_config_file()
    File "/usr/lib/python2.6/site-packages/Shinken-2.0_RC8-py2.6.egg/shinken/daemon.py", line 296, in load_config_file
    self.parse_config_file()
    File "/usr/lib/python2.6/site-packages/Shinken-2.0_RC8-py2.6.egg/shinken/daemon.py", line 706, in parse_config_file
    config.read(self.config_file)
    File "/usr/lib64/python2.6/ConfigParser.py", line 286, in read
    self._read(fp, filename)
    File "/usr/lib64/python2.6/ConfigParser.py", line 482, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
    ConfigParser.MissingSectionHeaderError: File contains no section headers.
    file: /etc/shinken/shinken.cfg, line: 3
    'cfg_dir=commands\n'
    [root@shinken1 run]#




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

    Re: install of 2.0-RC

    Brokers take the brokerd.ini file, not the cfg

    No direct support by personal message. Please open a thread so everyone can see the solution

  5. #15
    Junior Member
    Join Date
    Jan 2014
    Posts
    23

    Re: install of 2.0-RC

    Hi Vincent,

    (1)
    [quote author=vgaudin link=topic=1642.msg6792#msg6792 date=1393531552]
    solve my problem correcting the /etc/init.d/shinken
    ## Default paths:
    test "$BIN" || BIN=$(cd $curpath/../../usr/bin && pwd)
    [/quote]

    I had the same issue and solved it via setting the variable "SHINKEN_DEFAULT_FILE" in "/etc/init.d/shinken" to "/etc/default/shinken". In that file are a lot of useful default definitions. In my opinion it could be sourced in the init script by default.

    (2)
    Nevertheless I still have problems with the shinken command line. I installed 2.0rc8 on a fresh Debian with "pip" and again "/var/lib/shinken/cli" is missing. Don't know, what to do here. Then I downloaded the current git master and tried to install it - again on a fresh Debian - as described in the README, but got the following error:

    Code:
    #> apt-get install python-pycurl
    ...
    #> apt-get install python-setuptools
    ...
    #> useradd --user-group shinken
    #> unzip master.zip
    #> python setup.py install
    Traceback (most recent call last):
     File "setup.py", line 68, in <module>
      (os.path.join(etc_root, 'default',),
    NameError: name 'etc_root' is not defined
    #>
    What did I miss here?

    Regards
    Juergen

  6. #16
    Junior Member
    Join Date
    Feb 2014
    Posts
    8

    Re: install of 2.0-RC

    better for me with rc11 and somes default config corrections path ....

    still not able to access to webui ....

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

    Re: install of 2.0-RC

    But in 2.0 webui and other modules are not installed by default, give a look at the shinken cli command, especially the search and install keywords
    No direct support by personal message. Please open a thread so everyone can see the solution

  8. #18
    Junior Member
    Join Date
    Feb 2014
    Posts
    8

    Re: install of 2.0-RC

    thks for the answer ;D

    but I have already done a : shinken webui install

    I have to do other "manips" ?

    the 7767 tcp port is not opened.
    and nothing in the logs.

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

    Re: install of 2.0-RC

    After the install you must add the webui definition into the broker daemon configuration. You will also need an auth module for webui (and so add it into its configuration file too), look at shinken search auth

    Then you will have webui ready to run
    No direct support by personal message. Please open a thread so everyone can see the solution

  10. #20
    Junior Member
    Join Date
    Feb 2014
    Posts
    8

    Re: install of 2.0-RC

    ok ! it's now working thks !

    no new feeling for me with the web interface.
    it's only my point of view but you will now have to really improve the human
    management tools so that shinken will be more easier discovered.

    what about skonf with the 2.0 ?

    Great Job ;D

    in the rc11 the libexec is really empty . is it normal ?

Posting Permissions

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