GithubHelp home page GithubHelp logo

Comments (5)

fbomj avatar fbomj commented on August 18, 2024

Bonjour,

Tu peux poster le stdout de la génration du fichier ocsinventory-agent.bin, stp?
Merci

from unixagent.

jaimepaslespubs avatar jaimepaslespubs commented on August 18, 2024

from unixagent.

jaimepaslespubs avatar jaimepaslespubs commented on August 18, 2024

Je viens de tester avec la dernière version de l'agent UNIX (2.3), le problème reste identique : Les plugins additionnels ne s'incorporent pas à l'executable standelone

Cependant avec la version 2.3, j'ai le message d'erreur suivant :
Missing right curly or square bracket at lib/Ocsinventory/Agent/Modules/Snmp/If_Mib.pm line 178, at end of line syntax error at lib/Ocsinventory/Agent/Modules/Snmp/If_Mib.pm line 178, at EOF Compilation failed in require. BEGIN failed--compilation aborted. Some modules are missing in your installation or failed to build, please install them first. -> Ocsinventory::Agent::Modules::Snmp::If_Mib

Il manque une accolade fermante } à la ligne 128, ce qui corrige ce message

J'ai aussi le message d'erreur suivant :

/usr/local/bin/pp: Packing ocsinventory-agent
/usr/local/bin/pp: Writing PAR on ocsinventory-agent.par
Could not get version from /root/Ocsinventory-Unix-Agent-2.3/lib/Ocsinventory/Agent/Modules/Snmp/3375.pm by executing:
 my $dummy = q#  Hide from _packages_inside()
    #; package Module::Metadata::_version::p2;
    use version;
    sub {
      local $VERSION;
          my $VERSION=$session->get_request ( -varbindlist => [ $snmp_sysProductVersion] );;
      return $VERSION if defined $VERSION;
      return $Module::Metadata::_version::p2::VERSION;
    };


The fatal error was: Can't call method "get_request" on an undefined value at (eval 31) line 6, <$handle> line 42.

 at /usr/local/share/perl5/Module/ScanDeps.pm line 542
/usr/local/bin/pp: Input file ocsinventory-agent.par was not found
Failed to generate ocsinventory-agent.bin!

Celui ci était déjà présent sur dans la version 2.1.1
La seule solution que j'ai trouvé est de supprimer la ligne suivante du fichier MANIFEST
/lib/Ocsinventory/Agent/Modules/Snmp/3375.pm
Comme je ne me sert pas du module SNMP, ce n'est pas génant.

Cependant cela bloquerait-il l'ajout des modules supplementaires ?

from unixagent.

jaimepaslespubs avatar jaimepaslespubs commented on August 18, 2024

Avez-vous une solution ?

from unixagent.

fbomj avatar fbomj commented on August 18, 2024

Bonjour,

Désolé pour la réponse très tardive, peux-tu tester https://github.com/OCSInventory-NG/Packager-for-Unix ? Tu dézippes l'archive de l'agent puis tu copies tes modules dans lib/Ocsinventory/Agent/Modules et tu recrées l'archive.
Merci pour ton retour d'info.
Cordialement
Frank

from unixagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.