Module: check_mk
Branch: master
Commit: 3fdad7ef2d97efc19e0402b7b4f4ce8fa084b392
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3fdad7ef2d97ef…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 17 19:50:55 2014 +0200
zombies.mk: now works in OMD without changes
---
doc/treasures/zombies.mk | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/doc/treasures/zombies.mk b/doc/treasures/zombies.mk
index 5ba66d0..da7daf6 100644
--- a/doc/treasures/zombies.mk
+++ b/doc/treasures/zombies.mk
@@ -13,8 +13,10 @@ _num_zombies = 100
for _z in range(0, _num_zombies):
_name = "zombie%04d" % _z
all_hosts.append(_name + "|zombie")
- ipaddresses[_name] = "127.0.0.1"
+ _x = _z % 255 + 1
+ _y = (_z / 255) % 255 + 1
+ ipaddresses[_name] = "127.0.%d.%d" % (_y, _x)
datasource_programs = [
- ( "cat /var/lib/check_mk/cache/localhost", [ "zombie" ],
ALL_HOSTS),
+ ( "cat ~/tmp/check_mk/cache/localhost", [ "zombie" ], ALL_HOSTS),
]