mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-09 08:48:38 +01:00
wip:
This commit is contained in:
@@ -83,7 +83,15 @@ def build_icinga_link_for_service(user, service_name, static_configured, app):
|
||||
url_fmt = "{base}/icingaweb2/monitoring/list/services?service={service}&modifyFilter=1"
|
||||
name = service_name
|
||||
|
||||
return url_fmt.format(base=app.config["ICINGA_WEB_URL"],
|
||||
host=app.config["ASYNC_ICINGA_DUMMY_HOST"],
|
||||
icinga_web_url = app.config.get("ICINGA_WEB_URL")
|
||||
if not icinga_web_url:
|
||||
icinga_web_url = "ICINGA_WEB_URL_NOT_SET:"
|
||||
|
||||
dummy_host=app.config.get("ASYNC_ICINGA_DUMMY_HOST")
|
||||
if not dummy_host:
|
||||
dummy_host = "ASYNC_ICINGA_DUMMY_HOST_NOT_SET:"
|
||||
|
||||
return url_fmt.format(base=icinga_web_url,
|
||||
host=dummy_host,
|
||||
service=name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user