Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 8f970339 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 5ca7739f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (C) 2019 tribe29 GmbH - License: GNU General Public License v2 #
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and # License: GNU General Public License v2
# conditions defined in the file COPYING, which is part of this source code package. #
# Author: thl-cmk[at]outlook[dot]com # Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org # URL : https://thl-cmk.hopto.org
# Date : 2021-07-01 # Date : 2021-07-01
#
# extended if64 to use ifNAme instead of ifDescr # extended if64 to use ifNAme instead of ifDescr
# #
# 2021-0929: fixed empty interface name handling # 2021-0929: fixed empty interface name handling
# #
from typing import ( from typing import (
List, List,
) )
...@@ -30,6 +28,7 @@ _interface_displayhints = { ...@@ -30,6 +28,7 @@ _interface_displayhints = {
'fastethernet': 'Fa', 'fastethernet': 'Fa',
'gigabitethernet': 'Gi', 'gigabitethernet': 'Gi',
'tengigabitethernet': 'Te', 'tengigabitethernet': 'Te',
'twentyfivegige': 'Tw',
'fortygigabitethernet': 'Fo', 'fortygigabitethernet': 'Fo',
'hundredgigabitethernet': 'Hu', 'hundredgigabitethernet': 'Hu',
'port-channel': 'Po', 'port-channel': 'Po',
...@@ -75,5 +74,5 @@ register.snmp_section( ...@@ -75,5 +74,5 @@ register.snmp_section(
), ),
], ],
detect=if64.HAS_ifHCInOctets, detect=if64.HAS_ifHCInOctets,
supersedes=['if', 'statgrab_net', 'if64', 'interfaces'], supersedes=['if64', 'interfaces', 'if', 'statgrab_net'],
) )
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment