register.snmp_section( name='cisco_asa_failover', parse_function=parse_cisco_asa_failover, fetch=SNMPTree( base= '.1.3.6.1.4.1.9.9.147.1.2.1.1.1', # CISCO-FIREWALL-MIB::cfwHardwareStatusEntry oids=[ '2', # CISCO-FIREWALL-MIB::cfwHardwareInformation '3', # CISCO-FIREWALL-MIB::cfwHardwareStatusValue '4', # CISCO-FIREWALL-MIB::cfwHardwareStatusDetail ], ), detect=any_of( startswith('.1.3.6.1.2.1.1.1.0', 'cisco adaptive security'), contains('.1.3.6.1.2.1.1.1.0', 'cisco pix security'), ), ) register.check_plugin( name='cisco_asa_failover', service_name='Cluster Status', discovery_function=discovery_cisco_asa_failover, check_function=check_cisco_asa_failover, check_default_parameters={ 'primary': 'active', 'secondary': 'standby', 'failover_state': 1, }, check_ruleset_name='cisco_asa_failover', )
register.snmp_section( name='cisco_asa_failover', parse_function=parse_cisco_asa_failover, fetch=SNMPTree( base= '.1.3.6.1.4.1.9.9.147.1.2.1.1.1', # CISCO-FIREWALL-MIB::cfwHardwareStatusEntry oids=[ '2', # CISCO-FIREWALL-MIB::cfwHardwareInformation '3', # CISCO-FIREWALL-MIB::cfwHardwareStatusValue '4', # CISCO-FIREWALL-MIB::cfwHardwareStatusDetail ], ), detect=any_of( startswith('.1.3.6.1.2.1.1.1.0', 'cisco adaptive security'), contains('.1.3.6.1.2.1.1.1.0', 'cisco pix security'), startswith('.1.3.6.1.2.1.1.1.0', 'cisco firepower threat defense'), ), ) register.check_plugin( name='cisco_asa_failover', service_name='Failover state', discovery_function=discovery_cisco_asa_failover, check_function=check_cisco_asa_failover, check_default_parameters={ 'primary': 'active', 'secondary': 'standby', 'failover_state': 1, 'failover_link_state': 2, 'not_active_standby_state': 1,
StringTable, ) from cmk.base.plugins.agent_based.utils import entity_sensors as utils from cmk.base.plugins.agent_based.utils.entity_sensors import EntitySensorSection, OIDSysDescr from cmk.base.plugins.agent_based.utils.temperature import check_temperature, TempParamType def parse_entity_sensors( string_table: List[StringTable]) -> EntitySensorSection: return utils.parse_entity_sensors(string_table) register.snmp_section( name='entity_sensors', detect=any_of( startswith(OIDSysDescr, "palo alto networks"), startswith(OIDSysDescr, "cisco adaptive security appliance"), ), parse_function=parse_entity_sensors, fetch=[ SNMPTree( base=".1.3.6.1.2.1.47.1.1.1.1", oids=[ OIDEnd(), "7", # ENTITY-MIB::entPhysicalName ], ), SNMPTree( base=".1.3.6.1.2.1.99.1.1.1", oids=[ OIDEnd(), "1", # entPhySensorType
register.snmp_section( name="cisco_asa_failover", parse_function=parse_cisco_asa_failover, fetch=SNMPTree( base= ".1.3.6.1.4.1.9.9.147.1.2.1.1.1", # CISCO-FIREWALL-MIB::cfwHardwareStatusEntry oids=[ "2", # CISCO-FIREWALL-MIB::cfwHardwareInformation "3", # CISCO-FIREWALL-MIB::cfwHardwareStatusValue "4", # CISCO-FIREWALL-MIB::cfwHardwareStatusDetail ], ), detect=any_of( startswith(".1.3.6.1.2.1.1.1.0", "cisco adaptive security"), contains(".1.3.6.1.2.1.1.1.0", "cisco pix security"), startswith(".1.3.6.1.2.1.1.1.0", "cisco firepower threat defense"), ), ) register.check_plugin( name="cisco_asa_failover", service_name="Failover state", discovery_function=discovery_cisco_asa_failover, check_function=check_cisco_asa_failover, check_default_parameters={ "primary": "active", "secondary": "standby", "failover_state": 1, "failover_link_state": 2, "not_active_standby_state": 1,
def cluster_check_juniper_trpz_aps_sessions( item: str, section: Mapping[str, Section], ) -> CheckGenerator: yield from _check_common_juniper_trpz_aps_sessions( get_value_store(), time.time(), item, section, ) register.snmp_section( name="juniper_trpz_aps_sessions", detect=any_of(startswith(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.14525.3.1"), startswith(".1.3.6.1.2.1.1.2.0", ".1.3.6.1.4.1.14525.3.3")), parse_function=parse_juniper_trpz_aps_sessions, trees=[ SNMPTree( base=".1.3.6.1.4.1.14525.4.5.1.1.2.1", oids=[ OIDEnd(), "5", # trpzApStatApStatusMacApState -> status of access point "8", # trpzApStatApStatusMacApName -> name of access point ]), SNMPTree( base=".1.3.6.1.4.1.14525.4.5.1.1.10.1", oids=[ OIDEnd(), "3", # trpzApStatRadioOpStatsTxUniPkt -> unicast packets transmitted "4", # trpzApStatRadioOpStatsTxUniOct -> octets transmitted in unicast packets