Skip to main content
Question

centreon::plugins::script Perl module unfindable

  • 13 June 2024
  • 2 replies
  • 22 views

Hello my fellows,

 

I have migrated all of my centreon to the newer version, and i’m still having some bits and bops to fix. Among this, i have the centreon_plugins.pl file, who’s using the centreon::plugins::script Perl module.

Which appears, not only not to be installed, but to be absent from the old machine too. which mean, i have first, no way to copy and transfer it to the newer machine, and second, no idea how it was working before.

I tried to install it with CPAN, usin cpan install centreon::plugins::script, and cpan couldn’t find the module.

I also looked for it a bit online, if i could find any file from which to install it, but didn’t found one.

 

Have a good day !

2 replies

Badge +1

Hi,

Did you resolve the issue above ? 

 

I am facing the same problem trying to execute :

perl /usr/lib64/nagios/plugins/centreon-plugins-20220616/centreon_plugins.pl --plugin=os::linux::snmp::plugin --mode=storage --hostname=**** --snmp-version='3' --snmp-community='public' --snmp-username *** --authprotocol *** --authpassphrase *** --privprotocol ** --privpassphrase **** --storage='^/var/lib(/centreon|/centreon-broker|/centreon-engine|/centreon-gorgone)$' --name --regexp --units '%' --warning-usage='80' --critical-usage='90' --reload-cache-time 15

I get the same error as you : 

Can't locate centreon/plugins/script.pm in @INC (you may need to install the centreon::plugins::script module) (@INC contains: /usr/lib64/nagios/plugins/centreon-plugins-20220616 /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/lib64/nagios/plugins/centreon-plugins-20220616/centreon_plugins.pl line 29.
BEGIN failed--compilation aborted at /usr/lib64/nagios/plugins/centreon-plugins-20220616/centreon_plugins.pl line 29.

 

 

 

Userlevel 1
Badge +2

Hello

The location of the Centreon Perl plugins, once installed with GUI, is here → /usr/lib/centreon/plugins.

The /usr/lib64/nagios/plugins folder contains executable file use by check command

 

For example:

[root@myserver /]# /usr/lib/centreon/plugins/centreon_windows_snmp.pl --list-plugin

-----------------
PLUGIN: os::windows::snmp::plugin
Plugin Description:
Check Windows operating systems in SNMP.

[root@myserver /]#

 

Regards

Pierre

 

Reply