Compilation failed in require at ./check_centreon_snmp_remote_storage line 50

After upgrading Centreon to the latest stable version (2.3.4 -> 2.3.8.3) using Centreon official rpm repositories and yum, some errors in CRITICAL state occured in the main monitoring webpage. All the data provided through the SNMP protocol were unavailable. After an in-depth checking at Centreon configuration, the problem came from the scripts check_centreon_snmp_* which can not be executed properly.

There are located in /usr/lib/nagios/plugins. To debug the problem, I made some tests with check_centreon_snmp_remote_storage. Here are the errors I got :

./check_centreon_snmp_remote_storage

Can’t locate List/MoreUtils.pm in @INC (@INC contains: /usr/lib/nagios/plugins /usr/lib64/nagios/plugins /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/vendor_perl/5.8.8/Config/IniFiles.pm line 14.
BEGIN failed–compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Config/IniFiles.pm line 14.
Compilation failed in require at /usr/lib/nagios/plugins/centreon.pm line 51.
BEGIN failed–compilation aborted at /usr/lib/nagios/plugins/centreon.pm line 51.
Compilation failed in require at ./check_centreon_snmp_remote_storage line 50.
BEGIN failed–compilation aborted at ./check_centreon_snmp_remote_storage line 50.

During the Centreon upgrade, the installation of the List::MoreUtils Perl module was missing. To install it on RHEL 5.8 x86_64, just issue the following command :

root@localhost:~# yum install perl-List-MoreUtils.x86_64

Once installed, to test this Perl module :

fool@localhost:~$ perl -MList::MoreUtils -e1

All the alerts in critical state in Centreon should progressively disappear.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s