mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2006-10-06 Esteban Sanchez <estebans@artica.es>
* pandora.cc, pandora.h: Added getPandoraDebug() to get the debug flag value. * pandora_windows_service.cc: Do not remove the data file if flag debug is active. * bin/PandoraAgent.exe: Updated to new changes. * ChangeLog: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@218 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4b76cd7433
commit
647b3d10e2
@ -1,29 +1,44 @@
|
|||||||
|
2006-10-06 Esteban Sanchez <estebans@artica.es>
|
||||||
|
|
||||||
|
* pandora.cc, pandora.h: Added getPandoraDebug() to get the debug
|
||||||
|
flag value.
|
||||||
|
|
||||||
|
* pandora_windows_service.cc: Do not remove the data file if flag
|
||||||
|
debug is active.
|
||||||
|
|
||||||
|
* bin/PandoraAgent.exe: Updated to new changes.
|
||||||
|
|
||||||
|
* ChangeLog: Style correction.
|
||||||
|
|
||||||
2006-10-05 Raúl Mateos <raulofpandora@gmail.com>
|
2006-10-05 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated installer to include
|
* installer/Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated
|
||||||
Pair Key generation.
|
installer to include Pair Key generation.
|
||||||
|
|
||||||
* pandora.mpi: New file, installjammer installer. You should change PATHS
|
* installer/pandora.mpi: New file, installjammer installer. You should
|
||||||
to include the files into the installer.
|
change PATHS to include the files into the installer.
|
||||||
|
|
||||||
* pandora.ico: New file, used in the installer.
|
* installer/pandora.ico: New file, used in the installer.
|
||||||
|
|
||||||
* logo.gif: New file, used in the installer (it should be changed to .png)
|
* installer/logo.gif: New file, used in the installer (it should be
|
||||||
|
changed to .png)
|
||||||
|
|
||||||
2006-09-27 Raúl Mateos <raulofpandora@gmail.com>
|
2006-09-27 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated logo image and added
|
* installer/Pandora Windows Agent-1.2 Beta3-Setup.exe: Updated logo
|
||||||
shortcut to edit configuration file.
|
image and added shortcut to edit configuration file.
|
||||||
|
|
||||||
2006-09-22 Raúl Mateos <raulofpandora@gmail.com>
|
2006-09-22 Raúl Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* installer/: New directory to put the Pandora Agent for Windows installer
|
* installer/: New directory to put the Pandora Agent for Windows
|
||||||
|
installer.
|
||||||
|
|
||||||
* Pandora Windows Agent-1.2 Beta3-Setup.exe: New file added to repository
|
* Pandora Windows Agent-1.2 Beta3-Setup.exe: New file added to
|
||||||
|
repository.
|
||||||
|
|
||||||
2006-09-20 Raul Mateos <raulofpandora@gmail.com>
|
2006-09-22 Raul Mateos <raulofpandora@gmail.com>
|
||||||
|
|
||||||
* win32\bin\pandora_agent.conf: Updated some texts to english
|
* win32\bin\pandora_agent.conf: Updated some texts to english.
|
||||||
|
|
||||||
* win32\bin\README: Added
|
* win32\bin\README: Added
|
||||||
|
|
||||||
|
Binary file not shown.
@ -239,10 +239,11 @@ Pandora::getPandoraInstallPath () {
|
|||||||
/**
|
/**
|
||||||
* Set the debug flag.
|
* Set the debug flag.
|
||||||
*
|
*
|
||||||
* If the flag is false output wil be generated.
|
* If the flag is true output wil be generated and XML files will not be deleted.
|
||||||
*
|
*
|
||||||
* @param dbg Turns the debug flag on/off.
|
* @param dbg Turns the debug flag on/off.
|
||||||
*
|
*
|
||||||
|
* @see getPandoraDebug
|
||||||
* @see pandoraDebug
|
* @see pandoraDebug
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
@ -250,6 +251,20 @@ Pandora::setPandoraDebug (bool dbg) {
|
|||||||
pandora_debug = dbg;
|
pandora_debug = dbg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the debug flag value.
|
||||||
|
*
|
||||||
|
* If the flag is truee output wil be generated and XML files will not be deleted.
|
||||||
|
*
|
||||||
|
* @see setPandoraDebug
|
||||||
|
* @see pandoraDebug
|
||||||
|
*/
|
||||||
|
bool
|
||||||
|
Pandora::getPandoraDebug () {
|
||||||
|
return pandora_debug;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the version of the agent.
|
* Get the version of the agent.
|
||||||
*
|
*
|
||||||
|
@ -57,6 +57,7 @@ namespace Pandora {
|
|||||||
void setPandoraInstallPath (string path);
|
void setPandoraInstallPath (string path);
|
||||||
string getPandoraInstallPath ();
|
string getPandoraInstallPath ();
|
||||||
void setPandoraDebug (bool dbg);
|
void setPandoraDebug (bool dbg);
|
||||||
|
bool getPandoraDebug ();
|
||||||
string getPandoraAgentVersion ();
|
string getPandoraAgentVersion ();
|
||||||
|
|
||||||
void pandoraDebug (char *format, ...);
|
void pandoraDebug (char *format, ...);
|
||||||
|
@ -234,19 +234,23 @@ Pandora_Windows_Service::pandora_run () {
|
|||||||
delete ssh_client;
|
delete ssh_client;
|
||||||
pandoraLog ("Pandora Agent: Authentication Failed when connecting to %s",
|
pandoraLog ("Pandora Agent: Authentication Failed when connecting to %s",
|
||||||
remote_host.c_str ());
|
remote_host.c_str ());
|
||||||
try {
|
if (getPandoraDebug () == false) {
|
||||||
Pandora_File::removeFile (tmp_filepath);
|
try {
|
||||||
} catch (Pandora_File::Delete_Error e) {
|
Pandora_File::removeFile (tmp_filepath);
|
||||||
}
|
} catch (Pandora_File::Delete_Error e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
} catch (Pandora_Exception e) {
|
} catch (Pandora_Exception e) {
|
||||||
delete ssh_client;
|
delete ssh_client;
|
||||||
pandoraLog ("Pandora Agent: Failed when copying to %s",
|
pandoraLog ("Pandora Agent: Failed when copying to %s",
|
||||||
remote_host.c_str ());
|
remote_host.c_str ());
|
||||||
try {
|
if (getPandoraDebug () == false) {
|
||||||
Pandora_File::removeFile (tmp_filepath);
|
try {
|
||||||
} catch (Pandora_File::Delete_Error e) {
|
Pandora_File::removeFile (tmp_filepath);
|
||||||
}
|
} catch (Pandora_File::Delete_Error e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -266,20 +270,24 @@ Pandora_Windows_Service::pandora_run () {
|
|||||||
tmp_filename.c_str ());
|
tmp_filename.c_str ());
|
||||||
ssh_client->disconnect();
|
ssh_client->disconnect();
|
||||||
delete ssh_client;
|
delete ssh_client;
|
||||||
try {
|
if (getPandoraDebug () == false) {
|
||||||
Pandora_File::removeFile (tmp_filepath);
|
try {
|
||||||
} catch (Pandora_File::Delete_Error e) {
|
Pandora_File::removeFile (tmp_filepath);
|
||||||
}
|
} catch (Pandora_File::Delete_Error e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_client->disconnect();
|
ssh_client->disconnect();
|
||||||
delete ssh_client;
|
delete ssh_client;
|
||||||
|
|
||||||
try {
|
if (getPandoraDebug () == false) {
|
||||||
Pandora_File::removeFile (tmp_filepath);
|
try {
|
||||||
} catch (Pandora_File::Delete_Error e) {
|
Pandora_File::removeFile (tmp_filepath);
|
||||||
}
|
} catch (Pandora_File::Delete_Error e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pandoraDebug ("Execution number %d", execution_number);
|
pandoraDebug ("Execution number %d", execution_number);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user