2 # -*- encoding: utf-8; py-indent-offset: 4 -*-
4 # comNET GmbH, Fabian Binder - 2018-05-30
6 # .1.3.6.1.4.1.9.9.719.1.41.2.1.2 cpu Unit Name
7 # .1.3.6.1.4.1.9.9.719.1.41.2.1.10 cucsProcessorEnvStatsTemperature
9 factory_settings
["cisco_ucs_temp_cpu_default_levels"] = {
14 def inventory_cisco_ucs_temp_cpu(info
):
15 for name
, _value
in info
:
16 name
= name
.split("/")[3]
20 def check_cisco_ucs_temp_cpu(item
, params
, info
):
21 for name
, value
in info
:
22 name
= name
.split("/")[3]
25 return check_temperature(temp
, params
, "cisco_temp_%s" % item
)
28 check_info
['cisco_ucs_temp_cpu'] = {
29 "inventory_function": inventory_cisco_ucs_temp_cpu
,
30 "check_function": check_cisco_ucs_temp_cpu
,
31 "service_description": "Temperature CPU %s",
33 "snmp_scan_function": scan_cisco_ucs
,
35 ".1.3.6.1.4.1.9.9.719.1.41.2.1",
38 "10", # cucsProcessorEnvStatsTemperature
40 "group": "temperature",
41 "includes": ["cisco_ucs.include", "temperature.include"],
42 "default_levels_variable": "cisco_ucs_temp_cpu_default_levels",