diff --git a/inst/testing/nemo1/mynemo-mitigation-init-db-final.sh b/inst/testing/nemo1/mynemo-mitigation-init-db-final.sh index 3cf9646d6ce8de9e0ae19c396431f5a408f12256..3b6fabbf09d5460acd3b4a0c10a2342108aa522e 100755 --- a/inst/testing/nemo1/mynemo-mitigation-init-db-final.sh +++ b/inst/testing/nemo1/mynemo-mitigation-init-db-final.sh @@ -10,4 +10,6 @@ docker exec -ti nemo_mitigated_1 /services/inst/nemo-erkennung/bin/nemo-dbadmin docker exec -ti nemo_nemodb_1 psql -U nemo -c "INSERT INTO router_nets (router_id, net_id) VALUES (1, 1), (1, 2), (1, 3)" +cat /nemo-all/nemo-initial-detectors1.sql | docker exec -i nemo_nemodb_1 psql -U nemo nemo + diff --git a/inst/testing/nemo1/nemo-initial-detectors1.sql b/inst/testing/nemo1/nemo-initial-detectors1.sql new file mode 100644 index 0000000000000000000000000000000000000000..ac412066b8f5d5a5b6355e58a1e4828dd10fa0fc --- /dev/null +++ b/inst/testing/nemo1/nemo-initial-detectors1.sql @@ -0,0 +1,66 @@ +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 12.22 (Debian 12.22-1.pgdg120+1) +-- Dumped by pg_dump version 12.22 (Debian 12.22-1.pgdg120+1) + + +-- +-- Data for Name: trigger; Type: TABLE DATA; Schema: public; Owner: nemo +-- + +COPY public.trigger (id, name, description, trigger_type, autostart, email, description_template, subject_template, body_template, short_open_template, long_open_template, short_upgrade_template, long_upgrade_template, short_close_template, long_close_template, default_filter, do_not_send_mails, mail_analysis_severity) FROM stdin; +1 evw time_window t \N f 100 +\. + + +-- +-- Data for Name: detector; Type: TABLE DATA; Schema: public; Owner: nemo +-- + +COPY public.detector (id, name, detector_type, num_threads, autostart, visibility, objectfilter) FROM stdin; +1 th1 threshold 1 t name oid == "net_2" +\. + + +-- Data for Name: detector_param; Type: TABLE DATA; Schema: public; Owner: nemo +-- + +COPY public.detector_param (id, object_id, object_type, name, val, detector_id) FROM stdin; +56 \N \N field_name numbytes 1 +57 \N \N info_above 10000 1 +58 \N \N warn_above 20000 1 +59 \N \N critical_above 50000 1 +\. + + +-- +-- Data for Name: tag; Type: TABLE DATA; Schema: public; Owner: nemo +-- + +COPY public.tag (id, name, scope, expired) FROM stdin; +\. + + +-- +-- Data for Name: tagged_item; Type: TABLE DATA; Schema: public; Owner: nemo +-- + +COPY public.tagged_item (id, object_id, content_type_id, tag_id, automatic) FROM stdin; +\. + + +-- +-- Data for Name: timewindowtrigger; Type: TABLE DATA; Schema: public; Owner: nemo +-- + +COPY public.timewindowtrigger (triggerconfig_ptr_id, per_object, per_event_type, per_detector, open_conditions, upgrade_conditions1, upgrade_conditions2, close_conditions) FROM stdin; +1 f f t {"severity":"0","op":"all","conds":[{"type":"timewindow","comp":"gt","count":"1","minutes":"5","filter":[{"type":"detector_id","comp":"eq","val":"1"}],"filter_op":"all"}]} {"severity":"0","op":"all","conds":[]} {"severity":"0","op":"all","conds":[]} {"op":"all","conds":[]} +\. + + +-- +-- PostgreSQL database dump complete +-- +