Module: check_mk
Branch: master
Commit: 47b8e86df9687f645bcdeee3da0a768cca72c2dc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=47b8e86df9687f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Sep 24 17:34:22 2013 +0200
New helper for finding orphaned piggy hosts
---
doc/treasures/find_piggy_orphans | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/doc/treasures/find_piggy_orphans b/doc/treasures/find_piggy_orphans
new file mode 100755
index 0000000..87c9cb1
--- /dev/null
+++ b/doc/treasures/find_piggy_orphans
@@ -0,0 +1,7 @@
+#!/bin/bash
+cd $OMD_ROOT
+for h in $(cd tmp/check_mk/piggyback ; echo *)
+do
+ lq "GET hosts\nColumns: address name\nFilter: address = $h\nFilter: name =
$h\nOr: 2" | grep -q . || echo "$h"
+done
+