Tâche #23285
Scénario #23991: Traitement express PNESR (26-28)
Mail quotidien ocsinventory-agent-pneedt
Description
Un mail quotidien est envoyé de :
Received: from scribe.etb1.lan (unknown [172.30.107.190])
Le contenu :
run-parts: /etc/cron.daily/ocsinventory-agent-pneedt exited with return code 1
En effet, si on installe le paquet et qu'on le désactive, la tâche cron est quand même lancée.
Associated revisions
Ajout de la dépendance sur libnet-snmp-perl.
Ref #23285
Ne pas installer de tâche cron pour l’agent.
Ref #23285
History
#1 Updated by Scrum Master almost 5 years ago
- Status changed from Nouveau to En cours
#2 Updated by Joël Cuissinat almost 5 years ago
- Description updated (diff)
- Assigned To set to Joël Cuissinat
#3 Updated by Joël Cuissinat almost 5 years ago
- Status changed from En cours to Nouveau
- Assigned To deleted (
Joël Cuissinat)
#4 Updated by Joël Cuissinat almost 5 years ago
- Description updated (diff)
- Parent task changed from #23161 to #23227
Personnellement, j'ajouterais un exit 0 à la fin du script /etc/cron.daily/ocsinventory-agent-pneedt
mais cela oblige à recompiler le paquet ocsinventory-agent-pneedt...
Vérifier également si il faut ajouter une dépendance sur le paquet libnet-snmp-perl :
root@scribe:~# /usr/bin/ocsinventory-agent [error] [snmp] Net::SNMP perl module is missing !! [error] [snmp] Humm my prerequisites are not OK...disabling module :( :( [error] Cannot establish communication : 500 Can't connect to ocsinventory-ng:80
#5 Updated by Emmanuel IHRY almost 5 years ago
- Parent task changed from #23227 to #23438
#6 Updated by Emmanuel IHRY almost 5 years ago
- Project changed from Distribution EOLE to PNE-SR
- Assigned To set to Thierry Bertrand
#7 Updated by Emmanuel IHRY almost 5 years ago
- Parent task changed from #23438 to #23499
#8 Updated by Thierry Bertrand almost 5 years ago
- Project changed from PNE-SR to Distribution EOLE
- Status changed from Nouveau to En cours
#9 Updated by Thierry Bertrand over 4 years ago
- Status changed from En cours to Nouveau
- Parent task changed from #23499 to #23670
#10 Updated by Thierry Bertrand over 4 years ago
- Assigned To changed from Thierry Bertrand to Benjamin Bohard
- Parent task changed from #23670 to #23991
#11 Updated by Benjamin Bohard over 4 years ago
Il est peut-être plus simple de supprimer purement et simplement le fichier cron du paquet ocsinvertory-agent-pneedt. Il est d’autant plus inutile qu’il lance la commande ocsinventory-agent sans aucune option contrairement à ce qui est fait dans le fichier cron installé par eole-esbl-ocs.
#12 Updated by Benjamin Bohard over 4 years ago
- Status changed from Nouveau to En cours
#13 Updated by Benjamin Bohard over 4 years ago
- Status changed from En cours to Résolu
#14 Updated by Benjamin Bohard over 4 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 3.0 to 0.5
Paquet de l’agent refait pour supprimer la tâche cron inutile et ajouter la dépendance manquante.
#15 Updated by Joël Cuissinat over 4 years ago
- eole-2.6.1-proposed-updates
- eole-2.6.2-proposed-updates
- eole-2.7-unstable
#16 Updated by Thierry Bertrand over 4 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 0.5 to 0.0
sur un eolebase 2.6.2 avec le paquet ocsinventory-agent-pneedt installé,
Maj-Auto -C -S test-eole.ac-dijon.fr -U test-eole.ac-dijon.fr ... root@eolebase262:~# apt-cache policy ocsinventory-agent-pneedt ocsinventory-agent-pneedt: Installé : 2.1.1-4 Candidat : 2.1.1-4 Table de version : *** 2.1.1-4 500 500 http://test-eole.ac-dijon.fr/eole eole-2.6.2-proposed-updates/main amd64 Packages 100 /var/lib/dpkg/status 2.1.1-3 500 500 http://test-eole.ac-dijon.fr/eole eole-2.6.2/main amd64 Packages root@eolebase262:~# apt-cache policy libnet-snmp-perl libnet-snmp-perl: Installé : 6.0.1-2 Candidat : 6.0.1-2 Table de version : *** 6.0.1-2 500 500 http://test-eole.ac-dijon.fr/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status