new tests for Icinga API in QSU
This commit is contained in:
parent
31835a1e40
commit
c4fd94fdb0
8
Icinga QSU NG/API Time Test/folder.bru
Normal file
8
Icinga QSU NG/API Time Test/folder.bru
Normal file
@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: API Time Test
|
||||
seq: 7
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
28
Icinga QSU NG/API Time Test/full rights/Host query match.bru
Normal file
28
Icinga QSU NG/API Time Test/full rights/Host query match.bru
Normal file
@ -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
|
||||
}
|
||||
31
Icinga QSU NG/API Time Test/full rights/Host query.bru
Normal file
31
Icinga QSU NG/API Time Test/full rights/Host query.bru
Normal file
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
31
Icinga QSU NG/API Time Test/full rights/Service query.bru
Normal file
31
Icinga QSU NG/API Time Test/full rights/Service query.bru
Normal file
@ -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
|
||||
}
|
||||
17
Icinga QSU NG/API Time Test/full rights/Status.bru
Normal file
17
Icinga QSU NG/API Time Test/full rights/Status.bru
Normal file
@ -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
|
||||
}
|
||||
13
Icinga QSU NG/API Time Test/full rights/folder.bru
Normal file
13
Icinga QSU NG/API Time Test/full rights/folder.bru
Normal file
@ -0,0 +1,13 @@
|
||||
meta {
|
||||
name: full rights
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: basic
|
||||
}
|
||||
|
||||
auth:basic {
|
||||
username: icinga2_admin
|
||||
password: blubblub
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
31
Icinga QSU NG/API Time Test/rights w-o filter/Host query.bru
Normal file
31
Icinga QSU NG/API Time Test/rights w-o filter/Host query.bru
Normal file
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
17
Icinga QSU NG/API Time Test/rights w-o filter/Status.bru
Normal file
17
Icinga QSU NG/API Time Test/rights w-o filter/Status.bru
Normal file
@ -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
|
||||
}
|
||||
13
Icinga QSU NG/API Time Test/rights w-o filter/folder.bru
Normal file
13
Icinga QSU NG/API Time Test/rights w-o filter/folder.bru
Normal file
@ -0,0 +1,13 @@
|
||||
meta {
|
||||
name: rights w/o filter
|
||||
seq: 4
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: basic
|
||||
}
|
||||
|
||||
auth:basic {
|
||||
username: IcingaDB-Web
|
||||
password: eeSo8Ru9aegoogoov8Koh9geerez9yei
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
meta {
|
||||
name: rights with filter LIN
|
||||
seq: 3
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: basic
|
||||
}
|
||||
|
||||
auth:basic {
|
||||
username: oas_lin_ansible
|
||||
password: RqoGniSopSHN2JbYzfmoUBIQ9aTSbLVkyf1lgoLRcQehdvU61EAvzCmhHw8OJfw2
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
meta {
|
||||
name: rights with filter NBANK
|
||||
seq: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: basic
|
||||
}
|
||||
|
||||
auth:basic {
|
||||
username: oas_fin1_downtime
|
||||
password: 0BsVWHXsB7BsDdEarDzBsq9a1h
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user