2011-08-18 Dario Rodriguez <dario.rodriguez@artica.es>
* operation/agentes/ver_agente.php: Added feature to show vmware manager extension tab only when the agent is a virtual machine. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4778 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
631df4958c
commit
ab73a89ee0
|
@ -1,3 +1,8 @@
|
||||||
|
2011-08-18 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
|
* operation/agentes/ver_agente.php: Added feature to show vmware manager
|
||||||
|
extension tab only when the agent is a virtual machine.
|
||||||
|
|
||||||
2011-08-18 Miguel de Dios <miguel.dedios@artica.es>
|
2011-08-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor_network.php: disabled snmp community
|
* godmode/agentes/module_manager_editor_network.php: disabled snmp community
|
||||||
|
|
|
@ -596,6 +596,23 @@ $onheader = array('manage' => $managetab, 'separator' => "", 'main' => $maintab,
|
||||||
|
|
||||||
foreach($config['extensions'] as $extension) {
|
foreach($config['extensions'] as $extension) {
|
||||||
if (isset($extension['extension_ope_tab'])) {
|
if (isset($extension['extension_ope_tab'])) {
|
||||||
|
|
||||||
|
//VMware extension is only available for VMware OS
|
||||||
|
if ($extension['extension_ope_tab']['id'] === "vmware_manager") {
|
||||||
|
|
||||||
|
//Check if OS is vmware
|
||||||
|
$id_os = db_get_value("id_os", "tconfig_os", "name", "VMware");
|
||||||
|
if ($id_os != $agent['id_os']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
//This extension is only for virtual machines
|
||||||
|
if (strpos($agent['nombre'], "VM_") !== 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$image = $extension['extension_ope_tab']['icon'];
|
$image = $extension['extension_ope_tab']['icon'];
|
||||||
$name = $extension['extension_ope_tab']['name'];
|
$name = $extension['extension_ope_tab']['name'];
|
||||||
$id = $extension['extension_ope_tab']['id'];
|
$id = $extension['extension_ope_tab']['id'];
|
||||||
|
|
Loading…
Reference in New Issue