Merge branch 'develop' of https://brutus.artica.lan:8081/artica/pandorafms into develop
This commit is contained in:
commit
bbf04bc309
|
@ -1992,24 +1992,18 @@ else {
|
|||
"reporting_" . $activeTab . "_tab", false, $buttons);
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($resultOperationDB !== null) {
|
||||
|
||||
|
||||
$err = '';
|
||||
/*
|
||||
if($_POST[sla_min]==''){
|
||||
$err.='You must enter some character in SLA min field<br>';
|
||||
}
|
||||
if($_POST[sla_max]==''){
|
||||
$err.='You must enter some character in SLA max field<br>';
|
||||
}
|
||||
*/
|
||||
if($_POST[sla_limit]==''){
|
||||
switch ($_POST['type']) {
|
||||
case 'custom_graph':
|
||||
$err.='You must enter custom graph';
|
||||
break;
|
||||
case 'SLA':
|
||||
$err.='You must enter some character in SLA limit field';
|
||||
default:
|
||||
$err.='';
|
||||
break;
|
||||
}
|
||||
|
||||
ui_print_result_message ($resultOperationDB, __('Successfull action'), __('Unsuccessfull action<br><br>'.$err));
|
||||
}
|
||||
|
||||
|
|
|
@ -881,10 +881,10 @@ function createGauge(name, etiqueta, value, min, max, min_warning,max_warning,mi
|
|||
//var range = config.max - config.min;
|
||||
var range = config.max - config.min;
|
||||
if (value !== false) {
|
||||
if ( min_warning > 0 ) {
|
||||
if ( min_warning >= 0 && ( min_warning != max_warning ) ) {
|
||||
config.yellowZones = [{ from: min_warning, to: max_warning }];
|
||||
}
|
||||
if ( min_critical > 0 ) {
|
||||
if ( min_critical >= 0 && ( min_critical != max_critical ) ) {
|
||||
config.redZones = [{ from: min_critical, to: max_critical }];
|
||||
}
|
||||
}
|
||||
|
@ -959,12 +959,12 @@ function createGauges(data, width, height, font_size, no_data_image, font) {
|
|||
mininum = 0;
|
||||
if (mininum == maxinum)
|
||||
mininum = 0;
|
||||
|
||||
/*
|
||||
if (maximun_critical == 0 )
|
||||
maximun_critical = maxinum;
|
||||
if (maximun_warning == 0 )
|
||||
maximun_warning = minimun_critical;
|
||||
|
||||
*/
|
||||
if ( maxinum <= minimun_warning ) {
|
||||
minimun_warning = 0;
|
||||
maximun_warning = 0;
|
||||
|
|
|
@ -598,8 +598,8 @@ foreach ($agents as $agent) {
|
|||
$data[3] = '<span style="font-size:6.5pt;">'.human_time_description_raw($agent["intervalo"])."</span>";
|
||||
|
||||
$data[4] = ui_print_group_icon ($agent["id_grupo"], true);
|
||||
|
||||
$data[5] = reporting_tiny_stats($agent, true, 'agent', ':', $strict_user);
|
||||
$agent['not_init_count'] = $agent['notinit_count'];
|
||||
$data[5] = reporting_tiny_stats($agent, true, ' ', ':', $strict_user);
|
||||
|
||||
|
||||
$data[6] = $status_img;
|
||||
|
|
Loading…
Reference in New Issue