diff --git a/gorgone/modules/centreon/audit/metrics/centreon/packages.pm b/gorgone/modules/centreon/audit/metrics/centreon/packages.pm index 5128147..753aaf5 100644 --- a/gorgone/modules/centreon/audit/metrics/centreon/packages.pm +++ b/gorgone/modules/centreon/audit/metrics/centreon/packages.pm @@ -79,7 +79,7 @@ sub metrics { if ($options{os} =~ /Debian|Ubuntu/i) { dpkg_list(metrics => $metrics); - } elsif ($options{os} =~ /CentOS|Redhat|almalinux/i) { + } elsif ($options{os} =~ /CentOS|Redhat|rhel|almalinux/i) { rpm_list(metrics => $metrics); } elsif ($options{os} eq 'ol' || $options{os} =~ /Oracle Linux/i) { rpm_list(metrics => $metrics); diff --git a/gorgone/modules/core/action/class.pm b/gorgone/modules/core/action/class.pm index 91ebc75..11ed12f 100644 --- a/gorgone/modules/core/action/class.pm +++ b/gorgone/modules/core/action/class.pm @@ -154,7 +154,7 @@ sub get_package_manager { $self->{package_manager} = 'unknown'; if ($os =~ /Debian|Ubuntu/i) { $self->{package_manager} = 'deb'; - } elsif ($os =~ /CentOS|Redhat|almalinux/i) { + } elsif ($os =~ /CentOS|Redhat|rhel|almalinux/i) { $self->{package_manager} = 'rpm'; } elsif ($os eq 'ol' || $os =~ /Oracle Linux/i) { $self->{package_manager} = 'rpm';