mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
fixed missing name and current value in snmp interface wizard when using satellite
This commit is contained in:
parent
49d9271b4e
commit
293cb43544
@ -442,7 +442,6 @@ class AgentWizard extends HTML
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->moduleBlocks = $this->getModuleBlocks();
|
$this->moduleBlocks = $this->getModuleBlocks();
|
||||||
|
|
||||||
if ($this->moduleBlocks === false) {
|
if ($this->moduleBlocks === false) {
|
||||||
$this->message['type'][] = 'info';
|
$this->message['type'][] = 'info';
|
||||||
$this->message['message'][] = __(
|
$this->message['message'][] = __(
|
||||||
@ -2406,7 +2405,6 @@ class AgentWizard extends HTML
|
|||||||
private function resultsInterfaceWizard()
|
private function resultsInterfaceWizard()
|
||||||
{
|
{
|
||||||
$generalInterfaceModules = $this->getInterfacesModules();
|
$generalInterfaceModules = $this->getInterfacesModules();
|
||||||
|
|
||||||
$generalInterfaceTables = [];
|
$generalInterfaceTables = [];
|
||||||
$generalInterfaceModulesUpdated = [];
|
$generalInterfaceModulesUpdated = [];
|
||||||
$component_id_number = 0;
|
$component_id_number = 0;
|
||||||
@ -2581,7 +2579,6 @@ class AgentWizard extends HTML
|
|||||||
|
|
||||||
$interfaceModulesUpdated = [];
|
$interfaceModulesUpdated = [];
|
||||||
$component_id_number = 0;
|
$component_id_number = 0;
|
||||||
|
|
||||||
foreach ($thisInterfaceModules as $moduleIndex => $moduleData) {
|
foreach ($thisInterfaceModules as $moduleIndex => $moduleData) {
|
||||||
if ($this->serverType === SERVER_TYPE_ENTERPRISE_SATELLITE) {
|
if ($this->serverType === SERVER_TYPE_ENTERPRISE_SATELLITE) {
|
||||||
if ($moduleData['module_type'] == MODULE_TYPE_REMOTE_SNMP) {
|
if ($moduleData['module_type'] == MODULE_TYPE_REMOTE_SNMP) {
|
||||||
@ -3004,7 +3001,6 @@ class AgentWizard extends HTML
|
|||||||
}
|
}
|
||||||
|
|
||||||
$value = $this->snmpGetValue($module['value']);
|
$value = $this->snmpGetValue($module['value']);
|
||||||
|
|
||||||
// If the value is missing, we must not show this module.
|
// If the value is missing, we must not show this module.
|
||||||
if (empty($value) === true) {
|
if (empty($value) === true) {
|
||||||
unset($moduleBlocks[$k]);
|
unset($moduleBlocks[$k]);
|
||||||
@ -3016,7 +3012,6 @@ class AgentWizard extends HTML
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// $moduleBlocks[$k]['current_value'] = 'blablabla';
|
|
||||||
$moduleBlocks[$k]['macros'] = '';
|
$moduleBlocks[$k]['macros'] = '';
|
||||||
} else {
|
} else {
|
||||||
// Three steps for FIXED PLUGIN wizard modules.
|
// Three steps for FIXED PLUGIN wizard modules.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user