Merge branch 'ent-7467-wizard-snmp-falla-para-modulos-que-usen-braa' into 'develop'
Ent 7467 wizard snmp falla para modulos que usen braa See merge request artica/pandorafms!4139
This commit is contained in:
commit
c2314717e3
|
@ -1582,6 +1582,10 @@ class AgentWizard extends HTML
|
|||
if ($candidate['execution_type'] === 0
|
||||
|| $candidate['execution_type'] === EXECUTION_TYPE_NETWORK
|
||||
) {
|
||||
if (substr($candidate['value'], 0, 1) !== '.') {
|
||||
$candidate['value'] = '.'.$candidate['value'];
|
||||
}
|
||||
|
||||
if ($this->serverType === SERVER_TYPE_ENTERPRISE_SATELLITE) {
|
||||
$values['id_module'] = MODULE_DATA;
|
||||
$values['module_interval'] = 1;
|
||||
|
@ -1947,6 +1951,10 @@ class AgentWizard extends HTML
|
|||
|| $candidate['execution_type'] === EXECUTION_TYPE_NETWORK
|
||||
) {
|
||||
if ($this->serverType === SERVER_TYPE_ENTERPRISE_SATELLITE) {
|
||||
if (substr($candidate['value'], 0, 1) !== '.') {
|
||||
$candidate['value'] = '.'.$candidate['value'];
|
||||
}
|
||||
|
||||
$tmp->module_interval(300);
|
||||
$tmp->id_modulo(MODULE_DATA);
|
||||
$tmp->updateConfigurationData(
|
||||
|
|
|
@ -374,7 +374,7 @@ function db_get_value_filter($field, $table, $filter, $where_join='AND', $search
|
|||
*
|
||||
* @param string SQL select statement to execute.
|
||||
*
|
||||
* @return the first value of the first row of a table result from query.
|
||||
* @return mixed the first value of the first row of a table result from query.
|
||||
*/
|
||||
function db_get_value_sql($sql, $dbconnection=false)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue