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.

Plugin deployment and OCS Agent Unix Packager

I generated a tar.gz of the 2.8.1 agent with the Standalone Unix Packager and installed it on a CentOS 7 machine.

The agent runs fine and correctly uploads the inventory to the server.

I'm wondering how do I add a unix plugin to an agent installed this way.

Normally I would copy the plugin (.pm file) in the /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Modules/ folder and enable it in the modules.conf file (eg. use Ocsinventory::Agent::Modules::Processes;).

How do I achieve the same result in the static compiled version generated with the Packager for Unix?

Server version 2.8.0 running on CentOS 8.

in OCS Inventory NG agent for Unix by (270 points)

1 Answer

0 votes

If I'm not wrong, with current unix/linux agent, 2.9.1, to have same result as with "standard" agent installation, it should be necessary to have the file modules.conf in one of these directories, in search order I'd say:

  • /etc/ocsinventory
  • /usr/local/etc/ocsinventory 
  • or /etc/ocsinventory-agent 
  • or $HOME/.ocsinventory

I'm trying, too

by (190 points)
Powered by Question2Answer