2013-03-11 Koichiro Kikuchi <koichiro@rworks.jp>

* pandora_agent: Fixed bug that the send_buffered_xml_files
	 doesn't remove xml files successfully sent.

	Merged from: branch_4.0



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7819 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
koichirok 2013-03-11 05:41:51 +00:00
parent f13fdbcc01
commit 9fdd4e5262
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2013-03-11 Koichiro Kikuchi <koichiro@rworks.jp>
* pandora_agent: Fixed bug that the send_buffered_xml_files
doesn't remove xml files successfully sent.
Merged from: branch_4.0
2013-03-06 Miguel de Dios <miguel.dedios@artica.es>
* HP-UX/pandora_agent.conf: fixed ps params for "sshDaemon" module

View File

@ -793,7 +793,8 @@ sub send_buffered_xml_files () {
# Skip non data files and symlinks
next if ($xml_file !~ m/\.data$/ || -l "$Conf{'temporal'}/$xml_file");
send_file ("$Conf{'temporal'}/$xml_file", 1);
my $rc = send_file ("$Conf{'temporal'}/$xml_file", 1);
unlink ("$Conf{'temporal'}/$xml_file") if ($rc == 0);
}
}