diff --git a/pandora_server/lib/PandoraFMS/DataServer.pm b/pandora_server/lib/PandoraFMS/DataServer.pm index a53f6859fc..52abb1c007 100644 --- a/pandora_server/lib/PandoraFMS/DataServer.pm +++ b/pandora_server/lib/PandoraFMS/DataServer.pm @@ -324,7 +324,7 @@ sub data_consumer ($$) { return; } - rename($task, $task.'_BADXML'); + rename($file_name, $file_name.'_BADXML'); pandora_event ($pa_config, "Unable to process XML data file '$task'.", 0, 0, 0, 0, 0, 'error', 0, $dbh); agent_unlock($pa_config, $agent_name); }