shinken-monitoring / mod-webui

Shinken Web User Interface
GNU Affero General Public License v3.0
79 stars 71 forks source link

[BS3]Error with service group #130

Closed olivierHa closed 9 years ago

olivierHa commented 9 years ago

Servicegroup isn't working with branch bs3 (and shinken 2.4).

Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Shinken-2.4_rc4-py2.6.egg/shinken/webui/bottlewebui.py", line 686, in _handle return callback(*args) File "/usr/local/lib/python2.6/dist-packages/Shinken-2.4_rc4-py2.6.egg/shinken/webui/bottlewebui.py", line 1357, in wrapper rv = callback(_a, _ka) File "/var/lib/shinken/modules/webui/module.py", line 557, in lock_version return f(args) File "/usr/local/lib/python2.6/dist-packages/Shinken-2.4_rc4-py2.6.egg/shinken/webui/bottlewebui.py", line 2749, in wrapper return template(tpl_name, tplvars) File "/usr/local/lib/python2.6/dist-packages/Shinken-2.4_rc4-py2.6.egg/shinken/webui/bottlewebui.py", line 2723, in template return TEMPLATES[tpl].render(kwargs) File "/usr/local/lib/python2.6/dist-packages/Shinken-2.4_rc4-py2.6.egg/shinken/webui/bottlewebui.py", line 2695, in render self.execute(stdout, kwargs) File "/usr/local/lib/python2.6/dist-packages/Shinken-2.4_rc4-py2.6.egg/shinken/webui/bottlewebui.py", line 2681, in execute eval(self.co, env) File "/var/lib/shinken/modules/webui/plugins/groups/views/services-groups-overview.tpl", line 139, in NameError: name 'hUnreachable' is not defined

mohierf commented 9 years ago

I will try to reproduce the problem ... it seems that there are some missing lines in your message :;)

mayasd commented 9 years ago

Hi, I have same issue (Shinken 2.4). Traceback :

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/shinken/webui/bottlewebui.py", line 686, in _handle
    return callback(**args)
  File "/usr/local/lib/python2.7/dist-packages/shinken/webui/bottlewebui.py", line 1357, in wrapper
    rv = callback(*a, **ka)
  File "/var/lib/shinken/modules/webui/module.py", line 559, in lock_version
    return f(**args)
  File "/usr/local/lib/python2.7/dist-packages/shinken/webui/bottlewebui.py", line 2749, in wrapper
    return template(tpl_name, **tplvars)
  File "/usr/local/lib/python2.7/dist-packages/shinken/webui/bottlewebui.py", line 2723, in template
    return TEMPLATES[tpl].render(kwargs)
  File "/usr/local/lib/python2.7/dist-packages/shinken/webui/bottlewebui.py", line 2695, in render
    self.execute(stdout, kwargs)
  File "/usr/local/lib/python2.7/dist-packages/shinken/webui/bottlewebui.py", line 2681, in execute
    eval(self.co, env)
  File "/var/lib/shinken/modules/webui/plugins/groups/views/services-groups-overview.tpl", line 139, in <module>
    <span class="{{'font-warning' if hUnreachable > 0 else 'font-greyed'}}">
NameError: name 'hUnreachable' is not defined
mohierf commented 9 years ago

Did you copy all the Traceback logs ... it seems that there are missing lines at the end ?

mayasd commented 9 years ago

Argh...it's better now ;)

mohierf commented 9 years ago

Is it fixed ? If so, I do not understand why ... :/P

mayasd commented 9 years ago

Sorry, it's not fixed. Look at my first comment, traceback is complete now :)

mohierf commented 9 years ago

Sorry (also ...) I did not understood your comment ... ok, now I see where the problem should be. I will try to fix very soon ...

maethor commented 9 years ago

I think we can close this bug, because the line concerned have been removed.