diff options
author | David Schmitt <david@dasz.at> | 2009-07-20 11:41:20 +0200 |
---|---|---|
committer | David Schmitt <david@dasz.at> | 2009-07-20 11:41:20 +0200 |
commit | 3121bc68df6df329608464c6f3bf316917cbe813 (patch) | |
tree | c7b114e96c812eba23de14360b348d589a58d083 | |
parent | 08156d7433c3052205a545951af7f0c5670a3a36 (diff) |
avoid passing on the superflous @... suffixes on interfaces
-rwxr-xr-x | plugins/facter/munin_interfaces.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/facter/munin_interfaces.rb b/plugins/facter/munin_interfaces.rb index 5366573..f7a3575 100755 --- a/plugins/facter/munin_interfaces.rb +++ b/plugins/facter/munin_interfaces.rb @@ -6,6 +6,9 @@ Facter.add("munin_interfaces") do matches = line.match(/^\d*: ([^:]*): <(.*,)?UP(,.*)?>/) if !matches.nil? value = matches[1] + # remove superfluous "underlying interface" specification + # for VLAN interfaces + value.gsub!(/@.*/, '') end value end.compact.sort.join(" ") |