OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
344 stars 139 forks source link

Plugin isn't working #339

Closed DaniKawaii closed 2 years ago

DaniKawaii commented 3 years ago

Hi!

General informations

Operating system : Ubuntu 20.04.2 LTS

Server informations

Perl version : Perl/v5.16.3 Mysql / Mariadb / Percona version : MySQL Community Server (GPL) version 5.7.34

OCS Inventory informations

Ocs server version : 2.9 (Docker)

Problem's description

I've installed crontabTasks 2.1 plugin (https://github.com/PluginsOCSInventory-NG/crontabTasks), but I don't receive information from the machines which have the plugin's agent deployed.

The steps I did to install the plugin:

The machines where I installed the plugin do have cron tasks. Is there a step that am I missing? I used https://wiki.ocsinventory-ng.org/10.Plugin-engine/Using-plugins-installer/ as a guide.

Here you can see the plugin in Extensions Manager image

Here is the table in the database (it's empty). image

Here is the result of a query: image

Here is the plugin table in Configuration tab of a machine: image

Thanks in advance!

charleneauger commented 2 years ago

Hi @DaniKawaii ,

To install unix agent plugin, copy the CronTab.pm to /usr/local/share/perl/5.30.0/Ocsinventory/Agent/Modules. Next, edit the file /etc/ocsinventory/modules.conf and add this line :

use Ocsinventory::Agent::Modules::CronTab;

Note : Crontab.pm require the Config::CronTab lib to work.

Best regards, Charlene