From 04aa25f205c78762dd9cd32caff19ce6a91f6028 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 21 Feb 2024 12:27:35 +0100 Subject: [PATCH] Show the limit for too_many_xml events. --- pandora_server/lib/PandoraFMS/DataServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/DataServer.pm b/pandora_server/lib/PandoraFMS/DataServer.pm index 3235e49559..8a72ef7605 100644 --- a/pandora_server/lib/PandoraFMS/DataServer.pm +++ b/pandora_server/lib/PandoraFMS/DataServer.pm @@ -192,7 +192,7 @@ sub data_producer ($) { if ($pa_config->{'too_many_xml'} > 0) { while (my ($agent_name, $xml_count) = each(%AgentCounts)) { if ($xml_count > $pa_config->{'too_many_xml'}) { - pandora_timed_event(300, $pa_config, "Too many XML files for agent $agent_name", 0, 0, 0, 0, 0, 'warning', 0, $dbh); + pandora_timed_event(300, $pa_config, "More than " . $pa_config->{'too_many_xml'} . " XML files queued for agent $agent_name", 0, 0, 0, 0, 0, 'warning', 0, $dbh); } } } @@ -254,7 +254,7 @@ sub data_producer_smart_queue ($) { if ($pa_config->{'too_many_xml'} > 0) { while (my ($agent_name, $xml_count) = each(%AgentCounts)) { if ($xml_count > $pa_config->{'too_many_xml'}) { - pandora_timed_event(300, $pa_config, "Too many XML files for agent $agent_name", 0, 0, 0, 0, 0, 'warning', 0, $dbh); + pandora_timed_event(300, $pa_config, "More than " . $pa_config->{'too_many_xml'} . " XML files queued for agent $agent_name", 0, 0, 0, 0, 0, 'warning', 0, $dbh); } } }