summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-11-05 08:02:39 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-11-05 08:02:39 +0100
commit65ae52a910578163e0b5e821fb75fc3cf5d28528 (patch)
treee392ba6cd4330fbd9c0da7a73249f9d2d74e9889
parent485377cf03560635c8590f5f053752b805e5f2fa (diff)
downloadsmokeping-65ae52a910578163e0b5e821fb75fc3cf5d28528.tar.gz
smokeping-65ae52a910578163e0b5e821fb75fc3cf5d28528.tar.xz
make tsmoke work with multihost targets
-rw-r--r--CHANGES1
-rwxr-xr-xbin/tSmoke.dist2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index cc41d63..575c7cd 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,4 @@
+* Make tsmoke work with multihost targets -- tobi
* Do not force a page reload more frequently than every 120s -- tobi
* Make sure slaves in targets match up with entries in the slaves section -- tobi
diff --git a/bin/tSmoke.dist b/bin/tSmoke.dist
index f55bd24..674dd9f 100755
--- a/bin/tSmoke.dist
+++ b/bin/tSmoke.dist
@@ -389,7 +389,7 @@ sub list_rrds($$$) {
if (ref $tree->{$rrds} eq 'HASH'){
$prline .= list_rrds( $tree->{$rrds}, $path."/$rrds", $print );
}
- if ($rrds eq 'host') {
+ if ($rrds eq 'host' and $tree->{$rrds} !~ m|/| ) {
$prline .= "$cfg->{General}{datadir}$path".".rrd\n";
}
}