mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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
4d584537e3
commit
53c93edf64
@ -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>
|
2008-12-16 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* win32/modules/pandora_module_wmiquery.cc,
|
* win32/modules/pandora_module_wmiquery.cc,
|
||||||
|
@ -742,11 +742,17 @@ Pandora_Windows_Service::sendXml (Pandora_Module_List *modules) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
Pandora_Windows_Service::pandora_run () {
|
Pandora_Windows_Service::pandora_run () {
|
||||||
|
Pandora_Agent_Conf *conf = NULL;
|
||||||
|
string server_addr;
|
||||||
|
|
||||||
pandoraDebug ("Run begin");
|
pandoraDebug ("Run begin");
|
||||||
|
|
||||||
/* Check for configuration changes */
|
/* Check for configuration changes */
|
||||||
this->checkConfig ();
|
this->checkConfig ();
|
||||||
|
|
||||||
|
conf = this->getConf ();
|
||||||
|
server_addr = conf->getValue ("server_ip");
|
||||||
|
|
||||||
execution_number++;
|
execution_number++;
|
||||||
|
|
||||||
if (this->modules != NULL) {
|
if (this->modules != NULL) {
|
||||||
@ -768,8 +774,9 @@ Pandora_Windows_Service::pandora_run () {
|
|||||||
|
|
||||||
if (this->elapsed_transfer_time >= this->transfer_interval) {
|
if (this->elapsed_transfer_time >= this->transfer_interval) {
|
||||||
this->elapsed_transfer_time = 0;
|
this->elapsed_transfer_time = 0;
|
||||||
|
if (!server_addr.empty ()) {
|
||||||
this->sendXml (this->modules);
|
this->sendXml (this->modules);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the interval value (in minutes) */
|
/* Get the interval value (in minutes) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user