1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python
"""
Munin plugin which reports selected counters regarding ports on a
Munin plugin which reports selected counters regarding ports on a
Brocade SAN FC-switch. Only enabled ports are considered.
The counters shown:
@ -14,7 +14,7 @@ enc_out: Encoding errors outside FC frame.
enc_out_per_mframe: As above, but per million frames of traffic.
If there is a high number for this counter,
it could reflect:
- If there is also a high value for
- If there is also a high value for
rx_crcs for the port, then there is likely
a GBIC/SFP problem.
- If there the value of rx_crcs for the port
@ -22,7 +22,7 @@ enc_out_per_mframe: As above, but per million frames of traffic.
problem.
rx_crcs: CRC errors detected in received frames.
Together with enc_out errors, CRC errors
Together with enc_out errors, CRC errors
indicate a GBIC/SFP problem.
bits: Number of bits transmitted(tx)/received(rx)
@ -38,7 +38,7 @@ snmp_HOSTNAME_brocade_ifs
"""
# Note: In the SNMP output from brocade switches, the interesting
# counters are named with numbers starting with 1, while the
# counters are named with numbers starting with 1, while the
# ports' real names on the box and in the administration interface
# start with 0. And there doesn't seem to be a way to map between
# ifDesc and the interesting crc and enc_out counters :-(
@ -63,7 +63,7 @@ snmp_HOSTNAME_brocade_ifs
# Released according to the "New BSD License" AKA the 3-clause
# BSD License:
# ====================================================================
# ====================================================================
# Copyright (c) 2011, Danish National Board of Health.
# All rights reserved.
#
@ -88,7 +88,7 @@ snmp_HOSTNAME_brocade_ifs
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ====================================================================
# ====================================================================
# $Id: brocade_san_switch_ports_ 15443 2011-03-03 12:23:56Z tra $
@ -140,7 +140,7 @@ def debug(msg):
print('Debug: %s\n' % msg)
# Break OID-string in to a tuple of elements
def oidstr2tuple(oidstr):
def oidstr2tuple(oidstr):
int_list = [ int(s) for s in oidstr.split('.') ]
return tuple(int_list)