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.

Make standalone Agent => Error about "$VERSION"

Hello,

i would like to build a "standalone-standalone" Agent for Linux.

Try to build it with Ubuntu 14.04 and Debian Wheezy...i got on both the same error.

I have installed all Perl Modules as discribed in wiki and it seems to work. But i got an error when I try to start building with "standalone.sh". :-(

################################################################

 sh ./tools/standalone.sh
WARNINGS: Very experimental tool
/usr/bin/pp: Packing ocsinventory-agent
/usr/bin/pp: Writing PAR on ocsinventory-agent.par
Could not get version from /root/Ocsinventory-Unix-Agent-2.1.1/lib/Ocsinventory/Agent/Modules/Snmp/3375.pm by executing:
BEGIN { my $dummy = q#  Hide from _packages_inside()
    #; package Module::Metadata::_version::p2;
    use version;
    no strict;

      $vsub = sub {
        local $VERSION;
        $VERSION=undef;
          my $VERSION=$session->get_request ( -varbindlist => [ $snmp_sysProductVersion] );;
        $VERSION
      };
  }

The fatal error was: Can't call method "get_request" on an undefined value at (eval 16) line 9, <GEN185> line 45.

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

################################################################

 

I didn´t find any solution for this and i´m a little frustrated..:-(

Hope anyone has an idea to fix this problem. I´ll need a standalone Agent version because I can´t install Perl on every system.

 

Thanks and regards

Fox
in OCS Inventory NG agent for Unix by (160 points)

2 Answers

0 votes
Hi Fox,

 

I'm using an unofficial agent for Linux, found on:

https://github.com/jackburton79/agent

It only does hardware inventory, but that was enough for me :-)

 

regards,

Ruud
by (880 points)
0 votes
Thanks for the hint....:-)

I have tested this unofficial agent....it works on virtual systems very fine...but i have an error on hardware-systems. :-( for example on "HP ProLiant DL380"

Error "Segmentation fault (core dumped)"

But anyway...i could fix the problems with the offical agent...just replaced the files with error with some older files from GIT. ;-)

After that the "standalone.sh" worked!

But unfortunatly i have to install some perl modules to get it work on other systems! So its not really standalone-standalone! :-(

Best wishes

Fox
by (160 points)
 
Powered by Question2Answer
...