aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,