2011-09-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* godmode/setup/performance.php
        godmode/setup/setup_visuals.php: Added contextual help in this views.
        * include/functions_reporting.php: Now serialized reports get numeric data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4930 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-09-08 15:55:06 +00:00
parent 990fb3e050
commit 529f0e0640
4 changed files with 22 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2011-09-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/setup/performance.php
godmode/setup/setup_visuals.php: Added contextual help in this views.
* include/functions_reporting.php: Now serialized reports get numeric data.
2011-09-07 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/setup/setup.php: Url and Integria password are checked and

View File

@ -67,7 +67,7 @@ $table->data[7][1] = html_print_input_text ('days_compact', $config["days_compac
$table->data[8][0] = __('Compact interpolation in hours (1 Fine-20 bad)');
$table->data[8][1] = html_print_input_text ('step_compact', $config["step_compact"], '', 5, 5, true);
$table->data[9][0] = __('SLA period (seconds)');
$table->data[9][0] = __('SLA period (seconds)') . ui_print_help_tip(__('You can see this in SLA agent tab.'), true);;
$table->data[9][1] = html_print_input_text ('sla_period', $config["sla_period"], '', 8, 8, true);
$table->data[10][0] = __('Default hours for event view');
@ -81,7 +81,7 @@ $table->data[12][0] = __('Use realtime statistics');
$table->data[12][1] = __('Yes').'&nbsp;'.html_print_radio_button ('realtimestats', 1, '', $config["realtimestats"], true).'&nbsp;&nbsp;';
$table->data[12][1] .= __('No').'&nbsp;'.html_print_radio_button ('realtimestats', 0, '', $config["realtimestats"], true);
$table->data[13][0] = __('Batch statistics period (secs)');
$table->data[13][0] = __('Batch statistics period (secs)') . ui_print_help_tip(__('If realtime statistics are disabled, statistics interval resfresh will be set here.'), true);
$table->data[13][1] = html_print_input_text ('stats_interval', $config["stats_interval"], '', 5, 5, true);
$table->data[14][0] = __('Use agent access graph') . ui_print_help_icon("agent_access", true);

View File

@ -85,7 +85,7 @@ $table->data[10][1] = html_print_select($fonts, 'fontpath', $config["fontpath"],
$table->data[11][0] = __('Font size');
$table->data[11][1] = html_print_select(range(1, 15), 'font_size', $config["font_size"], '', '', 0, true);
$table->data[12][0] = __('Flash charts');
$table->data[12][0] = __('Flash charts') . ui_print_help_tip(__('Whether to use Flash charts or static PNG graphs'), true);
$table->data[12][1] = __('Yes').'&nbsp;'.html_print_radio_button ('flash_charts', 1, '', $config["global_flash_charts"], true).'&nbsp;&nbsp;';
$table->data[12][1] .= __('No').'&nbsp;'.html_print_radio_button ('flash_charts', 0, '', $config["global_flash_charts"], true);

View File

@ -2719,12 +2719,20 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
array_unshift($table2->head, __('Date'));
$datelimit = $report["datetime"] - $content['period'];
$result = db_get_all_rows_sql('SELECT *
FROM tagente_datos_string
WHERE id_agente_modulo = ' . $content['id_agent_module'] . '
AND utimestamp > ' . $datelimit . '
AND utimestamp <= ' . $report["datetime"]);
FROM tagente_datos
WHERE id_agente_modulo = ' . $content['id_agent_module'] . '
AND utimestamp > ' . $datelimit . '
AND utimestamp <= ' . $report["datetime"]);
// Adds string data if there is no numeric data
if ((count($result) >= 0) or (!$result)){
$result = db_get_all_rows_sql('SELECT *
FROM tagente_datos_string
WHERE id_agente_modulo = ' . $content['id_agent_module'] . '
AND utimestamp > ' . $datelimit . '
AND utimestamp <= ' . $report["datetime"]);
}
if ($result === false) {
$result = array();
}