Service: {{ service.service }}
{% if service.staticly_configured %}
{% endif %}
{% if not service.staticly_configured %}
Modify
Delete
{% else %}
This service is staticly configured, to edit or delete it, you have to modify the
configuration file on the server.
{% endif %}
Show in Icinga
{% if status_list | length > 0 %}
{{ status_list[0].status }} submitted on {{ status_list[0].human_date() }}
{% else %}
No status for this service submitted
{% endif %}
Timeout: {{ service.timeout }} days
Owner: {{ service.owner }}
Secret Token: {{ service.token }}
Curl
curl -X POST \
-H "Content-Type: application/json" \
-d '{ "service" : "{{ service.service }}",
"token" : "{{ service.token }}",
"status" : "OK", "info" : "Free Text Information here" }' \
{{ flask.request.url_root.replace("http://", "https://" )}}report
Python
import requests
requests.post("{{ flask.request.url_root.replace("http://", "https://")}}report",
json= { "service" : "{{ service.service }}",
"token" : "{{ service.token }}",
"status" : "OK",
"info" : "additional information" })
| Date |
Status |
Info |
{% for status in status_list %}
| {{ status.human_date() }} |
{{ status.status }} |
{{ status.info_text }} |
{% endfor %}