Projet

Général

Profil

Révision 17f78427

ID17f784270ae966ee9a13e9f5104a5b8f925b639e
Parent ef851f0c
Enfant d4320aea, 5b2396a9

Ajouté par Lars Kruse il y a plus de 7 ans

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files

Voir les différences:

plugins/snmp/snmp__brocade_ifs
1 1
#!/usr/bin/env python
2 2

  
3 3
"""
4
Munin plugin which reports selected counters regarding ports on a 
4
Munin plugin which reports selected counters regarding ports on a
5 5
Brocade SAN FC-switch. Only enabled ports are considered.
6 6

  
7 7
The counters shown:
......
14 14
enc_out_per_mframe: As above, but per million frames of traffic.
15 15
                    If there is a high number for this counter,
16 16
                    it could reflect:
17
                     - If there is also a high value for 
17
                     - If there is also a high value for
18 18
                       rx_crcs for the port, then there is likely
19 19
                       a GBIC/SFP problem.
20 20
                     - If there the value of rx_crcs for the port
......
22 22
                       problem.
23 23

  
24 24
rx_crcs:            CRC errors detected in received frames.
25
                    Together with enc_out errors, CRC errors 
25
                    Together with enc_out errors, CRC errors
26 26
                    indicate a GBIC/SFP problem.
27 27

  
28 28
bits:               Number of bits transmitted(tx)/received(rx)
......
38 38
"""
39 39

  
40 40
# Note: In the SNMP output from brocade switches, the interesting
41
# counters are named with numbers starting with 1, while the 
41
# counters are named with numbers starting with 1, while the
42 42
# ports' real names on the box and in the administration interface
43 43
# start with 0. And there doesn't seem to be a way to map between
44 44
# ifDesc and the interesting crc and enc_out counters :-(
......
63 63

  
64 64
# Released according to the "New BSD License" AKA the 3-clause
65 65
# BSD License:
66
# ==================================================================== 
66
# ====================================================================
67 67
# Copyright (c) 2011, Danish National Board of Health.
68 68
# All rights reserved.
69 69
#
......
88 88
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
89 89
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
90 90
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
91
# ==================================================================== 
91
# ====================================================================
92 92

  
93 93
# $Id: brocade_san_switch_ports_ 15443 2011-03-03 12:23:56Z tra $
94 94

  
......
140 140
    print('Debug: %s\n' % msg)
141 141

  
142 142
# Break OID-string in to a tuple of elements
143
def oidstr2tuple(oidstr): 
143
def oidstr2tuple(oidstr):
144 144
    int_list = [ int(s) for s in oidstr.split('.') ]
145 145
    return tuple(int_list)
146 146

  

Formats disponibles : Unified diff