Hello,
I updated multiple servers to Debian 12 and all Centreon 24.10.18. I got an issue with the HP MSA plugin
UNKNOWN: Can't use an undefined value as a subroutine reference at /usr/lib/centreon/plugins//centreon_hp_msa2000.pl line 11214.or
UNKNOWN: Can't use an undefined value as a subroutine reference at /usr/lib/centreon/plugins//centreon_hp_msa2000.pl line 11168.(It depend of the update).
both are targeting the line : $func->($self);
}
sub load_components {
my ($self, %options) = @_;
foreach (@{$self->{components_module}}) {
if (/$self->{option_results}->{component}/) {
my $mod_name = $self->{components_path} . "::$_";
centreon::plugins::misc::mymodule_load(
output => $self->{output}, module => $mod_name,
error_msg => "Cannot load module '$mod_name'.") if ($self->{load_components} == 1);
$self->{loaded} = 1;
if ($self->{components_exec_load} == 1) {
my $func = $mod_name->can('load');
$func->($self);
}
}
}
}Any idea ? 😶
Thanks.
