diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 0d3bc2652f..74e81778c8 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -5373,7 +5373,9 @@ sub pandora_self_monitoring ($$) { get_db_value($dbh, "SELECT COUNT(*) FROM tagente_datos"); my $read_speed = int((time - $start_performance) * 1e6); - $xml_output .= enterprise_hook("elasticsearch_performance", [$pa_config, $dbh]); + my $elasticsearch_perfomance = enterprise_hook("elasticsearch_performance", [$pa_config, $dbh]); + + $xml_output .= $elasticsearch_perfomance if defined($elasticsearch_perfomance); $xml_output .=" "; $xml_output .=" Database Maintenance";