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

update project

parent 9c9e0480
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
# 2021-02-08 : transfered license/support info to seperate plugin
# 2021-02-22 : code cleanup
# 2021-03-05 : added hostlabel section
# 2021-03-18 : fixed missing update agent snmp section..
# 2021-03-18 : fixed missing update agent snmp section.
#
# sample string_table
# [
......@@ -68,27 +68,26 @@ def parse_inv_checkpoint_base(string_table: List[StringTable]) -> List:
invPath = ['hardware', 'system']
if not baseinfo.serialnumber == '':
section.append((invPath, 'serial', baseinfo.serialnumber))
if not baseinfo.series == '':
section.append((invPath, 'appliance_series', baseinfo.series))
if not baseinfo.manufacturer == '':
section.append((invPath, 'manufacturer', baseinfo.manufacturer))
if not baseinfo.productname == '':
section.append((invPath, 'product_name', baseinfo.productname))
for key, value in [
('serial', baseinfo.serialnumber),
('appliance_series', baseinfo.series),
('manufacturer', baseinfo.manufacturer),
('product_name', baseinfo.productname),
]:
if not value == '':
section.append((invPath, key, value))
invPath = ['software', 'check_point', 'os_info']
if not baseinfo.version == '':
section.append((invPath, 'svn_version', baseinfo.version))
if not baseinfo.build == '':
section.append((invPath, 'svn_build', baseinfo.build))
if not baseinfo.osname == '':
section.append((invPath, 'os_name', baseinfo.osname))
if not baseinfo.osmajorver == '' and not baseinfo.osminorver == '':
section.append((invPath, 'os_version', baseinfo.osmajorver + '.' + baseinfo.osminorver))
if not updateagentversion == '':
section.append((invPath, 'deployment_agent_build', updateagentversion))
for key, value in [
('svn_version', baseinfo.version),
('svn_build', baseinfo.build),
('os_name', baseinfo.osname),
('deployment_agent_build', updateagentversion),
('os_version', baseinfo.osmajorver + '.' + baseinfo.osminorver),
]:
if not value == '':
section.append((invPath, key, value))
return section
......
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