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

update project

parent 8031039c
No related branches found
No related tags found
No related merge requests found
[PACKAGE]: ../../raw/master/mkp/inv_juniper_hw_modules*.mkp "inv_juniper_hw_modules*.mkp" [PACKAGE]: ../../raw/master/mkp/inv_juniper_hw_modules-0.0.3-20240614.mkp "inv_juniper_hw_modules-0.0.3-20240614.mkp"
# Hardware inventory # Hardware inventory
This plugin adds the hardware modules of Juniper Networks devices to the CheckMK inventory. This plugin adds the hardware modules of Juniper Networks devices to the CheckMK inventory.
......
File added
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
'description': 'Inventory of Juniper networks hardware modules\n', 'description': 'Inventory of Juniper networks hardware modules\n',
'download_url': 'https://thl-cmk.hopto.org', 'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['inv_juniper_hw_modules.py'], 'files': {'agent_based': ['inv_juniper_hw_modules.py'],
'gui': ['views/inv_juniper_hw_modules.py', 'gui': ['wato/inv_juniper_hw_modules.py'],
'wato/inv_juniper_hw_modules.py']}, 'web': ['plugins/views/inv_juniper_hw_modules.py']},
'name': 'inv_juniper_hw_modules', 'name': 'inv_juniper_hw_modules',
'title': 'Juniper networks hardware inventory', 'title': 'Juniper networks hardware inventory',
'version': '0.0.2-20230603', 'version': '0.0.3-20240614',
'version.min_required': '2.1.0b1', 'version.min_required': '2.2.0b1',
'version.packaged': '2.2.0p24', 'version.packaged': '2.2.0p24',
'version.usable_until': '2.2.0b1'} 'version.usable_until': '2.3.0b1'}
...@@ -8,19 +8,18 @@ ...@@ -8,19 +8,18 @@
# Date : 2022-06-02 # Date : 2022-06-02
# #
# 2024-06-14: moved from gui/views to web/views
# modified imports for cmk 2.2
from cmk.gui.i18n import _ from cmk.gui.i18n import _
from cmk.gui.plugins.views.utils import ( from cmk.gui.views.inventory.registry import inventory_displayhints
inventory_displayhints,
)
from cmk.gui.plugins.views.inventory import (
declare_invtable_view,
)
inventory_displayhints.update({ inventory_displayhints.update({
'.hardware.juniper-hw-modules:': {'title': _('Modules'), '.hardware.juniper-hw-modules:': {
'keyorder': ['index', 'description', 'serial_number', 'revision', 'part_no', ], 'title': _('Modules'),
'view': 'invmodules_of_host', 'keyorder': ['index', 'description', 'serial_number', 'revision', 'part_no', ],
}, 'view': 'invmodules_of_host',
},
'.hardware.juniper-hw-modules:*.index': {'title': _('Index'), }, '.hardware.juniper-hw-modules:*.index': {'title': _('Index'), },
'.hardware.juniper-hw-modules:*.serial_number': {'title': _('Serial number')}, '.hardware.juniper-hw-modules:*.serial_number': {'title': _('Serial number')},
'.hardware.juniper-hw-modules:*.description': {'title': _('Description')}, '.hardware.juniper-hw-modules:*.description': {'title': _('Description')},
...@@ -33,10 +32,3 @@ inventory_displayhints.update({ ...@@ -33,10 +32,3 @@ inventory_displayhints.update({
'.hardware.juniper-hw-modules:*.model': {'title': _('Model'), }, '.hardware.juniper-hw-modules:*.model': {'title': _('Model'), },
'.hardware.juniper-hw-modules:*.type': {'title': _('Type (OID)'), }, '.hardware.juniper-hw-modules:*.type': {'title': _('Type (OID)'), },
}) })
declare_invtable_view(
'invmodules',
'.hardware.juniper-hw-modules:',
_('Juniper Hardware Modules'),
_('Juniper Hardware Modules')
)
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