Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

problème remonté avec agent linux

Bonjour,

Je n'arrive pas à faire remonter les données d'une machine linux vers le serveur...

Avec la commande lancé sur le terminal :
ocsinventory-agent  --server http://192.168.0.12/ocsinventory
ça fonctionne.

mais avec le cron, ça ne fonctionne pas
dans les log du syslog , on voit bien que les tâches cron se lance mais pas de remonté sur le serveur.

si quelqu'un peut partager sa solution, s'il vous plaît ?

j'ai essayé aussi de lancer l'agent avec le daemon avec la commande :
ocsinventory-agent  --server http://192.168.0.12/ocsinventory -d
je trouve bien mon fichier pid dans /run mais pas de fichier ocsinventory-agent.cfg dans ma machine linux pour activer la ligne daemon=1.

dois-je créer ocsinventory-agent.cfg ? si oui, où ? Dans quel repertoire ? si vous avez un exemple de configuration ça serait sympa aussi =)

S'il vous plaît, aidez moi car je suis en manque de solution

in OCS Inventory NG agent for Unix by (440 points)
retagged by

2 Answers

0 votes
Bonjour

Comment l'agent a-t-il été installé ?
by (88.5k points)
0 votes

Bonjour,

l'installation s'est fait via le fichier 'Ocsinventory-Unix-Agent-2.8.1.tar'
et en suivant les étapes qui sont ici : https://github.com/OCSInventory-NG/UnixAgent

En attendant, J'ai trouvé une autre solution via apt-get et ça a fonctionné.

 j'ai fait :

apt-get install ocsinventory-agent
ocsinventory-agent --daemon
ocsinventory-agent // cette commande permet la remonté vers le serveur

et donc j'ai mis cette commande dans un fichier bash et je l'ai mis dans un cron

Seul soucis, lors de l'installation il faut qu'on appuie sur entrer sur http.

voilà =)

En attendant, si quelqu'un a la solution pour l'installation via "Ocsinventory-Unix-Agent-2.8.1.tar" ça serait pas de refus



 

by (440 points)
 
Powered by Question2Answer
...