mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
"agent_alias" could not work at Pandora Agent for Windows. #116
This commit is contained in:
parent
ad05691e2d
commit
ddf6919654
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user