mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
add native python client example
This commit is contained in:
@@ -25,6 +25,11 @@ For example:
|
|||||||
-H "application/json" \
|
-H "application/json" \
|
||||||
-d "{ "service_name" : "name", "token" : "secret_token" } \
|
-d "{ "service_name" : "name", "token" : "secret_token" } \
|
||||||
https://server:port/
|
https://server:port/
|
||||||
|
|
||||||
|
Or directly in native python:
|
||||||
|
|
||||||
|
import requests
|
||||||
|
requests.post("https://server:port/", json={"service_name" : "name", "token" : "secret_token" })
|
||||||
|
|
||||||
## Icinga (Serverside) Requests
|
## Icinga (Serverside) Requests
|
||||||
Use the [python-script]() as a command to execute, you can pass *protocol*, *host*, *port* and *service\_name* as arguments.
|
Use the [python-script]() as a command to execute, you can pass *protocol*, *host*, *port* and *service\_name* as arguments.
|
||||||
|
|||||||
Reference in New Issue
Block a user