blob: 9ad49e1402f66a66e7c22f8dd0cea08d6ae450fa (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{ ... }:
let
serviceTemplate = rest: {
host_name = "eban.bzh";
use = "external-web-service";
contacts = "eban";
contact_groups = "null";
check_interval = "15";
servicegroups = "webstatus-resources";
_webstatus_namespace = "eban";
} // rest;
in
{
contact = {
eban = {
use = "generic-contact";
host_notification_commands = "notify-host-eban-url";
service_notification_commands = "notify-service-eban-url";
};
};
host = {
"eban.bzh" = {
alias = "eban.bzh";
address = "eban.bzh";
use = "linux-server";
hostgroups = "webstatus-hosts";
contacts = "eban";
contact_groups = "null";
_webstatus_name = "Eban";
_webstatus_vhost = "status.eban.bzh";
_webstatus_namespace = "eban";
};
};
service = [
(serviceTemplate {
service_description = "Eban website is up and running";
check_command = ["check_https" "eban.bzh" "/" "<title>"];
_webstatus_name = "Main Website";
_webstatus_url = "https://eban.bzh/";
})
(serviceTemplate {
service_description = "Eban blog is up and running";
check_command = ["check_https" "blog.eban.bzh" "/" "<title>"];
_webstatus_name = "Blog";
_webstatus_url = "https://blog.eban.bzh/";
})
(serviceTemplate {
service_description = "Eban gitea is up and running";
check_command = ["check_https" "git.eban.bzh" "/" "<title>"];
_webstatus_name = "Git";
_webstatus_url = "https://git.eban.bzh/";
})
(serviceTemplate {
service_description = "Eban Bitwarden is up and running";
check_command = ["check_https" "bitwarden.eban.bzh" "/" "<title"];
_webstatus_name = "Bitwarden";
_webstatus_url = "https://bitwarden.eban.bzh/";
})
];
}
|