Merge branch '155-4248-calculo-dinamico-de-umbrales-en-tipos-booleanos-sla-disponibilidad' into 'develop'
Fixes boolean modules threshold calc Closes #155 See merge request !646
This commit is contained in:
commit
3c2ef0ea2c
|
@ -4342,6 +4342,20 @@ function reporting_advanced_sla ($id_agent_module, $time_from = null, $time_to =
|
||||||
$max_value = null;
|
$max_value = null;
|
||||||
$min_value = null;
|
$min_value = null;
|
||||||
}
|
}
|
||||||
|
if ( (!isset($min_value)) && (!isset($max_value)) ) {
|
||||||
|
if ( ($agentmodule_info["id_tipo_modulo"] == "2") // generic_proc
|
||||||
|
|| ($agentmodule_info["id_tipo_modulo"] == "6") // remote_icmp_proc
|
||||||
|
|| ($agentmodule_info["id_tipo_modulo"] == "9") // remote_tcp_proc
|
||||||
|
|| ($agentmodule_info["id_tipo_modulo"] == "18") // remote_snmp_proc
|
||||||
|
|| ($agentmodule_info["id_tipo_modulo"] == "21") // async_proc
|
||||||
|
|| ($agentmodule_info["id_tipo_modulo"] == "31") ) { // web_proc
|
||||||
|
// Boolean values are OK if they're different from 0
|
||||||
|
$max_value = 0;
|
||||||
|
$min_value = 0;
|
||||||
|
$inverse_interval = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// By default show last day
|
// By default show last day
|
||||||
|
|
Loading…
Reference in New Issue