aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-23 04:23:56 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-23 04:23:56 +0000
commitc5220f687c1ab005af375d8621e58dd793c28da9 (patch)
tree66f2fb6ffbd8dcc83aec1b880a4b2601861a1c22 /sitesummary-nodes
parent288e207f19c8bcea6e73867a39637152694e60af (diff)
downloadsitesummary-c5220f687c1ab005af375d8621e58dd793c28da9.tar.gz
sitesummary-c5220f687c1ab005af375d8621e58dd793c28da9.tar.bz2
sitesummary-c5220f687c1ab005af375d8621e58dd793c28da9.tar.xz
Switches are only parents for remote hosts.
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-xsitesummary-nodes2
1 files changed, 1 insertions, 1 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index ab4b24a..bff603a 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -268,7 +268,7 @@ sub generate_nagios_config {
print_nagios_host_check("switch-host", $switch{$addr}, $addr, undef)
unless (exists $hosts{$switch{$addr}});
$hosts{$switch{$addr}} = $addr;
- push(@parents, $switch{$addr});
+ push(@parents, $switch{$addr}) if $remote;
}
print_nagios_host_check(undef, $hostname, $address,