Project

General

Profile

Tâche #15793

Scénario #15554: Traitement express (13-15)

Agent Zéphir 2.5.2 : erreur de stockage dans les base RRD pour la classe RRDAgent

Added by Fabrice Barconnière over 3 years ago. Updated over 3 years ago.

Status:
Fermé
Priority:
Normal
Start date:
04/06/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Remaining (hours):
0.0

Description

Erreur introduite dans un commit précédent :
zephir-client:6e65639e

@@ -590,7 +592,11 @@ class RRDAgent(Agent):
         # on ne prend que les mesures déclarées comme datasources
         rrd_values = {}
         for datasource in self.datasources:
-            rrd_values[datasource['name']] = measure.value[datasource['name']]
+            if measure.value is not None:
+                data = measure.value[datasource['name']]
+            else:
+                log.msg("/!\ measure return empty value: %s" % self.name)
+            rrd_values[datasource['name']] = None
         # update des bases rrd
         self.rrd.update(rrd_values, measure.get_date())

Associated revisions

Revision d7a1ab31 (diff)
Added by Fabrice Barconnière over 3 years ago

Correction du remplissage de la mesure dans la classe RRDAgent

ref #15793 @1h

History

#1 Updated by Fabrice Barconnière over 3 years ago

  • Status changed from Nouveau to En cours

#2 Updated by Fabrice Barconnière over 3 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 1.0 to 0.1

#3 Updated by Scrum Master over 3 years ago

  • Status changed from En cours to Résolu

#4 Updated by Klaas TJEBBES over 3 years ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.1 to 0.0

Also available in: Atom PDF