mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch '116-Remote_config-did-not-work-at-Pandora-Agent-for-Windows' into 'develop'
Resolve "Remote_config did not work at Pandora Agent for Windows." Closes #116 See merge request !357
This commit is contained in:
commit
fc5635381a
@ -300,7 +300,7 @@ Pandora_Windows_Service::pandora_init () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the agent alias.
|
// Get the agent alias.
|
||||||
conf->getValue ("agent_alias");
|
agent_alias = conf->getValue ("agent_alias");
|
||||||
if (agent_alias == "") {
|
if (agent_alias == "") {
|
||||||
agent_alias = Pandora_Windows_Info::getSystemName ();
|
agent_alias = Pandora_Windows_Info::getSystemName ();
|
||||||
this->conf->setValue("agent_alias", agent_alias);
|
this->conf->setValue("agent_alias", agent_alias);
|
||||||
@ -441,7 +441,7 @@ Pandora_Windows_Service::getXmlHeader () {
|
|||||||
agent_name = conf->getValue ("agent_name");
|
agent_name = conf->getValue ("agent_name");
|
||||||
|
|
||||||
// Get agent alias
|
// Get agent alias
|
||||||
conf->getValue ("agent_alias");
|
agent_alias = conf->getValue ("agent_alias");
|
||||||
|
|
||||||
// Get parent agent name
|
// Get parent agent name
|
||||||
parent_agent_name = conf->getValue ("parent_agent_name");
|
parent_agent_name = conf->getValue ("parent_agent_name");
|
||||||
@ -1519,7 +1519,7 @@ Pandora_Windows_Service::checkConfig (string file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get agent name */
|
/* Get agent name */
|
||||||
tmp = conf->getValue ("agent_name");
|
agent_name = conf->getValue ("agent_name");
|
||||||
|
|
||||||
|
|
||||||
/* Error getting agent name */
|
/* Error getting agent name */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user