From 1284ac8e49bc996e9eb6b1f3a5f7ca3691756dc9 Mon Sep 17 00:00:00 2001 From: Jueli Moon Aung Date: Wed, 9 May 2018 05:26:43 +0000 Subject: [PATCH] Symmetric Batch Monitoring and Alert --- db/sym_master.sql | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/db/sym_master.sql b/db/sym_master.sql index 3677fc2f..57408181 100755 --- a/db/sym_master.sql +++ b/db/sym_master.sql @@ -825,6 +825,49 @@ delete from sym_node; values('order_queue_stations','sx_2_cloud', 200, current_timestamp, current_timestamp); # End Oqs Channel +### Batch Monitoring ###### + +#Monitor# +insert into sym_monitor (monitor_id, node_group_id, external_id, type, threshold, run_period, run_count, severity_level, enabled, create_time, last_update_by, last_update_time) +value ('SystemBatchErrorMonitor', 'All', 'All', 'batchError', 1, 1, 1, 300, 1, now(), 'admin', now()); + +insert into sym_monitor (monitor_id, node_group_id, external_id, type, threshold, run_period, run_count, severity_level, enabled, create_time, last_update_by, last_update_time) +value ('SystemBatchUnsendMonitor', 'All', 'All', 'batchUnsent', 10, 1, 1, 100, 1, now(), 'admin', now()); + +insert into sym_monitor (monitor_id, node_group_id, external_id, type, threshold, run_period, run_count, severity_level, enabled, create_time, last_update_by, last_update_time) +value ('SystemLogMonitor', 'All', 'All', 'log', 1, 1, 1, 300, 1, now(), 'admin', now()); + +#Parameter# +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.allow.untrusted.cert', 'true', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.auth', 'true', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.from', 'sym_alert@smartsales.asia', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.host', 'smtp.mailgun.org', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.password', '1cc051ec3edf699d17b78e5cd14ceb6b', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.port', '465', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.starttls', 'false', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.transport', 'smtps', now(), 'admin', now()); + +insert into sym_parameter (external_id, node_group_id, param_key, param_value, create_time, last_update_by, last_update_time) +value ('All', 'All', 'smtp.user', 'postmaster@smartsales.asia', now(), 'admin', now()); + + + +### End of Batch Monitoring #### insert into sym_node (node_id,node_group_id,external_id,sync_enabled,sync_url,schema_version,symmetric_version,database_type,database_version,heartbeat_time,timezone_offset,batch_to_send_count,batch_in_error_count,created_at_node_id) values ('000','sx','000',1,null,null,null,null,null,current_timestamp,null,0,0,'000');