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

update project

parent 9c3cfc9d
No related branches found
No related tags found
No related merge requests found
......@@ -197,6 +197,8 @@ def parse_cisco_asa_sensors(string_table: List[StringTable]) -> Dict:
sensorname = sensorname.replace('Power ', '')
sensors['power'].update({sensorname: CiscoAsaSensor(
value=0,
unit='',
status=sensorstatus,
state_readable=state_readable,
)})
......@@ -284,7 +286,7 @@ def discovery_cisco_asa_fan(section: Dict) -> DiscoveryResult:
yield Service(item=key)
def check_cisco_asa_fan(item, params: TempParamType, section) -> CheckResult:
def check_cisco_asa_fan(item, params, section) -> CheckResult:
try:
sensor = section['fan'][item]
......@@ -309,7 +311,7 @@ register.check_plugin(
sections=['cisco_asa_sensors'],
discovery_function=discovery_cisco_asa_fan,
check_function=check_cisco_asa_fan,
check_default_parameters={},
check_default_parameters={'output_metrics': True},
check_ruleset_name='hw_fans'
)
......@@ -325,7 +327,7 @@ def discovery_cisco_asa_power(section: Dict) -> DiscoveryResult:
yield Service(item=key)
def check_cisco_asa_power(item, params: TempParamType, section) -> CheckResult:
def check_cisco_asa_power(item, params, section) -> CheckResult:
try:
sensor = section['power'][item]
......@@ -342,5 +344,4 @@ register.check_plugin(
discovery_function=discovery_cisco_asa_power,
check_function=check_cisco_asa_power,
check_default_parameters={},
# check_ruleset_name='power_supply'
)
\ No newline at end of file
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