2008-12-24 Ramon Novoa <rnovoa@artica.es>
* win32/pandora_windows_service.cc: Do not send XML if server address is not set. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1307 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
daccd18dfd
commit
3d80c361ee
|
@ -1,3 +1,8 @@
|
|||
2008-12-24 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* win32/pandora_windows_service.cc: Do not send XML if server address
|
||||
is not set.
|
||||
|
||||
2008-12-16 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* win32/modules/pandora_module_wmiquery.cc,
|
||||
|
|
|
@ -742,11 +742,17 @@ Pandora_Windows_Service::sendXml (Pandora_Module_List *modules) {
|
|||
|
||||
void
|
||||
Pandora_Windows_Service::pandora_run () {
|
||||
Pandora_Agent_Conf *conf = NULL;
|
||||
string server_addr;
|
||||
|
||||
pandoraDebug ("Run begin");
|
||||
|
||||
/* Check for configuration changes */
|
||||
this->checkConfig ();
|
||||
|
||||
conf = this->getConf ();
|
||||
server_addr = conf->getValue ("server_ip");
|
||||
|
||||
execution_number++;
|
||||
|
||||
if (this->modules != NULL) {
|
||||
|
@ -768,8 +774,9 @@ Pandora_Windows_Service::pandora_run () {
|
|||
|
||||
if (this->elapsed_transfer_time >= this->transfer_interval) {
|
||||
this->elapsed_transfer_time = 0;
|
||||
|
||||
this->sendXml (this->modules);
|
||||
if (!server_addr.empty ()) {
|
||||
this->sendXml (this->modules);
|
||||
}
|
||||
}
|
||||
|
||||
/* Get the interval value (in minutes) */
|
||||
|
|
Loading…
Reference in New Issue