Module: check_mk
Branch: master
Commit: c94604e8f7e4b4add0ab5069c448765dee17f3f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c94604e8f7e4b4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Apr 24 11:46:46 2011 +0200
Updated examples
---
doc/bi-example-oracle.mk | 4 ++--
doc/bi-example.mk | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/bi-example-oracle.mk b/doc/bi-example-oracle.mk
index 424ce7d..436cb61 100644
--- a/doc/bi-example-oracle.mk
+++ b/doc/bi-example-oracle.mk
@@ -79,7 +79,7 @@ aggregation_rules["cluster_db"] = (
)
aggregations += [
- ( "ORACLE", FOREACH, "([^:]*)", "DB_(.*)",
"noncluster_db", ["$1$", "$2$" ] ),
- ( "ORACLE", FOREACH, "(.*):(.*)", "DB_(.*)",
"cluster_db", ["$1$", "$2$", "$3$" ] ),
+ ( "ORACLE", FOREACH_SERVICE, "([^:]*)", "DB_(.*)",
"noncluster_db", ["$1$", "$2$" ] ),
+ ( "ORACLE", FOREACH_SERVICE, "(.*):(.*)", "DB_(.*)",
"cluster_db", ["$1$", "$2$", "$3$" ] ),
]
diff --git a/doc/bi-example.mk b/doc/bi-example.mk
index 4ac9d6e..82bed60 100644
--- a/doc/bi-example.mk
+++ b/doc/bi-example.mk
@@ -23,7 +23,7 @@ aggregation_rules["filesystems"] = (
[ "HOST" ],
"worst",
[
- ( "$HOST$", "fs_" ),
+ ( HIDDEN, "$HOST$", "fs_" ),
( "$HOST$", "Mount|Disk" ),
( "multipathing", [ "$HOST$" ]),
]
@@ -62,7 +62,7 @@ aggregation_rules["networking"] = (
"worst",
[
( "$HOST$", "NFS" ),
- ( FOREACH, "$HOST$", "NIC ([a-z]*).* counters",
"nic", [ "$HOST$", "$1$" ] ),
+ ( FOREACH_SERVICE, "$HOST$", "NIC ([a-z]*).* counters",
"nic", [ "$HOST$", "$1$" ] ),
]
)
@@ -111,6 +111,6 @@ aggregation_rules["other"] = (
)
aggregations += [
- ( "Hosts", FOREACH, "(.*)", "Check_MK$",
"host", ["$1$"] ),
+ ( "Hosts", FOREACH_HOST, ALL_HOSTS, "host", ["$1$"] ),
]