Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1670 Errors when installing openATTIC on a plain Ubuntu xenial
  3. OP-1686

Xenial: Internal Server Error when requesting Nagios Services

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.16
    • Fix Version/s: None
    • Component/s: Backend, Monitoring: Nagios
    • Labels:

      Description

      Internal Server Error: {u'kwargs': {}, u'args': (), u'request': <rest_framework.request.Request object at 0x7f24137d2450>, u'view': <nagios.restapi.ServiceProxyViewSet object at 0x7f24137d2150>}
      Traceback (most recent call last):
        File "/usr/lib/python2.7/dist-packages/rest_framework/views.py", line 463, in dispatch
          response = handler(request, *args, **kwargs)
        File "/usr/share/openattic/rest/multinode/handlers.py", line 64, in list
          results.append(serializer.data)
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 503, in data
          ret = super(Serializer, self).data
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 239, in data
          self._data = self.to_representation(self.instance)
        File "/usr/lib/python2.7/dist-packages/rest_framework/serializers.py", line 472, in to_representation
          ret[field.field_name] = field.to_representation(attribute)
        File "/usr/lib/python2.7/dist-packages/rest_framework/fields.py", line 1645, in to_representation
          return method(value)
        File "/usr/share/openattic/nagios/restapi.py", line 67, in get_performance_data
          return obj.perfdata
        File "/usr/share/openattic/nagios/models.py", line 89, in perfdata
          perfdata = self.state.get("performance_data", "").strip()
        File "/usr/share/openattic/nagios/models.py", line 84, in state
          raise KeyError("The status for this service could not be found in Nagios's status cache.")
      KeyError: "The status for this service could not be found in Nagios's status cache."
      
      GET /openattic/api/services
      HTTP 500 Internal Server Error
      Allow: GET, POST, HEAD, OPTIONS
      Content-Type: application/json
      Vary: Accept
      
      {
          "detail": "\"The status for this service could not be found in Nagios's status cache.\""
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            swagner Sebastian Wagner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: