Results 1 to 6 of 6

Thread: Impossible d'accéder aux stats et logs

  1. #1

    Impossible d'accéder aux stats et logs

    Hi,
    I can't access to logs and alert on webui, I have this error :

    On logs :

    Code:
    Error: 500 Internal Server Error
    
    Sorry, the requested URL 'http://mon.serveur.net/logs' caused an error:
    
    Internal Server Error
    
    Exception:
    
    TypeError("get_ui_logs() got an unexpected keyword argument 'elt'",)
    
    Traceback:
    
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 862, in _handle
        return route.call(**args)
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1732, in wrapper
        rv = callback(*a, **ka)
      File "/var/lib/shinken/modules/webui2/module.py", line 509, in lock_version
        return f(**args)
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3615, in wrapper
        result = func(*args, **kwargs)
      File "/var/lib/shinken/modules/webui2/plugins/logs/logs.py", line 185, in get_global_history
        logs = _get_logs(elt=None, filters={'type': {'$in': params['logs_type']}}, range_start=range_start, range_end=range_end)
      File "/var/lib/shinken/modules/webui2/plugins/logs/logs.py", line 45, in _get_logs
        return app.logs_module.get_ui_logs(*args, **kwargs)
      File "/var/lib/shinken/modules/webui2/submodules/logs.py", line 40, in get_ui_logs
        return self.module.get_ui_logs(*args, **kwargs)
    TypeError: get_ui_logs() got an unexpected keyword argument 'elt'
    On Alerts :

    Code:
    Error: 500 Internal Server Error
    
    Sorry, the requested URL 'http://mon.serveur.net/stats' caused an error:
    
    Internal Server Error
    
    Exception:
    
    ZeroDivisionError('float division by zero',)
    
    Traceback:
    
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 862, in _handle
        return route.call(**args)
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1732, in wrapper
        rv = callback(*a, **ka)
      File "/var/lib/shinken/modules/webui2/module.py", line 509, in lock_version
        return f(**args)
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3619, in wrapper
        return template(tpl_name, **tplvars)
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3595, in template
        return TEMPLATES[tplid].render(kwargs)
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3399, in render
        self.execute(stdout, env)
      File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 3386, in execute
        eval(self.co, env)
      File "/var/lib/shinken/modules/webui2/plugins/stats/views/stats.tpl", line 13, in <module>
        <tr><td>{{ other }} ({{ round((other / float(total)) * 100, 1) }}%)</td><td><strong>Others</strong></td></tr>
    ZeroDivisionError: float division by zero

    Thanks by advance

  2. #2
    Junior Member
    Join Date
    Nov 2017
    Posts
    1
    I've got exactly the same problem. Do you have any clue on a solution or a reason?
    I installed the latest from shinken.io with some packs, mongodb, webui2, and graphite2

  3. #3
    Quote Originally Posted by pfevre View Post
    I've got exactly the same problem. Do you have any clue on a solution or a reason?
    I installed the latest from shinken.io with some packs, mongodb, webui2, and graphite2
    No sorry, I have no idea

  4. #4
    Junior Member
    Join Date
    Dec 2017
    Posts
    2
    Same issue here :/

  5. #5
    Quote Originally Posted by KamZ View Post
    Same issue here :/
    Someone have created 2 issues about this problem :

    https://github.com/shinken-monitorin...bui/issues/605

    https://github.com/shinken-monitorin...bui/issues/606

    Maybe Github is better than this forum to get an answer

  6. #6
    Junior Member
    Join Date
    Dec 2017
    Posts
    2
    Thanks, will track those threads too!

Posting Permissions

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