From c4fd94fdb0b6ed03c706095992c8e1b487c0b782 Mon Sep 17 00:00:00 2001 From: Marco Kohn Date: Wed, 2 Sep 2026 16:11:18 +0200 Subject: [PATCH] new tests for Icinga API in QSU --- Icinga QSU NG/API Time Test/folder.bru | 8 +++++ .../full rights/Host query match.bru | 28 +++++++++++++++ .../API Time Test/full rights/Host query.bru | 31 +++++++++++++++++ .../full rights/Service query Host-Array.bru | 34 +++++++++++++++++++ .../full rights/Service query LIN.bru | 34 +++++++++++++++++++ .../full rights/Service query match nbank.bru | 28 +++++++++++++++ .../full rights/Service query match.bru | 28 +++++++++++++++ .../full rights/Service query nabnk.bru | 31 +++++++++++++++++ .../full rights/Service query.bru | 31 +++++++++++++++++ .../API Time Test/full rights/Status.bru | 17 ++++++++++ .../API Time Test/full rights/folder.bru | 13 +++++++ .../rights w-o filter/Host query match.bru | 28 +++++++++++++++ .../rights w-o filter/Host query.bru | 31 +++++++++++++++++ .../Service query Host-Array.bru | 34 +++++++++++++++++++ .../rights w-o filter/Service query LIN.bru | 34 +++++++++++++++++++ .../Service query match nbank.bru | 28 +++++++++++++++ .../rights w-o filter/Service query match.bru | 28 +++++++++++++++ .../rights w-o filter/Service query nabnk.bru | 31 +++++++++++++++++ .../rights w-o filter/Service query.bru | 31 +++++++++++++++++ .../rights w-o filter/Status.bru | 17 ++++++++++ .../rights w-o filter/folder.bru | 13 +++++++ .../Host query Host-Array.bru | 34 +++++++++++++++++++ .../rights with filter LIN/Host query.bru | 34 +++++++++++++++++++ .../Service query Host-Array.bru | 34 +++++++++++++++++++ .../rights with filter LIN/Service query.bru | 34 +++++++++++++++++++ .../rights with filter LIN/Status.bru | 17 ++++++++++ .../rights with filter LIN/folder.bru | 13 +++++++ .../Host query match.bru | 28 +++++++++++++++ .../rights with filter NBANK/Host query.bru | 31 +++++++++++++++++ .../Service query match.bru | 28 +++++++++++++++ .../Service query.bru | 31 +++++++++++++++++ .../rights with filter NBANK/Status.bru | 17 ++++++++++ .../rights with filter NBANK/folder.bru | 13 +++++++ 33 files changed, 872 insertions(+) create mode 100644 Icinga QSU NG/API Time Test/folder.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Host query match.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Host query.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Service query Host-Array.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Service query LIN.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Service query match nbank.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Service query match.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Service query nabnk.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Service query.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/Status.bru create mode 100644 Icinga QSU NG/API Time Test/full rights/folder.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Host query match.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Host query.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Service query Host-Array.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Service query LIN.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Service query match nbank.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Service query match.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Service query nabnk.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Service query.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/Status.bru create mode 100644 Icinga QSU NG/API Time Test/rights w-o filter/folder.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter LIN/Host query Host-Array.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter LIN/Host query.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter LIN/Service query Host-Array.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter LIN/Service query.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter LIN/Status.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter LIN/folder.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter NBANK/Host query match.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter NBANK/Host query.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter NBANK/Service query match.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter NBANK/Service query.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter NBANK/Status.bru create mode 100644 Icinga QSU NG/API Time Test/rights with filter NBANK/folder.bru diff --git a/Icinga QSU NG/API Time Test/folder.bru b/Icinga QSU NG/API Time Test/folder.bru new file mode 100644 index 0000000..1278c41 --- /dev/null +++ b/Icinga QSU NG/API Time Test/folder.bru @@ -0,0 +1,8 @@ +meta { + name: API Time Test + seq: 7 +} + +auth { + mode: inherit +} diff --git a/Icinga QSU NG/API Time Test/full rights/Host query match.bru b/Icinga QSU NG/API Time Test/full rights/Host query match.bru new file mode 100644 index 0000000..e5458d3 --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Host query match.bru @@ -0,0 +1,28 @@ +meta { + name: Host query match + type: http + seq: 3 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"ic2-mgt01vt.monitoring.noris.de\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Host query.bru b/Icinga QSU NG/API Time Test/full rights/Host query.bru new file mode 100644 index 0000000..109e41b --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Host query.bru @@ -0,0 +1,31 @@ +meta { + name: Host query + type: http + seq: 2 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "ic2-mgt01vt.monitoring.noris.de" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Service query Host-Array.bru b/Icinga QSU NG/API Time Test/full rights/Service query Host-Array.bru new file mode 100644 index 0000000..611ce74 --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Service query Host-Array.bru @@ -0,0 +1,34 @@ +meta { + name: Service query Host-Array + type: http + seq: 9 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name in myhosts", + "filter_vars": { + "myhosts": [ + "swarm01vp.linmanagement.noris.de", "swarm02vp.linmanagement.noris.de", "swarm03vp.linmanagement.noris.de" + ] + }, + "attrs": ["vars","state","last_check_result","acknowledgement"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Service query LIN.bru b/Icinga QSU NG/API Time Test/full rights/Service query LIN.bru new file mode 100644 index 0000000..2e4d89e --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Service query LIN.bru @@ -0,0 +1,34 @@ +meta { + name: Service query LIN + type: http + seq: 8 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "((host.name == system_0) || (host.name == system_1) || (host.name == system_2))", + "filter_vars": { + "system_0": "swarm01vp.linmanagement.noris.de", + "system_1": "swarm02vp.linmanagement.noris.de", + "system_2": "swarm03vp.linmanagement.noris.de" + }, + "attrs": ["vars","state","last_check_result","acknowledgement"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Service query match nbank.bru b/Icinga QSU NG/API Time Test/full rights/Service query match nbank.bru new file mode 100644 index 0000000..b8153d6 --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Service query match nbank.bru @@ -0,0 +1,28 @@ +meta { + name: Service query match nbank + type: http + seq: 7 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"*app-rocket01vp.ad.nbank.de*\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Service query match.bru b/Icinga QSU NG/API Time Test/full rights/Service query match.bru new file mode 100644 index 0000000..46087eb --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Service query match.bru @@ -0,0 +1,28 @@ +meta { + name: Service query match + type: http + seq: 5 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"ic2-mgt01vt.monitoring.noris.de\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Service query nabnk.bru b/Icinga QSU NG/API Time Test/full rights/Service query nabnk.bru new file mode 100644 index 0000000..2bb4a93 --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Service query nabnk.bru @@ -0,0 +1,31 @@ +meta { + name: Service query nabnk + type: http + seq: 6 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "app-rocket01vp.ad.nbank.de" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Service query.bru b/Icinga QSU NG/API Time Test/full rights/Service query.bru new file mode 100644 index 0000000..a476539 --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Service query.bru @@ -0,0 +1,31 @@ +meta { + name: Service query + type: http + seq: 4 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "ic2-mgt01vt.monitoring.noris.de" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/Status.bru b/Icinga QSU NG/API Time Test/full rights/Status.bru new file mode 100644 index 0000000..650632b --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/Status.bru @@ -0,0 +1,17 @@ +meta { + name: Status + type: http + seq: 1 +} + +get { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/status/ + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/full rights/folder.bru b/Icinga QSU NG/API Time Test/full rights/folder.bru new file mode 100644 index 0000000..6b32ab2 --- /dev/null +++ b/Icinga QSU NG/API Time Test/full rights/folder.bru @@ -0,0 +1,13 @@ +meta { + name: full rights + seq: 1 +} + +auth { + mode: basic +} + +auth:basic { + username: icinga2_admin + password: blubblub +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Host query match.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Host query match.bru new file mode 100644 index 0000000..e5458d3 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Host query match.bru @@ -0,0 +1,28 @@ +meta { + name: Host query match + type: http + seq: 3 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"ic2-mgt01vt.monitoring.noris.de\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Host query.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Host query.bru new file mode 100644 index 0000000..109e41b --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Host query.bru @@ -0,0 +1,31 @@ +meta { + name: Host query + type: http + seq: 2 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "ic2-mgt01vt.monitoring.noris.de" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Service query Host-Array.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Service query Host-Array.bru new file mode 100644 index 0000000..611ce74 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Service query Host-Array.bru @@ -0,0 +1,34 @@ +meta { + name: Service query Host-Array + type: http + seq: 9 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name in myhosts", + "filter_vars": { + "myhosts": [ + "swarm01vp.linmanagement.noris.de", "swarm02vp.linmanagement.noris.de", "swarm03vp.linmanagement.noris.de" + ] + }, + "attrs": ["vars","state","last_check_result","acknowledgement"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Service query LIN.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Service query LIN.bru new file mode 100644 index 0000000..2e4d89e --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Service query LIN.bru @@ -0,0 +1,34 @@ +meta { + name: Service query LIN + type: http + seq: 8 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "((host.name == system_0) || (host.name == system_1) || (host.name == system_2))", + "filter_vars": { + "system_0": "swarm01vp.linmanagement.noris.de", + "system_1": "swarm02vp.linmanagement.noris.de", + "system_2": "swarm03vp.linmanagement.noris.de" + }, + "attrs": ["vars","state","last_check_result","acknowledgement"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Service query match nbank.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Service query match nbank.bru new file mode 100644 index 0000000..b8153d6 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Service query match nbank.bru @@ -0,0 +1,28 @@ +meta { + name: Service query match nbank + type: http + seq: 7 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"*app-rocket01vp.ad.nbank.de*\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Service query match.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Service query match.bru new file mode 100644 index 0000000..46087eb --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Service query match.bru @@ -0,0 +1,28 @@ +meta { + name: Service query match + type: http + seq: 5 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"ic2-mgt01vt.monitoring.noris.de\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Service query nabnk.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Service query nabnk.bru new file mode 100644 index 0000000..2bb4a93 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Service query nabnk.bru @@ -0,0 +1,31 @@ +meta { + name: Service query nabnk + type: http + seq: 6 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "app-rocket01vp.ad.nbank.de" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Service query.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Service query.bru new file mode 100644 index 0000000..a476539 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Service query.bru @@ -0,0 +1,31 @@ +meta { + name: Service query + type: http + seq: 4 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "ic2-mgt01vt.monitoring.noris.de" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/Status.bru b/Icinga QSU NG/API Time Test/rights w-o filter/Status.bru new file mode 100644 index 0000000..650632b --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/Status.bru @@ -0,0 +1,17 @@ +meta { + name: Status + type: http + seq: 1 +} + +get { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/status/ + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights w-o filter/folder.bru b/Icinga QSU NG/API Time Test/rights w-o filter/folder.bru new file mode 100644 index 0000000..060917d --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights w-o filter/folder.bru @@ -0,0 +1,13 @@ +meta { + name: rights w/o filter + seq: 4 +} + +auth { + mode: basic +} + +auth:basic { + username: IcingaDB-Web + password: eeSo8Ru9aegoogoov8Koh9geerez9yei +} diff --git a/Icinga QSU NG/API Time Test/rights with filter LIN/Host query Host-Array.bru b/Icinga QSU NG/API Time Test/rights with filter LIN/Host query Host-Array.bru new file mode 100644 index 0000000..6728772 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter LIN/Host query Host-Array.bru @@ -0,0 +1,34 @@ +meta { + name: Host query Host-Array + type: http + seq: 3 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name in myhosts", + "filter_vars": { + "myhosts": [ + "swarm01vp.linmanagement.noris.de", "swarm01vp.linmanagement.noris.de", "swarm01vp.linmanagement.noris.de" + ] + }, + "attrs": ["vars"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter LIN/Host query.bru b/Icinga QSU NG/API Time Test/rights with filter LIN/Host query.bru new file mode 100644 index 0000000..475e88a --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter LIN/Host query.bru @@ -0,0 +1,34 @@ +meta { + name: Host query + type: http + seq: 2 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "((host.name == system_0) || (host.name == system_1) || (host.name == system_2))", + "filter_vars": { + "system_0": "swarm01vp.linmanagement.noris.de", + "system_1": "swarm02vp.linmanagement.noris.de", + "system_2": "swarm03vp.linmanagement.noris.de" + }, + "attrs": ["vars"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter LIN/Service query Host-Array.bru b/Icinga QSU NG/API Time Test/rights with filter LIN/Service query Host-Array.bru new file mode 100644 index 0000000..a4c97c5 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter LIN/Service query Host-Array.bru @@ -0,0 +1,34 @@ +meta { + name: Service query Host-Array + type: http + seq: 5 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name in myhosts", + "filter_vars": { + "myhosts": [ + "swarm01vp.linmanagement.noris.de", "swarm01vp.linmanagement.noris.de", "swarm01vp.linmanagement.noris.de" + ] + }, + "attrs": ["vars","state","last_check_result","acknowledgement"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter LIN/Service query.bru b/Icinga QSU NG/API Time Test/rights with filter LIN/Service query.bru new file mode 100644 index 0000000..8ae0a1c --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter LIN/Service query.bru @@ -0,0 +1,34 @@ +meta { + name: Service query + type: http + seq: 4 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "((host.name == system_0) || (host.name == system_1) || (host.name == system_2))", + "filter_vars": { + "system_0": "swarm01vp.linmanagement.noris.de", + "system_1": "swarm02vp.linmanagement.noris.de", + "system_2": "swarm03vp.linmanagement.noris.de" + }, + "attrs": ["vars","state","last_check_result","acknowledgement"] + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter LIN/Status.bru b/Icinga QSU NG/API Time Test/rights with filter LIN/Status.bru new file mode 100644 index 0000000..650632b --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter LIN/Status.bru @@ -0,0 +1,17 @@ +meta { + name: Status + type: http + seq: 1 +} + +get { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/status/ + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter LIN/folder.bru b/Icinga QSU NG/API Time Test/rights with filter LIN/folder.bru new file mode 100644 index 0000000..fc5bb44 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter LIN/folder.bru @@ -0,0 +1,13 @@ +meta { + name: rights with filter LIN + seq: 3 +} + +auth { + mode: basic +} + +auth:basic { + username: oas_lin_ansible + password: RqoGniSopSHN2JbYzfmoUBIQ9aTSbLVkyf1lgoLRcQehdvU61EAvzCmhHw8OJfw2 +} diff --git a/Icinga QSU NG/API Time Test/rights with filter NBANK/Host query match.bru b/Icinga QSU NG/API Time Test/rights with filter NBANK/Host query match.bru new file mode 100644 index 0000000..dad402d --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter NBANK/Host query match.bru @@ -0,0 +1,28 @@ +meta { + name: Host query match + type: http + seq: 3 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"*app-rocket01vp.ad.nbank.de*\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter NBANK/Host query.bru b/Icinga QSU NG/API Time Test/rights with filter NBANK/Host query.bru new file mode 100644 index 0000000..97fcd81 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter NBANK/Host query.bru @@ -0,0 +1,31 @@ +meta { + name: Host query + type: http + seq: 2 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/hosts + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "*app-rocket01vp.ad.nbank.de*" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter NBANK/Service query match.bru b/Icinga QSU NG/API Time Test/rights with filter NBANK/Service query match.bru new file mode 100644 index 0000000..93594c4 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter NBANK/Service query match.bru @@ -0,0 +1,28 @@ +meta { + name: Service query match + type: http + seq: 5 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "match(\"*app-rocket01vp.ad.nbank.de*\", host.name)" + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter NBANK/Service query.bru b/Icinga QSU NG/API Time Test/rights with filter NBANK/Service query.bru new file mode 100644 index 0000000..26de9dc --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter NBANK/Service query.bru @@ -0,0 +1,31 @@ +meta { + name: Service query + type: http + seq: 4 +} + +post { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/objects/services + body: json + auth: inherit +} + +headers { + Accept: application/json + X-HTTP-Method-Override: GET +} + +body:json { + { + "filter": "host.name == mysystem1", + "filter_vars": { + "mysystem1": "app-rocket01vp.ad.nbank.de" + } + } +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter NBANK/Status.bru b/Icinga QSU NG/API Time Test/rights with filter NBANK/Status.bru new file mode 100644 index 0000000..650632b --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter NBANK/Status.bru @@ -0,0 +1,17 @@ +meta { + name: Status + type: http + seq: 1 +} + +get { + url: https://ic2-master01vt.monitoring.noris.de:5665/v1/status/ + body: none + auth: inherit +} + +settings { + encodeUrl: true + timeout: 0 + forwardAuthorizationHeader: false +} diff --git a/Icinga QSU NG/API Time Test/rights with filter NBANK/folder.bru b/Icinga QSU NG/API Time Test/rights with filter NBANK/folder.bru new file mode 100644 index 0000000..f9429e7 --- /dev/null +++ b/Icinga QSU NG/API Time Test/rights with filter NBANK/folder.bru @@ -0,0 +1,13 @@ +meta { + name: rights with filter NBANK + seq: 2 +} + +auth { + mode: basic +} + +auth:basic { + username: oas_fin1_downtime + password: 0BsVWHXsB7BsDdEarDzBsq9a1h +}