2011-07-13 Sergio Martin <sergio.martin@artica.es>

* extras/pandoradb_migrate_v3.2_to_v4.0.sql
	godmode/agentes/module_manager_editor_prediction.php: Fix a check
	bug and added to migration database schemma a fix for the prediction
	modules



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4558 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-07-13 17:16:52 +00:00
parent 7f064d069c
commit 5b4fd01d4a
3 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2011-07-13 Sergio Martin <sergio.martin@artica.es>
* extras/pandoradb_migrate_v3.2_to_v4.0.sql
godmode/agentes/module_manager_editor_prediction.php: Fix a check
bug and added to migration database schemma a fix for the prediction
modules
2011-07-13 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_html.php: Fixed function print_select_groups()

View File

@ -214,3 +214,11 @@ ALTER TABLE `tplanned_downtime` ADD COLUMN `only_alerts` TINYINT(1) NOT NULL DEF
-- -----------------------------------------------------
ALTER TABLE `talert_templates` MODIFY COLUMN `type` ENUM('regex','max_min','max','min','equal','not_equal','warning','critical','onchange','unknown', 'always') DEFAULT NULL;
-- -----------------------------------------------------
-- Table `tagente_modulo` to adapt the fields use to new prediction types and future modifications
-- -----------------------------------------------------
UPDATE tagente_modulo SET prediction_module = 2 WHERE custom_integer_1 <> 0 AND prediction_module <> 0
UPDATE tagente_modulo SET custom_integer_1 = prediction_module AND prediction_module = 1 WHERE custom_integer_1 = 0 AND prediction_module <> 0

View File

@ -28,6 +28,7 @@ $row = db_get_row_sql($sql);
$is_service = false;
$is_synthetic = false;
$is_synthetic_avg = false;
$ops = false;
if ($row !== false && is_array($row)) {
$prediction_module = $row['prediction_module'];
$custom_integer_2 = $row ['custom_integer_2'];
@ -144,8 +145,9 @@ unset ($table_advanced->data[2][3]);
<script type="text/javascript">
$(document).ready(function() {
agent_module_autocomplete ("#text_agent_name", "#id_agente", "#prediction_module");
<?php enterprise_hook('setup_services_synth', array($is_service, $is_synthetic, $is_synthetic_avg, $ops)); ?>
<?php
enterprise_hook('setup_services_synth', array($is_service, $is_synthetic, $is_synthetic_avg, $ops));
?>
});
</script>