Got lost installing icinga2 / graphite

graphite

#1

Hello erverybody,

I have installed icinga2 on SLES12 and it is running fine. But I need grafical output.
I tried to install Django, Graphite-web, Whisper and now I’m totally lost.

Is there any Installation-guide for SLES12?

i+ | graphite-web | Paket | 0.9.12-2.1 | noarch | (Systempakete)
i+ | python-Django | Paket | 1.8.4-2.3 | noarch | (Systempakete)
i+ | python-django-tagging | Paket | 0.3.1-4.1 | noarch | (Systempakete)
i+ | python-whisper | Paket | 1.1.4-1.1 | noarch | (Systempakete)
i+ | whisper | Paket | 0.9.12-2.1 | x86_64 | (Systempakete)
i+ | icinga2 | Paket | 2.10.1-1.icinga | x86_64 | (Systempakete)
i+ | icinga2-bin | Paket | 2.10.1-1.icinga | x86_64 | (Systempakete)
i+ | icinga2-common | Paket | 2.10.1-1.icinga | x86_64 | (Systempakete)
i+ | icinga2-ido-mysql | Paket | 2.10.1-1.icinga | x86_64 | (Systempakete)
i+ | icingacli | Paket | 2.6.1-1.icinga | noarch | (Systempakete)
i+ | icingaweb2 | Paket | 2.6.1-1.icinga | noarch | (Systempakete)
i+ | icingaweb2-common | Paket | 2.6.1-1.icinga noarch | (Systempakete)
i+ | icingaweb2-vendor-HTMLPurifier | Paket | 1:2.6.1-1.icinga noarch | (Systempakete)
i+ | icingaweb2-vendor-JShrink | Paket | 2.6.1-1.icinga | noarch | (Systempakete)
i+ | icingaweb2-vendor-Parsedown Paket | 2.6.1-1.icinga | noarch | (Systempakete)
i+ | icingaweb2-vendor-dompdf Paket | 2.6.1-1.icinga | noarch | (Systempakete)
i+ | icingaweb2-vendor-lessphp Paket | 2.6.1-1.icinga | noarch | (Systempakete)
i+ | icingaweb2-vendor-zf1 | Paket | 2.6.1-1.icinga | noarch | (Systempakete)
i+ | php-Icinga | Paket | 2.6.1-1.icinga | noarch | (Systempakete)

Output of /var/log/graphite/graphite-web-error.log:

mod_wsgi (pid=798): Target WSGI script ‘/usr/share/graphite/graphite-web.wsgi’ cannot be loaded as Python module.
[wsgi:error] [pid 798] [client 127.0.0.1:46116] mod_wsgi (pid=798): Exception occurred processing WSGI script ‘/usr/share/graphite/graphite-web.wsgi’.
[wsgi:error] [pid 798] [client 127.0.0.1:46116] Traceback (most recent call last):
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/share/graphite/graphite-web.wsgi”, line 16, in
[wsgi:error] [pid 798] [client 127.0.0.1:46116] import graphite.metrics.search
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/graphite/metrics/search.py”, line 6, in
[wsgi:error] [pid 798] [client 127.0.0.1:46116] from graphite.storage import is_pattern, match_entries
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/graphite/storage.py”, line 7, in
[wsgi:error] [pid 798] [client 127.0.0.1:46116] from graphite.remote_storage import RemoteStore
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/graphite/remote_storage.py”, line 8, in
[wsgi:error] [pid 798] [client 127.0.0.1:46116] from graphite.util import unpickle
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/graphite/util.py”, line 79, in
[wsgi:error] [pid 798] [client 127.0.0.1:46116] defaultProfile = Profile.objects.get(user=defaultUser)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/manager.py”, line 127, in manager_method
[wsgi:error] [pid 798] [client 127.0.0.1:46116] return getattr(self.get_queryset(), name)(*args, **kwargs)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/query.py”, line 325, in get
[wsgi:error] [pid 798] [client 127.0.0.1:46116] clone = self.filter(*args, **kwargs)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/query.py”, line 679, in filter
[wsgi:error] [pid 798] [client 127.0.0.1:46116] return self._filter_or_exclude(False, *args, **kwargs)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/query.py”, line 697, in _filter_or_exclude
[wsgi:error] [pid 798] [client 127.0.0.1:46116] clone.query.add_q(Q(*args, **kwargs))
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/sql/query.py”, line 1309, in add_q
[wsgi:error] [pid 798] [client 127.0.0.1:46116] clause, require_inner = self._add_q(where_part, self.used_aliases)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/sql/query.py”, line 1337, in _add_q
[wsgi:error] [pid 798] [client 127.0.0.1:46116] allow_joins=allow_joins, split_subq=split_subq,
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/sql/query.py”, line 1149, in build_filter
[wsgi:error] [pid 798] [client 127.0.0.1:46116] lookups, parts, reffed_expression = self.solve_lookup_type(arg)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/sql/query.py”, line 1035, in solve_lookup_type
[wsgi:error] [pid 798] [client 127.0.0.1:46116] _, field, _, lookup_parts = self.names_to_path(lookup_splitted, self.get_meta())
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/sql/query.py”, line 1372, in names_to_path
[wsgi:error] [pid 798] [client 127.0.0.1:46116] if field.is_relation and not field.related_model:
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/utils/functional.py”, line 60, in get
[wsgi:error] [pid 798] [client 127.0.0.1:46116] res = instance.dict[self.name] = self.func(instance)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/db/models/fields/related.py”, line 110, in related_model
[wsgi:error] [pid 798] [client 127.0.0.1:46116] apps.check_models_ready()
[wsgi:error] [pid 798] [client 127.0.0.1:46116] File “/usr/lib/python2.7/site-packages/django/apps/registry.py”, line 131, in check_models_ready
[wsgi:error] [pid 798] [client 127.0.0.1:46116] raise AppRegistryNotReady(“Models aren’t loaded yet.”)
[wsgi:error] [pid 798] [client 127.0.0.1:46116] AppRegistryNotReady: Models aren’t loaded yet.

Strange output in webbrowser:
http://1.2.3.4/icingaweb2/monitoring/host/show?host=Switch1#!/icingaweb2/graphite?graphite_url=http%3A%2F%2F1.2.3.4%2Frender%3F%26target%3Dicinga2.Switch1.host.hostalive.perfdata.rta.value%26source%3D0%26width%3D800%26height%3D700%26colorList%3D049BAF%2CEE1D00%2C04B06E%2C0446B0%2C871E10%2CCB315D%2CB06904%2CB0049C%26lineMode%3Dconnected%26areaMode%3Dall%26areaAlpha%3D0.1&graphite_iframe_w=800px&graphite_iframe_h=700px

“Serverfehler”

Thank you for any advise!