-
Notifications
You must be signed in to change notification settings - Fork 0
/
autotaskTemplate.j2
35 lines (33 loc) · 1.67 KB
/
autotaskTemplate.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Host: {{ args.host_name }}
Backend/Site: {{ args.host_backend_name }}
Acknowledged by: {{ args.acknowledged_by }}
{% if host_statuses %}
-----------------------------------------------------------------------------------
Host Problems
-----------------------------------------------------------------------------------
{% for host_status in host_statuses %}
Hostname: {{ host_status['name']}}
Adress: {{ host_status['address']}}
Last state change: {{ host_status['last_state_change']}}
Message: {{ host_status['plugin_output']}}
{% endfor %}
-----------------------------------------------------------------------------------
{% endif %}
{% if host_service_statuses %}
-----------------------------------------------------------------------------------
Service Problems
-----------------------------------------------------------------------------------
{% for host_service_status in host_service_statuses %}
State: {{ host_service_status['state'] }}
Description: {{ host_service_status['description'] }}
Last state change: {{ host_service_status['last_state_change'] }}
Message: {{ host_service_status['plugin_output'] }}
{% endfor %}
-----------------------------------------------------------------------------------
{% endif %}
For more information regarding services on this host, click the link below:
https://ver-monitor-01.okh.is/thruk/#cgi-bin/status.cgi?hidesearch=2&s0_op=%7E&s0_type=search&add_default_service_filter=1&s0_value={{ args.host_name }}
More info for host on Sysvik:
https://www.sysvik.com/go/ip={{ args.host_name }}
If you can't find the hostname on Sysvik, try searching for ip address instead:
https://www.sysvik.com/go/{{ args.host_address }}