Module: check_mk
Branch: master
Commit: 5dad946919f116ee52cf238f319dbf4896e3ebf1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5dad946919f116…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Apr 25 13:06:50 2011 +0200
BI: better example for BI
---
doc/bi-example.mk | 41 ++++++++++++++++++++++++++++++-----------
1 files changed, 30 insertions(+), 11 deletions(-)
diff --git a/doc/bi-example.mk b/doc/bi-example.mk
index 82bed60..129aa10 100644
--- a/doc/bi-example.mk
+++ b/doc/bi-example.mk
@@ -6,11 +6,10 @@ aggregation_rules["host"] = (
[ "HOST" ],
"worst",
[
- ( "$HOST$", HOST_STATE ),
+ ( "general", [ "$HOST$" ] ),
+ ( "performance", [ "$HOST$" ] ),
( "filesystems", [ "$HOST$" ] ),
- ( "cpuandmem", [ "$HOST$" ] ),
( "networking", [ "$HOST$" ] ),
- ( "checkmk", [ "$HOST$" ] ),
( "applications", [ "$HOST$" ] ),
( "logfiles", [ "$HOST$" ] ),
( "hardware", [ "$HOST$" ] ),
@@ -18,14 +17,35 @@ aggregation_rules["host"] = (
]
)
+aggregation_rules["general"] = (
+ "General State",
+ [ "HOST" ],
+ "worst",
+ [
+ ( "$HOST$", HOST_STATE ),
+ ( "$HOST$", "Uptime" ),
+ ( "checkmk", [ "$HOST$" ] ),
+ ]
+)
+
aggregation_rules["filesystems"] = (
- "Filesystems",
+ "Disk & Filesystems",
[ "HOST" ],
"worst",
[
- ( HIDDEN, "$HOST$", "fs_" ),
- ( "$HOST$", "Mount|Disk" ),
+ ( "$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$$" ),
]
)
@@ -38,12 +58,12 @@ aggregation_rules["multipathing"] = (
]
)
-aggregation_rules["cpuandmem"] = (
- "CPU, Kernel, Memory",
+aggregation_rules["performance"] = (
+ "Performance",
[ "HOST" ],
"worst",
[
- ( "$HOST$", "CPU|Memory|Kernel|Number of threads" ),
+ ( "$HOST$", "CPU|Memory|Vmalloc|Kernel|Number of threads" ),
]
)
@@ -61,8 +81,7 @@ aggregation_rules["networking"] = (
[ "HOST" ],
"worst",
[
- ( "$HOST$", "NFS" ),
- ( FOREACH_SERVICE, "$HOST$", "NIC ([a-z]*).* counters",
"nic", [ "$HOST$", "$1$" ] ),
+ ( "$HOST$", "NFS|Interface|TCP" ),
]
)