After upgrading Centreon to the latest stable version (2.3.4 -> 188.8.131.52) 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 :
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.