sensu/sensu-community-plugins — pull request #372 by maoe (2013-12-02 08:13:27+00:00)
Title: metrics-net: Skip if /sys/class/net/:iface_path is a regular file

If the host has a bond interface, there would be `/sys/class/net/bonding_masters`, which is not a directory. In this case, `metrics-net.rb` fails to run. With this patch, it simply ignore if the `iface_path` is a regular file.