2013-02-27 Dario Rodriguez <dario@artica.es>

* operation/agentes/ver_agente.php: Adapted VMware extension known to
        new VMware load options.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7734 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
darode 2013-02-27 16:05:07 +00:00
parent f6f7bbcaeb
commit 7ae34498de
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-02-27 Dario Rodriguez <dario@artica.es>
* operation/agentes/ver_agente.php: Adapted VMware extension known to
new VMware load options.
2013-02-27 Dario Rodriguez <dario@artica.es>
* include/functions_events.php: Added new fields to events_create_event

View File

@ -860,7 +860,12 @@ foreach($config['extensions'] as $extension) {
}
//This extension is only for virtual machines
if (strpos($agent['nombre'], "VM_") !== 0) {
$vmware_type_id = db_get_value("id_field", "tagent_custom_fields", "name", "vmware_type");
$sql_type = "SELECT description FROM tagent_custom_data WHERE id_field = ".$vmware_type_id.
" AND id_agent = ".$agent['id_agente'];
$vmware_type= db_get_value_sql($sql_type);
if ($vmware_type !== "vm") {
continue;
}
@ -1012,4 +1017,4 @@ switch ($tab) {
}
break;
}
?>
?>