Merge branch '140-error-a-la-hora-de-duplicar-alertas-snmp' into 'develop'
fixed error duplicate alert SNMP Closes #140 See merge request !402
This commit is contained in:
commit
cdf95a47dd
|
@ -479,8 +479,8 @@ if($duplicate_alert){
|
|||
id_alert, al_field1, al_field2, al_field3,
|
||||
al_field4, al_field5, al_field6, al_field7,
|
||||
al_field8, al_field9, al_field10, al_field11,
|
||||
al_field12, al_field13, al_field14, al_field15,
|
||||
description, agent, custom_oid, oid, time_threshold,
|
||||
al_field12, al_field13, al_field14, al_field15,
|
||||
description, alert_type, agent, custom_oid, oid, time_threshold,
|
||||
times_fired, last_fired, max_alerts, min_alerts,
|
||||
internal_counter, priority,
|
||||
".db_escape_key_identifier('_snmp_f1_') .",
|
||||
|
@ -509,14 +509,14 @@ if($duplicate_alert){
|
|||
order_16, order_17, order_18, order_19, order_20)
|
||||
VALUES
|
||||
(%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s',
|
||||
'%s', '%s', %d, %d, %d, %d, %d, %d, %d, '%s', '%s', '%s', '%s', '%s', '%s',
|
||||
'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s',
|
||||
'%s', %d, '%s', %d, %d, '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d',
|
||||
'%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d', '%d')",
|
||||
'%s', '%s', '%s', '%s', %d, '%s', '%s', '%s', %d, %d, %d, %d, %d, %d, %d, '%s', '%s', '%s',
|
||||
'%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s',
|
||||
'%s', '%s', '%s', '%s', %d, '%s', %d, %d, %d, %d, %d, %d, %d, %d,
|
||||
%d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d)",
|
||||
$id_alert, $al_field1, $al_field2, $al_field3, $al_field4, $al_field5,
|
||||
$al_field6, $al_field7, $al_field8, $al_field9, $al_field10,
|
||||
$al_field11, $al_field12, $al_field13, $al_field14, $al_field15,
|
||||
$description, $source_ip, $custom_value, $oid, $time_threshold,
|
||||
$description, $alert_type, $source_ip, $custom_value, $oid, $time_threshold,
|
||||
$times_fired, $last_fired, $max_alerts, $min_alerts, $internal_counter,
|
||||
$priority, $custom_oid_data_1, $custom_oid_data_2, $custom_oid_data_3,
|
||||
$custom_oid_data_4, $custom_oid_data_5, $custom_oid_data_6,
|
||||
|
|
Loading…
Reference in New Issue