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