"A change there will immediately be active, while a change in this rule " "requires a re-discovery of the services."), elements=process_level_elements(), ignored_keys=["match_groups"], required_keys=["cpu_rescale_max"])), ], required_keys=["descr", "default_params"], ), forth=convert_inventory_processes, ) rulespec_registry.register( HostRulespec( group=RulespecGroupCheckParametersDiscovery, match_type="all", name="inventory_processes_rules", valuespec=_valuespec_inventory_processes_rules, )) # .--SNMP processes------------------------------------------------------. # | ____ _ _ __ __ ____ | # | / ___|| \ | | \/ | _ \ | # | \___ \| \| | |\/| | |_) | | # | ___) | |\ | | | | __/ | # | |____/|_| \_|_| |_|_| | # | | # | | # | _ __ _ __ ___ ___ ___ ___ ___ ___ ___ | # | | '_ \| '__/ _ \ / __/ _ \/ __/ __|/ _ \/ __| | # | | |_) | | | (_) | (_| __/\__ \__ \ __/\__ \ | # | | .__/|_| \___/ \___\___||___/___/\___||___/ |
], title=_("Create check if service is in start mode"), )), ], help= _('This rule can be used to configure the inventory of the windows services check. ' 'You can configure specific windows services to be monitored by the windows check by ' 'selecting them by name, current state during the inventory, or start mode.' ), ) rulespec_registry.register( HostRulespec( group=RulespecGroupCheckParametersDiscovery, match_type="all", name="inventory_services_rules", valuespec=_valuespec_inventory_services_rules, )) def _item_spec_services(): return TextInput( title=_("Name of the service"), help= _("Please Please note, that the agent replaces spaces in " "the service names with underscores. If you are unsure about the " "correct spelling of the name then please look at the output of " "the agent (cmk -d HOSTNAME). The service names are in the first " "column of the section <<<services>>>. Please " "do not mix up the service name with the display name of the service." "The latter one is just being displayed as a further information."),
"matching_conditions", _vs_matching_conditions(), ), ], optional_keys=['discovery_single', 'grouping'], default_keys=['discovery_single'], validate=_validate_valuespec_inventory_if_rules, ), forth=_transform_discovery_if_rules, ) rulespec_registry.register( HostRulespec( group=RulespecGroupCheckParametersDiscovery, match_type="list", name="inventory_if_rules", valuespec=_valuespec_inventory_if_rules, )) vs_elements_if_groups_matches: List[DictionaryEntry] = [ ("iftype", Transform( DropdownChoice( title=_("Select interface port type"), choices=ListChoice.dict_choices(defines.interface_port_types()), help=_( "Only interfaces with the given port type are put into this group. " "For example 53 (propVirtual)."), ), forth=str, back=int,
True, title=_("Create additional Service for System Wait"), totext= _('Display the time an oracle instance spents inside of the different wait classes.' ), ), ), ], ) rulespec_registry.register( HostRulespec( name="oracle_performance_discovery", group=RulespecGroupCheckParametersDiscovery, match_type="dict", valuespec=_valuespec_discovery_oracle_performance, title=lambda: _("Oracle performance discovery"), )) def _parameter_valuespec_oracle_performance(): def levels_tuple(Type, unit): return Tuple(orientation="float", show_titles=False, elements=[ Type(label=_("Warning at"), unit=unit), Type(label=_("Critical at"), unit=unit), ]) # memory
elements=[ ("empty_pools", Checkbox( title=_("Discovery of empty DHCP pools"), label=_("Include empty pools into the monitoring"), help=_("You can activate the creation of services for " "DHCP pools, which contain no IP addresses."), )), ], ) rulespec_registry.register( HostRulespec( group=RulespecGroupCheckParametersDiscovery, match_type="dict", name="discovery_win_dhcp_pools", valuespec=_valuespec_discovery_win_dhcp_pools, )) def _item_spec_win_dhcp_pools(): return TextAscii( title=_("Pool name"), allow_empty=False, ) def _parameter_valuespec_win_dhcp_pools(): return Transform( Dictionary(elements=[ ("free_leases",
("resource", _("CPU, Memory, Storage and Uptime")), ("interface", _("Network Interfaces")), ("bgp", _("BGP sessions")), ("ospf", _("OSPF Neighbours")), ("vrrp", _("VRRP info")), ("health", _("Health")), ("board", _("Device Info")), ("ipsec", _("IPsec")), ("ntp", _("NTP")), ("firewall", _("Firewall rules")), ("certificates", _("Certificate expirations")), ("ppp", _("PPP Sessions")), ], default_value=[ "resource", "interface", "health", "board" ], allow_empty=False, ), title=_("Retrieve information about..."), )), ], ) rulespec_registry.register( HostRulespec( group=RulespecGroupDatasourceProgramsHardware, name="special_agents:mikrotik_api", valuespec=_valuespec_special_agents_mikrotik_api, ))