diff --git a/Gitlab-Foo/.gitignore b/Gitlab-Foo/.gitignore new file mode 100644 index 0000000..e19311f --- /dev/null +++ b/Gitlab-Foo/.gitignore @@ -0,0 +1,9 @@ +# Secrets +.env* + +# Dependencies +node_modules + +# OS files +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/Gitlab-Foo/Project Ressource groups.yml b/Gitlab-Foo/Project Ressource groups.yml new file mode 100644 index 0000000..7903233 --- /dev/null +++ b/Gitlab-Foo/Project Ressource groups.yml @@ -0,0 +1,15 @@ +info: + name: Project Ressource groups + type: http + seq: 1 + +http: + method: GET + url: https://gitlab.noris.net/api/v4/projects/11015/resource_groups/ + auth: inherit + +settings: + encodeUrl: true + timeout: 0 + followRedirects: true + maxRedirects: 5 diff --git a/Gitlab-Foo/opencollection.yml b/Gitlab-Foo/opencollection.yml new file mode 100644 index 0000000..d8e8fdc --- /dev/null +++ b/Gitlab-Foo/opencollection.yml @@ -0,0 +1,26 @@ +opencollection: 1.0.0 + +info: + name: Gitlab-Foo +config: + proxy: + inherit: true + config: + protocol: http + hostname: "" + port: "" + auth: + username: "" + password: "" + bypassProxy: "" + +request: + headers: + - name: PRIVATE-TOKEN + value: glpat-J_7ssD2sY7eLmhuqWJRR +bundled: false +extensions: + bruno: + ignore: + - node_modules + - .git diff --git a/Icinga PROD/Basic Zone INfo.bru b/Icinga PROD/Basic Zone INfo.bru new file mode 100644 index 0000000..930e887 --- /dev/null +++ b/Icinga PROD/Basic Zone INfo.bru @@ -0,0 +1,11 @@ +meta { + name: Basic Zone INfo + type: http + seq: 7 +} + +get { + url: https://monitoring-api.noris.net:5665/v1/objects/zones + body: none + auth: inherit +} diff --git a/Icinga PROD/Test.bru b/Icinga PROD/Test.bru index d8065dc..ae2a7ab 100644 --- a/Icinga PROD/Test.bru +++ b/Icinga PROD/Test.bru @@ -5,7 +5,7 @@ meta { } get { - url: https://monitoring-api-qsu.noris.net:5665/v1/status/ + url: https://monitoring-api.noris.net:5665/v1/status/ body: none auth: inherit } diff --git a/Icinga PROD/collection.bru b/Icinga PROD/collection.bru index 9ffe729..4047fe1 100644 --- a/Icinga PROD/collection.bru +++ b/Icinga PROD/collection.bru @@ -8,5 +8,5 @@ auth { auth:basic { username: icinga2_admin - password: 1Yl21Kcl23DDET8P9qhSFXXeLy9kiCTS7E3uQmIztwygQbnEPHvsBMJk3ZVhmJ72GuWOPPfLkrkBhnc12Kz7dYJyVlNbBxauGbmeCtntpdonjLW9tdAra9W5JmZVTPer + password: 682itjkKzdajLAKkb4upvCHefe29CTdD4pwCoLt3xEMvSkpJg1xR1LR2xWh73pkG9EjfXo5rQC23xcxJFpOjwWEsAZU4lYmW6Kd64KgkNGxgZaZ1whs3FlDd1zNBlGqa } diff --git a/Icinga QSU NG/Downtimes-single.bru b/Icinga QSU NG/Downtimes-single.bru new file mode 100644 index 0000000..316adc2 --- /dev/null +++ b/Icinga QSU NG/Downtimes-single.bru @@ -0,0 +1,29 @@ +meta { + name: Downtimes-single + type: http + seq: 7 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/downtimes + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == \"ic2-mgt01vt.monitoring.noris.de\" && host.vars.ola_owner == \"CTE/BASE\"", + "attrs": ["host_name", "service_name", "active","start_time","end_time"], + "joins": ["host.vars", "host.name", "service.name", "service.vars"] + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/Icinga QSU NG/Downtimes-test.bru b/Icinga QSU NG/Downtimes-test.bru new file mode 100644 index 0000000..b4257eb --- /dev/null +++ b/Icinga QSU NG/Downtimes-test.bru @@ -0,0 +1,29 @@ +meta { + name: Downtimes-test + type: http + seq: 6 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/downtimes + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == \"ic2-mgt01vt.monitoring.noris.de\" && host.vars.ola_owner == \"CTE/BASE\"", + "attrs": ["host_name", "service_name", "active","start_time","end_time"], + "joins": ["host.vars", "host.name", "service.name", "service.vars"] + } +} + +settings { + encodeUrl: true + timeout: 0 +} diff --git a/Icinga QSU NG/collection.bru b/Icinga QSU NG/collection.bru index 499912d..182620d 100644 --- a/Icinga QSU NG/collection.bru +++ b/Icinga QSU NG/collection.bru @@ -7,6 +7,6 @@ auth { } auth:basic { - username: Icinga-Director - password: Iiphuo8f + username: icinga2_admin + password: blubblub } diff --git a/Icinga QSU/Basic Host.bru b/Icinga QSU/Basic Host.bru new file mode 100644 index 0000000..b937510 --- /dev/null +++ b/Icinga QSU/Basic Host.bru @@ -0,0 +1,11 @@ +meta { + name: Basic Host + type: http + seq: 8 +} + +get { + url: https://monitoring-api-qsu.noris.net:5665/v1/objects/hosts/web01vt.monitoring.noris.de + body: none + auth: inherit +} diff --git a/Icinga QSU/Basic Zone Info.bru b/Icinga QSU/Basic Zone Info.bru new file mode 100644 index 0000000..a38777c --- /dev/null +++ b/Icinga QSU/Basic Zone Info.bru @@ -0,0 +1,11 @@ +meta { + name: Basic Zone Info + type: http + seq: 9 +} + +get { + url: https://monitoring-api-qsu.noris.net:5665/v1/objects/zones + body: none + auth: inherit +}