sensu-plugins / sensu-plugins-network-checks

This plugin provides native network instrumentation for monitoring and metrics collection, including: hardware, TCP response, RBLs, whois, port status, and more.
http://sensu-plugins.io
MIT License
30 stars 76 forks source link

Feature/only up ifs #80

Closed johannagnarsson closed 6 years ago

johannagnarsson commented 6 years ago

Pull Request Checklist

Is this in reference to an existing issue? Indirectly, but this would help with this issue, Interface would be omitted from output:

https://github.com/sensu-plugins/sensu-plugins-network-checks/issues/40

General

New Plugins

Purpose

To allow the metrics-net script to only display output from network interfaces that are in the 'up' state. Interfaces in any other state will be omitted.

Many of our hosts have dual nics and/or virtual bridge interfaces that will never be in an 'up' state and all of their metrics will be 0. This patch allows simply excluding them from being sent to metric collections.

Known Compatibility Issues

None.

majormoses commented 6 years ago

Oops looks like I made a review but did not hit the sumit button.

majormoses commented 6 years ago

released: https://rubygems.org/gems/sensu-plugins-network-checks/versions/3.2.0