fixed errors in graphs webproc and keep alive
This commit is contained in:
parent
32b81ae7aa
commit
a335732267
|
@ -1461,6 +1461,8 @@ function return_graphtype ($id_module_type) {
|
|||
case 21:
|
||||
case 18:
|
||||
case 9:
|
||||
case 31:
|
||||
case 100:
|
||||
return "boolean";
|
||||
break;
|
||||
case 24:
|
||||
|
|
|
@ -4550,11 +4550,11 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events,
|
|||
}
|
||||
|
||||
function fullscale_data ( &$chart_data, &$chart_extra_data, &$long_index,
|
||||
$series_type, $agent_module_id, $datelimit, $date,
|
||||
$events = false, $show_events = false,
|
||||
$show_unknown = false, $show_alerts = false,
|
||||
$series_suffix = '', $percentil = false,
|
||||
$flash_chart = true, $boolean_graph = false){
|
||||
$series_type, $agent_module_id, $datelimit, $date,
|
||||
$events = false, $show_events = false,
|
||||
$show_unknown = false, $show_alerts = false,
|
||||
$series_suffix = '', $percentil = false,
|
||||
$flash_chart = true, $boolean_graph = false){
|
||||
|
||||
global $config;
|
||||
global $max_value;
|
||||
|
@ -4610,6 +4610,10 @@ function fullscale_data ( &$chart_data, &$chart_extra_data, &$long_index,
|
|||
$chart_data[$event_date]["alert" . $series_suffix] = 1;
|
||||
$chart_extra_data[count($chart_data)-1]['alerts'] = implode (',', $alert_ids[$event_date]);
|
||||
}
|
||||
else{
|
||||
$chart_data[$event_date]["event" . $series_suffix] = NULL;
|
||||
$chart_data[$event_date]["alert" . $series_suffix] = NULL;
|
||||
}
|
||||
|
||||
$chart_data[$event_date]["sum" . $series_suffix] = $previous_data;
|
||||
if($show_unknown) {
|
||||
|
|
Loading…
Reference in New Issue