martinrusev/amon — Issue #42: Exception when changing to process_checks
Author: mjs7231
Created: 2012-01-07 05:05:32+00:00
State: open

Changing the string "mongo" to "apache" in my amon configuration causes the following stack trace on the Dashboard view:

Error 500 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado-2.1.1-py2.7.egg/tornado/web.py", line 954, in _execute getattr(self, self.request.method.lower())(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/tornado-2.1.1-py2.7.egg/tornado/web.py", line 1667, in wrapper return method(self, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/views/app.py", line 46, in get process_check_first=process_check_first, File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/views/base.py", line 114, in render rendered_template = jinja_render(template, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/template.py", line 324, in render return template.render(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render return self.environment.handle_exception(exc_info, True) File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/templates/dashboard.html", line 1, in top-level template code {% extends "base.html" %} File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/templates/base.html", line 32, in top-level template code {% block content %} File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/templates/dashboard.html", line 93, in block "content" File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/template.py", line 169, in progress_width value = clean_string(value) File "/usr/local/lib/python2.7/dist-packages/amon-0.7.0-py2.7.egg/amon/web/template.py", line 122, in clean_string extracted_value = value_regex.findall(variable) TypeError: expected string or buffer