Random Project

Almost did what I wanted so I tweaked it a little

This plugin almost did what I wanted, so I added some enhancements to make it perfect for our needs:

Added –notraffic (-n) and –match (-m) args: So we can skip no traffic interfaces and pattern match on the interface name using a regex. On linux hosts you can have alot of interfaces, and we are not interested in ones not used (eg have no traffic). The notraffic arg also prevents supurious alerts when not in use interfaces are down and -b is specified. Also sorted the output on interface name order; rather than being jumbled up. This makes bond interfaces display before eth interfaces; it just makes much more sense as a bond interface is typically made up of several eth interfaces. So we would see: OK. bond0:up eth0:up eth1:up eth2:up eth3:up eth4:up eth5:up. The pattern match allows you to only include interfaces that match the pattern. Eg (bond|eth|em|eno).

Thanks for writing the script, and with some tweaks I was able to do everything we needed.

Where can I upload the script I updated?