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

update project

parent 8e4cde21
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class CheckpointLicensing(NamedTuple): ...@@ -52,7 +52,7 @@ class CheckpointLicensing(NamedTuple):
activationstatus: str activationstatus: str
def parse_checkpoint_inv_licensing(string_table: List[StringTable]) -> List: def parse_inv_checkpoint_support(string_table: List[StringTable]) -> List:
section = [] section = []
for license in string_table[0]: for license in string_table[0]:
license = CheckpointLicensing(*license) license = CheckpointLicensing(*license)
...@@ -61,7 +61,7 @@ def parse_checkpoint_inv_licensing(string_table: List[StringTable]) -> List: ...@@ -61,7 +61,7 @@ def parse_checkpoint_inv_licensing(string_table: List[StringTable]) -> List:
return section return section
def inventory_checkpoint_licensing(section: List) -> InventoryResult: def inventory_checkpoint_support(section: List) -> InventoryResult:
path = ['software', 'check_point', 'support'] path = ['software', 'check_point', 'support']
lic_state = { lic_state = {
...@@ -91,8 +91,8 @@ def inventory_checkpoint_licensing(section: List) -> InventoryResult: ...@@ -91,8 +91,8 @@ def inventory_checkpoint_licensing(section: List) -> InventoryResult:
register.snmp_section( register.snmp_section(
name='checkpoint_inv_licensing', name='inv_checkpoint_support',
parse_function=parse_checkpoint_inv_licensing, parse_function=parse_inv_checkpoint_support,
fetch=[ fetch=[
SNMPTree( SNMPTree(
base='.1.3.6.1.4.1.2620.1.6.18.2', # CHECKPOINT-MIB::licensingAssetInfo base='.1.3.6.1.4.1.2620.1.6.18.2', # CHECKPOINT-MIB::licensingAssetInfo
...@@ -118,6 +118,6 @@ register.snmp_section( ...@@ -118,6 +118,6 @@ register.snmp_section(
) )
register.inventory_plugin( register.inventory_plugin(
name='checkpoint_inv_licensing', name='inv_checkpoint_support',
inventory_function=inventory_checkpoint_licensing, inventory_function=inventory_checkpoint_support,
) )
No preview for this file type
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
'description': 'SNMP inventory of Check Point Appliances for license/support ' 'description': 'SNMP inventory of Check Point Appliances for license/support '
'status\n', 'status\n',
'download_url': 'https://thl-cmk.hopto.org', 'download_url': 'https://thl-cmk.hopto.org',
'files': {'agent_based': ['checkpoint_inv_support.py'], 'files': {'agent_based': ['inv_checkpoint_support.py'],
'web': ['plugins/views/checkpoint_support.py']}, 'web': ['plugins/views/inv_checkpoint_support.py']},
'name': 'inv_checkpoint_support', 'name': 'inv_checkpoint_support',
'num_files': 2, 'num_files': 2,
'title': 'Check Point appliance support inventory plugin', 'title': 'Check Point appliance support inventory plugin',
......
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