forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bi-example.mk
65 lines (53 loc) · 1.77 KB
/
bi-example.mk
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
63
64
65
#!/usr/bin/python
# encoding: utf-8
aggregation_rules["host"] = ("Host $HOST$", ["HOST"], "worst", [
("general", ["$HOST$"]),
("performance", ["$HOST$"]),
("filesystems", ["$HOST$"]),
("networking", ["$HOST$"]),
("applications", ["$HOST$"]),
("logfiles", ["$HOST$"]),
("hardware", ["$HOST$"]),
("other", ["$HOST$"]),
])
aggregation_rules["general"] = ("General State", ["HOST"], "worst", [
("$HOST$", HOST_STATE),
("$HOST$", "Uptime"),
("checkmk", ["$HOST$"]),
])
aggregation_rules["filesystems"] = ("Disk & Filesystems", ["HOST"], "worst", [
("$HOST$", "Disk|MD"),
("multipathing", ["$HOST$"]),
(FOREACH_SERVICE, "$HOST$", "fs_(.*)", "filesystem", ["$HOST$", "$1$"]),
])
aggregation_rules["filesystem"] = ("$FS$", ["HOST", "FS"], "worst", [
("$HOST$", "fs_$FS$$"),
("$HOST$", "Mount options of $FS$$"),
])
aggregation_rules["multipathing"] = ("Multipathing", ["HOST"], "worst", [
("$HOST$", "Multipath"),
])
aggregation_rules["performance"] = ("Performance", ["HOST"], "worst", [
("$HOST$", "CPU|Memory|Vmalloc|Kernel|Number of threads"),
])
aggregation_rules["hardware"] = ("Hardware", ["HOST"], "worst", [
("$HOST$", "IPMI|RAID"),
])
aggregation_rules["networking"] = ("Networking", ["HOST"], "worst", [
("$HOST$", "NFS|Interface|TCP"),
])
aggregation_rules["checkmk"] = ("Check_MK", ["HOST"], "worst", [
("$HOST$", "Check_MK|Uptime"),
])
aggregation_rules["logfiles"] = ("Logfiles", ["HOST"], "worst", [
("$HOST$", "LOG"),
])
aggregation_rules["applications"] = ("Applications", ["HOST"], "worst", [
("$HOST$", "ASM|ORACLE|proc"),
])
aggregation_rules["other"] = ("Other", ["HOST"], "worst", [
("$HOST$", REMAINING),
])
aggregations += [
("Hosts", FOREACH_HOST, ALL_HOSTS, "host", ["$1$"]),
]