GUI CSS: Refactored wato styles to nested structure meeting sasslint requirements...
[check_mk.git] / doc / bi-example.mk
blob5b0d7df6bfb66f3a42484bee8c84fa20636ed6e3
1 #!/usr/bin/python
2 # encoding: utf-8
4 aggregation_rules["host"] = ("Host $HOST$", ["HOST"], "worst", [
5 ("general", ["$HOST$"]),
6 ("performance", ["$HOST$"]),
7 ("filesystems", ["$HOST$"]),
8 ("networking", ["$HOST$"]),
9 ("applications", ["$HOST$"]),
10 ("logfiles", ["$HOST$"]),
11 ("hardware", ["$HOST$"]),
12 ("other", ["$HOST$"]),
15 aggregation_rules["general"] = ("General State", ["HOST"], "worst", [
16 ("$HOST$", HOST_STATE),
17 ("$HOST$", "Uptime"),
18 ("checkmk", ["$HOST$"]),
21 aggregation_rules["filesystems"] = ("Disk & Filesystems", ["HOST"], "worst", [
22 ("$HOST$", "Disk|MD"),
23 ("multipathing", ["$HOST$"]),
24 (FOREACH_SERVICE, "$HOST$", "fs_(.*)", "filesystem", ["$HOST$", "$1$"]),
27 aggregation_rules["filesystem"] = ("$FS$", ["HOST", "FS"], "worst", [
28 ("$HOST$", "fs_$FS$$"),
29 ("$HOST$", "Mount options of $FS$$"),
32 aggregation_rules["multipathing"] = ("Multipathing", ["HOST"], "worst", [
33 ("$HOST$", "Multipath"),
36 aggregation_rules["performance"] = ("Performance", ["HOST"], "worst", [
37 ("$HOST$", "CPU|Memory|Vmalloc|Kernel|Number of threads"),
40 aggregation_rules["hardware"] = ("Hardware", ["HOST"], "worst", [
41 ("$HOST$", "IPMI|RAID"),
44 aggregation_rules["networking"] = ("Networking", ["HOST"], "worst", [
45 ("$HOST$", "NFS|Interface|TCP"),
48 aggregation_rules["checkmk"] = ("Check_MK", ["HOST"], "worst", [
49 ("$HOST$", "Check_MK|Uptime"),
52 aggregation_rules["logfiles"] = ("Logfiles", ["HOST"], "worst", [
53 ("$HOST$", "LOG"),
55 aggregation_rules["applications"] = ("Applications", ["HOST"], "worst", [
56 ("$HOST$", "ASM|ORACLE|proc"),
59 aggregation_rules["other"] = ("Other", ["HOST"], "worst", [
60 ("$HOST$", REMAINING),
63 aggregations += [
64 ("Hosts", FOREACH_HOST, ALL_HOSTS, "host", ["$1$"]),