Project

General

Profile

Tâche #26659

Scénario #26447: Traitement express MEN (5-7)

Message "État : Erreur : Au moins un certificat a expiré"

Added by Olivier FEBWIN over 4 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Start date:
02/05/2019
Due date:
% Done:

100%

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

Description

Message "État : Erreur : Au moins un certificat a expiré" alors qu'il reste quelques jours

Capture d’écran de 2019-02-05 15-24-57.png View (75.9 KB) Olivier FEBWIN, 02/05/2019 03:25 PM

Associated revisions

Revision 900bdde5 (diff)
Added by Fabrice Barconnière over 4 years ago

IPsec certificates Zéphir agent displayed wrong expiration status on certificates

ref #26659

History

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

  • Status changed from Nouveau to En attente d'informations
  • Assigned To set to Fabrice Barconnière

Sur un Sphynx 2.6.2 ?

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

ah non, c'est sur un Zéphir (version ?), mais c'est un Amon (version ?) qui remonte l'info ?

#3 Updated by Olivier FEBWIN over 4 years ago

Oups, oui pardon...
C'est un Amon 2.5.2

#4 Updated by Olivier FEBWIN over 4 years ago

re oups !
ah non, c'est un 2.4.2
donc coup vous pouvez fermer cette demande ;)

Désolé, je n'avais pas vu

#5 Updated by Fabrice Barconnière over 4 years ago

Il me semble qu'il y a quand même un problème sur cet agent Zéphir.
Tu peux tenter de modifier modifier le fichier /usr/lib/python2.7/dist-packages/zephir/monitor/agents/cert.py sur l'Amon concerné comme ceci et relancer le service z_stats pour voir si ça règle le problème :

@@ -62,7 +62,6 @@ class Cert(Agent):
                 data[subj] = expires
         res = []
         warn = self.warn_delay
-        err = self.err_delay
         status_err = False
         status_warn = False
         for sub, expires in data.items():
@@ -70,7 +69,7 @@ class Cert(Agent):
             expdate = util.parse_date(expires)
             delta = expdate - datetime.datetime.now()
             delay = "%d jours" % delta.days
-            if delta.days < err:
+            if delta.days < self.err_delay:
                 err = delta.days
                 status_err = True
             elif delta.days < warn:

Le résultat se verra après la synchro sur Zéphir. Lancer synchro_zephir sur Amon pour la forcer.

Si ça règle le problème, je ferai la correction depuis EOLE 2.5.1

#6 Updated by Fabrice Barconnière over 4 years ago

  • Tracker changed from Demande to Tâche
  • Status changed from En attente d'informations to Nouveau
  • Estimated time set to 2.00 h
  • Parent task set to #26447
  • Remaining (hours) set to 2.0

Corriger à partir de 2.5.2, l'agent a été recodé dans cette version mais il reste un petit bug.

#7 Updated by Scrum Master over 4 years ago

  • Status changed from Nouveau to En cours

#8 Updated by Fabrice Barconnière over 4 years ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.0
Correctif apporté pour les versions 2.5.2 et >.
Journaux modifiés dans mise à jour en préparation :

#9 Updated by Gilles Grandgérard over 4 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF