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 327d1d7a authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 66e7062a
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/inv_huawei_hw_components-0.2.1-20240614.mkp "inv_huawei_hw_components-0.2.1-20240614.mkp"
# Extended inventory of Huawei hardware components
adds a extended list of hardware components to the inventory
......
File moved
File deleted
File added
......@@ -2,10 +2,10 @@
'description': 'SNMP inventory for Huawei hardware components.\n',
'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['inv_huawei_hw_components.py'],
'gui': ['views/inv_huawei_hw_components.py']},
'web': ['plugins/views/inv_huawei_hw_components.py']},
'name': 'inv_huawei_hw_components',
'title': 'Inventory for Huawei hardware components',
'version': '0.2.0-20230602',
'version.min_required': '2.1.0b1',
'version.packaged': '2.1.0p21',
'version.usable_until': '2.2.0b1'}
\ No newline at end of file
'version': '0.2.1-20240614',
'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p24',
'version.usable_until': '2.3.0b1'}
#!/usr/bin/env python3
# -*- coding: utf-8 -*-; py-indent-offset: 4 -*-
# -*- coding: utf-8 -*-
#
# License: GNU General Public License v2
#
# Author: thl-cmk[at]outlook[dot]com
# URL : https://thl-cmk.hopto.org
# Date : 2020-07-14
from cmk.gui.plugins.views.utils import (
inventory_displayhints,
)
from cmk.gui.plugins.views.inventory import (
declare_invtable_view,
)
from cmk.gui.i18n import _
# 2024-06-14: moved back to ~/local/share/check_mk/web/plugins/views
from cmk.gui.i18n import _
from cmk.gui.views.inventory.registry import inventory_displayhints
inventory_displayhints.update({
'.hardware.components.huawei:': {'title': _('Huawei'),
'keyorder': ['index', 'name', 'description', 'board_type', 'serial_number',
'manufactured_date', 'vendor',
],
'view': 'invhuaweicomponents_of_host',
},
'.hardware.components.huawei:': {
'title': _('Huawei'),
'keyorder': ['index', 'name', 'description', 'board_type', 'serial_number',
'manufactured_date', 'vendor',
],
'view': 'invhuaweicomponents_of_host',
},
'.hardware.components.huawei:*.index': {'title': _('Index'), },
'.hardware.components.huawei:*.name': {'title': _('Name')},
'.hardware.components.huawei:*.description': {'title': _('Description'), },
......@@ -29,8 +32,4 @@ inventory_displayhints.update({
'.hardware.components.huawei:*.hardware_revision': {'title': _('Hardware Revision'), },
'.hardware.components.huawei:*.serial_number': {'title': _('Serial Number'), },
'.hardware.components.huawei:*.vendor': {'title': _('Vendor'), },
})
declare_invtable_view('invhuaweicomponents', '.hardware.components.huawei:', _('Huawei hardware components'),
_('Huawei hardware components'))
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