PluginsOCSInventory-NG / scheduledTasks

Retrieve scheduled tasks
GNU General Public License v2.0
1 stars 3 forks source link

Apache 2 failed - Can't locate #8

Open Climarxt opened 5 years ago

Climarxt commented 5 years ago

Hi all,

After the installation of this plugins, I had my apache failed with this error:

[perl:error] [pid 1550] $s->add_config() has failed: Can't locate Apache/Ocsinventory/Plugins/Scheduledtasks/Map.pm in @INC (you may need to install the Apache::Ocsinventory::Plugins::Scheduledtasks::Map module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /etc/apache2 /etc/ocsinventory-server/perl) at (eval 99) line 2.\nCompilation failed in require at (eval 98) line 2.\n

To correct it, you must to verify in the .pm : /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/ScheduledTasks/Map.pm

package Apache::Ocsinventory::Plugins::Scheduledtasks::Map;

If it's the right directory. Because in my case I had an uppercase: /etc/ocsinventory-server/perl/Apache/Ocsinventory/Plugins/ScheduledTasks

Make the change, restart apache and it's good

Climarxt.

zeusin commented 5 years ago

Thank you! This bug still being active.

I also had to edit "/etc/ocsinventory-server/plugins/Scheduledtasks.conf" to change t from "tasks" to T mayus.