diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2010-03-23 21:36:12 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2010-03-23 21:36:12 +0000 |
commit | 91886ce1f5d3e1115130b97b13b72241ff54246d (patch) | |
tree | 72d66720bf6b27b41bb5f57cc80906b64caacf18 /collect.d | |
parent | 31175e113c6f2380885e1be9e5cb67ab4e9f5061 (diff) | |
download | sitesummary-91886ce1f5d3e1115130b97b13b72241ff54246d.tar.gz sitesummary-91886ce1f5d3e1115130b97b13b72241ff54246d.tar.bz2 sitesummary-91886ce1f5d3e1115130b97b13b72241ff54246d.tar.xz |
Save some time when collecting cdp information by skipping the
loopback interface. It is unlikely to be connected to a Cisco
switch.
Diffstat (limited to 'collect.d')
-rw-r--r-- | collect.d/system | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/collect.d/system b/collect.d/system index 411e762..53485ae 100644 --- a/collect.d/system +++ b/collect.d/system @@ -73,6 +73,7 @@ fi if type cdpr >/dev/null 2>&1; then childs="" for if in $(ip link show up|awk '/^[0-9]+:/ {print $2}' | cut -d: -f1) ; do + if [ lo = "$if" ] ; then continue; fi cdpr -d $if -t 61 > cdpr.$if & childs="$childs $!" done |