用categraf通过snmp监控物理服务器
用categraf通过snmp监控物理服务器
参考教程:https://github.com/robotneo/idrac-monitor
categraf配置文件在categraf/conf/input.snmp/下
使用的grafana模板为21107 【https://grafana.com/grafana/dashboards/21107-dell-idrac-snmp-dashboard-for-vectoriametrics/】
DELL服务器
实现效果为:
categrafp配置文件:
# cat /opt/categraf/conf/input.snmp/snmp_dell_idrac.toml
interval = 30
[[instances]]
agents = [
"udp://10.x.x.x:161",
]
# metrics_name_prefix = "dell_"
interval_times = 1
# 标签可自定义标签值
labels = { region = "XY", role = "idrac", brand = "dell" }
# 每个agent请求的超时时间
timeout = "5s"
# SNMP Agent的版本
version = 2
# SNMP团体名
community = "public"
# 把戴尔的 mib 文件放入 /opt/categraf/mibs/dell 目录中
path = ["/opt/categraf/mibs/dell"]
translator = "gosmi"
# 代理主机标签
agent_host_tag = "device_ip"
# 每个agent重试次数
retries = 3
max_repetitions = 15
# iDRAC版本 racShortName
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.1.2.0"
name = "dell_idrac_shortname"
is_tag = true
# iDRAC固件版本 racFirmwareVersion
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.1.5.0"
name = "dell_idrac_firmware"
is_tag = true
# iDRAC界面的URL
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.1.6.0"
name = "dell_idrac_url"
is_tag = true
# # 设备名称 iDRAC-系统服务标签
# [[instances.field]]
# oid = ".1.3.6.1.2.1.1.5.0"
# name = "system_name"
# is_tag = true
# 服务标签
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.3.2.0"
name = "dell_service_tag"
is_tag = true
# 快速服务代码
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.3.3.0"
name = "dell_express_service_code"
is_tag = true
# 操作系统名称
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.3.6.0"
name = "dell_os_name"
is_tag = true
# 型号名称
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.3.12.0"
name = "dell_model_name"
is_tag = true
# 操作系统版本
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.3.14.0"
name = "dell_os_version"
is_tag = true
# 系统的唯一标识符或ID
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.1.3.13.0"
name = "dell_system_id"
# 设备全局系统状态 globalSystemStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.2.1.0"
name = "dell_glob_system_status"
# 设备LCD状态 systemLCDStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.2.2.0"
name = "dell_system_lcd_status"
# 设备全局存储状态 globalStorageStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.2.3.0"
name = "dell_global_storage_status"
# 设备系统电源状态 systemPowerState
# PowerStateStatusEnum (INTEGER)
# {other(1), unknown(2), off(3), on(4) }
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.2.4.0"
name = "dell_system_power_state"
# 设备系统电源在线时长 systemPowerUpTime 单位秒
# Unsigned32BitRange (INTEGER)
# (0..2147483647)
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.2.5.0"
name = "dell_system_power_uptime"
# 事件日志中的条目数 numEventLogEntries
# Unsigned32BitRange (INTEGER)
# (0..2147483647)
[[instances.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.1.0"
name = "dell_num_event_log"
# BIOS状态 systemBIOSTableEntry
[[instances.table]]
name = "dell"
# systemBIOSchassisIndex, systemBIOSIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# BIOS版本信息 systemBIOSVersionName
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.50.1.8"
name = "bios_version"
is_tag = true
# BIOS状态设置 systemBIOSStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.50.1.4"
name = "bios_state"
is_tag = true
# BIOS状态 systemBIOSStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.50.1.5"
name = "bios_status"
# 固件表 firmwareTableEntry
[[instances.table]]
name = "dell"
# firmwarechassisIndex, firmwareIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 固件状态设置 firmwareStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.60.1.4"
name = "firmware_state"
is_tag = true
# 固件状态 firmwareStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.60.1.5"
name = "firmware_status"
# 固件类型名称 firmwareTypeName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.60.1.8"
name = "firmware_type_name"
is_tag = true
# 固件版本 firmwareVersionName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.60.1.11"
name = "firmware_version_name"
is_tag = true
# 侵入表条目 intrusionTableEntry
[[instances.table]]
name = "dell"
# powerSupplychassisIndex, powerSupplyIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 侵入设备状态设置 intrusionStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.70.1.4"
name = "intrusion_state"
is_tag = true
# 侵入设备状态 intrusionStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.70.1.5"
name = "intrusion_status"
# 入侵位置名称 intrusionLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.300.70.1.8"
name = "intrusion_location_name"
is_tag = true
# 电源供应表条目 powerSupplyTableEntry
[[instances.table]]
name = "dell"
# intrusionchassisIndex, intrusionIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 电源实体状态设置 powerSupplyStateSettingsUnique
# PowerSupplyStateSettingsUniqueFlags (INTEGER) {unknown(1), onLine(2), notReady(4), fanFailure(8), onlineAndFanFailure(10),
# powerSupplyIsON(16), powerSupplyIsOK(32), acSwitchIsON(64), onlineandAcSwitchIsON(66),
# acPowerIsON(128), onlineAndAcPowerIsON(130),
# onlineAndPredictiveFailure(210),
# acPowerAndSwitchAreOnPowerSupplyIsOnIsOkAndOnline(242)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.4"
name = "power_state"
is_tag = true
# 电源实体状态 powerSupplyStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.5"
name = "power_status"
# 电源实体最大持续输出功率 powerSupplyOutputWatts 以十分之一瓦特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.6"
name = "power_output_watts"
is_tag = true
# 电源实体额定输入功率 powerSupplyRatedInputWattage 以十分之一瓦特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.14"
name = "power_input_watts"
is_tag = true
# 电源实体名称 powerSupplyLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.8"
name = "power_location_name"
is_tag = true
# 电源实体完全合格设备描述符 powerSupplyFQDD
# String64 (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.15"
name = "power_fqdd"
is_tag = true
# 电源实体最大输入电压 powerSupplyMaximumInputVoltage 以伏特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.9"
name = "power_max_inputvlo"
# 电源实体当前输入电压 powerSupplyCurrentInputVoltage 以伏特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.12.1.16"
name = "power_current_inputvlo"
# 电流探头条目表 amperageProbeTableEntry
[[instances.table]]
name = "dell"
# amperageProbechassisIndex, amperageProbeIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
filters = ["exprA:amperage_probe_type:^24|26$", "exprB:amperage_reading:.*"]
filters_expression = "exprA && exprB"
# 电流探头状态功能 amperageProbeStateCapabilities
# StateCapabilitiesFlags (INTEGER) {unknownCapabilities(1), enableCapable(2),
# notReadyCapable(4), enableAndNotReadyCapable(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.30.1.3"
name = "amperage_capab_state"
is_tag = true
# 电流探头状态设置 amperageProbeStateSettings
# StateSettingsFlags (INTEGER) {unknown(1), enabled(2), notReady(4),
# enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.30.1.4"
name = "amperage_setting_state"
is_tag = true
# 电流探头实体状态 amperageProbeStatus
# StatusProbeEnum (INTEGER) {other(1), unknown(2), ok(3), nonCriticalUpper(4),
# criticalUpper(5), nonRecoverableUpper(6), nonCriticalLower(7),
# criticalLower(8), nonRecoverableLower(9), failed(10) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.30.1.5"
name = "amperage_probe_status"
is_tag = true
# 电流探头探测的实际功率 amperageProbeReading 单位瓦特
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.30.1.6"
name = "amperage_reading"
# 电流探头类型 amperageProbeType
# AmperageProbeTypeEnum (INTEGER)
# amperageProbeTypeIsPowerSupplyWatts 24
# amperageProbeTypeIsSystemWatts 26
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.30.1.7"
name = "amperage_probe_type"
is_tag = true
# 电流探头名称 amperageProbeLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.30.1.8"
name = "power_location_name"
is_tag = true
# 系统电池表项 systemBatteryTableEntry
[[instances.table]]
name = "dell"
# systemBatteryChassisIndex, systemBatteryIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 系统电池状态设置 systemBatteryStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.50.1.4"
name = "battery_state"
is_tag = true
# 系统电池状态 systemBatteryStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.50.1.5"
name = "battery_status"
# 电池的位置名称 systemBatteryLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.600.50.1.7"
name = "battery_location_name"
is_tag = true
# 风扇设备条目表 coolingDeviceTableEntry
[[instances.table]]
name = "dell"
# coolingDevicechassisIndex, coolingDeviceIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 风扇状态设置 coolingDeviceStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.12.1.4"
name = "cooling_device_state"
is_tag = true
# 风扇状态 coolingDeviceStatus
# StatusProbeEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCriticalUpper(4), criticalUpper(5), nonRecoverableUpper(6), nonCriticalLower(7), criticalLower(8), nonRecoverableLower(9), failed(10) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.12.1.5"
name = "cooling_device_status"
# 风扇转速 coolingDeviceReading
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.12.1.6"
name = "cooling_rpm"
# 风扇位置名称 coolingDeviceLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.12.1.8"
name = "cooling_location_name"
is_tag = true
# 温度探针条目表 temperatureProbeTableEntry
[[instances.table]]
name = "dell"
# temperatureProbechassisIndex, temperatureProbeIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 温度探针状态设置 temperatureProbeStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.20.1.4"
name = "temperature_probe_state"
is_tag = true
# 温度探针状态 temperatureProbeStatus
# StatusProbeEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCriticalUpper(4), criticalUpper(5),
# nonRecoverableUpper(6), nonCriticalLower(7), criticalLower(8),
# nonRecoverableLower(9), failed(10) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.20.1.5"
name = "temperature_probe_status"
# 温度值 temperatureProbeReading 单位十分之一温度
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.20.1.6"
name = "temperature_value"
# 温度告警高阈值 temperatureProbeUpperCriticalThreshold 单位十分之一温度
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.20.1.10"
name = "temperature_threshold"
# 温度探针名称 temperatureProbeLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.700.20.1.8"
name = "temperature_probe_name"
is_tag = true
# CPU条目表 processorDeviceTableEntry
[[instances.table]]
name = "dell"
# processorDevicechassisIndex, processorDeviceIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# CPU状态设置 processorDeviceStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.5"
name = "cpu_state"
is_tag = true
# CPU状态 processorDeviceStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.5"
name = "cpu_status"
# CPU最大频率 processorDeviceMaximumSpeed 单位 MHz
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.11"
name = "cpu_max_speed"
is_tag = true
# CPU当前频率 processorDeviceCurrentSpeed 单位 MHz
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.12"
name = "cpu_current_speed"
is_tag = true
# 电压 processorDeviceVoltage 单位 毫伏
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.14"
name = "cpu_voltage"
is_tag = true
# CPU核心数 processorDeviceCoreCount
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.17"
name = "cpu_core_count"
is_tag = true
# CPU线程数 processorDeviceThreadCount
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.19"
name = "cpu_thread_count"
is_tag = true
# CPU卡槽位置 processorDeviceFQDD
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.26"
name = "cpu_fqdd"
is_tag = true
# CPU型号 processorDeviceModel
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.23"
name = "cpu_model"
is_tag = true
# CPU核心数 processorDeviceCors
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.18"
name = "cpu_cors"
is_tag = true
# CPU线程数 processorDeviceThreads
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.30.1.19"
name = "cpu_threads"
is_tag = true
# CPU状态信息读取 processorDeviceStatusReading
# ProcessorDeviceStatusReadingFlags (INTEGER)
# {internalError(1), thermalTrip(2), configurationError(32), processorPresent(128), processorDisabled(256), terminatorPresent(512), processorThrottled(1024) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.32.1.6"
name = "cpu_status_info"
# 内存条目表 memoryDeviceTableEntry
[[instances.table]]
name = "dell"
# memoryDevicechassisIndex, memoryDeviceIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 内存状态 memoryDeviceStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.4"
name = "mem_state"
is_tag = true
# 内存状态 memoryDeviceStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.5"
name = "mem_status"
# 内存类型 memoryDeviceType
# MemoryDeviceTypeEnum (INTEGER)
# {deviceTypeIsOther(1), deviceTypeIsUnknown(2), deviceTypeIsDRAM(3), deviceTypeIsEDRAM(4), deviceTypeIsVRAM(5),
# deviceTypeIsSRAM(6), deviceTypeIsRAM(7), deviceTypeIsROM(8), deviceTypeIsFLASH(9), deviceTypeIsEEPROM(10),
# deviceTypeIsFEPROM(11), deviceTypeIsEPROM(12), deviceTypeIsCDRAM(13), deviceTypeIs3DRAM(14), deviceTypeIsSDRAM(15),
# deviceTypeIsSGRAM(16), deviceTypeIsRDRAM(17), deviceTypeIsDDR(18), deviceTypeIsDDR2(19), deviceTypeIsDDR2FBDIMM(20),
# deviceTypeIsDDR3(24), deviceTypeIsFBD2(25), deviceTypeIsDDR4(26) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.7"
name = "mem_type"
is_tag = true
# 内存槽位全称 memoryDeviceFQDD
# String64 (OCTET STRING) (SIZE (0..64))
# DIMM.Socket.A1
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.26"
name = "mem_fqdd"
is_tag = true
# 内存大小 memoryDeviceSize
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.14"
name = "mem_size"
is_tag = true
# 内存频率 memoryDeviceSpeed 单位 MHz
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.15"
name = "mem_speed"
is_tag = true
# 内存当前频率 memoryDeviceCurrentOperatingSpeed 单位 MHz
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.15"
name = "mem_current_speed"
is_tag = true
# 内存品牌 memoryDeviceManufacturerName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.21"
name = "mem_brand"
is_tag = true
# 内存序列号 memoryDeviceSerialNumberName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.50.1.23"
name = "mem_sn"
is_tag = true
# FRU可更换硬件条目表 fruTableEntry
[[instances.table]]
name = "dell"
# fruChassisIndex, fruIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# FRU的状态 fruInformationStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.2000.10.1.3"
name = "fru_status"
# 组件品牌 fruManufacturerName
# OCTET STRING (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.2000.10.1.6"
name = "fru_brand"
is_tag = true
# 组件序列号 fruSerialNumberName
# OCTET STRING (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.2000.10.1.7"
name = "fru_sn"
is_tag = true
# 组件全称 fruFQDD
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.2000.10.1.12"
name = "fru_fqdd"
is_tag = true
# PCI设备表条目 pCIDeviceTableEntry
[[instances.table]]
name = "dell"
# pCIDevicechassisIndex, pCIDeviceIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# PCI设备是否启动 pCIDeviceStateSettings
# StateSettingsFlags (INTEGER)
# {unknown(1), enabled(2), notReady(4), enabledAndNotReady(6)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.80.1.4"
name = "pci_device_state"
is_tag = true
# PCI设备的健康状态 pCIDeviceStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.80.1.5"
name = "pci_device_status"
# PCI设备的品牌 pCIDeviceManufacturerName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.80.1.8"
name = "pci_device_brand"
is_tag = true
# PCI设备信息描述 pCIDeviceDescriptionName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.80.1.9"
name = "pci_device_desc"
is_tag = true
# PCI设备FQDD pCIDeviceFQDD
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.80.1.12"
name = "pci_device_fqdd"
is_tag = true
# 网络设备条目表 networkDeviceTableEntry
[[instances.table]]
name = "dell"
# networkDeviceChassisIndex, networkDeviceIndex
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 网络设备健康状态 networkDeviceStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.90.1.3"
name = "network_status"
# 网络设备连接状态 networkDeviceConnectionStatus
# NetworkDeviceConnectionStatusEnum (INTEGER)
# {connected(1), disconnected(2), driverBad(3), driverDisabled(4), hardwareInitalizing(10),
# hardwareResetting(11), hardwareClosing(12), hardwareNotReady(13) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.90.1.4"
name = "network_conn_status"
is_tag = true
# 网络设备品牌 networkDeviceVendorName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.90.1.7"
name = "network_vendor_name"
is_tag = true
# 网络设备当前Mac地址 networkDeviceCurrentMACAddress
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.90.1.15"
name = "network_current_mac"
conversion = "hwaddr"
is_tag = true
# 网络设备永久Mac地址 networkDevicePermanentMACAddress
# MACAddress (OCTET STRING) (SIZE (6))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.90.1.16"
name = "network_permanent_mac"
conversion = "hwaddr"
is_tag = true
# 网络设备FQDD networkDeviceFQDD
# MACAddress (OCTET STRING) (SIZE (6))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.4.1100.90.1.30"
name = "network_fqdd"
is_tag = true
# 控制器条目表 controllerTableEntry
[[instances.table]]
name = "dell"
# controllerNumber
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 存储管理控制器名称 controllerName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.2"
name = "contr_name"
is_tag = true
# 控制器综合状态 controllerRollUpStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.37"
name = "contr_rollup_status"
# 控制器本身状态 controllerComponentStatus
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.38"
name = "contr_comp_status"
# 控制器缓存大小 controllerCacheSizeInMB 单位 MB
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.9"
name = "contr_cache_size"
# 控制器加密模式 controllerSecurityStatus
# INTEGER {unknown(1),none(2),lkm(3)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.72"
name = "contr_security_status"
# 控制器I/O负载模式 controllerLoadBalanceSetting
# INTEGER {other(1),unsupported(2),auto(3),none(4)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.75"
name = "contr_balance_mode"
# 控制器最大速度 controllerMaxCapSpeed
# INTEGER {unknown(1),oneDotFiveGbps(2),threeGbps(3),sixGbps(4),twelveGbps(5)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.76"
name = "contr_max_speed"
# 控制器显示名称 controllerDisplayName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.79"
name = "contr_display_name"
is_tag = true
# 控制器固件版本 controllerFWVersion
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.8"
name = "contr_fw_version"
is_tag = true
# 控制器驱动版本 controllerDriverVersion
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.41"
name = "contr_driver_version"
is_tag = true
# 控制器资源用于在需要重建失败磁盘时进行重建的百分比 controllerRebuildRate
# INTEGER (0..100)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.7"
name = "contr_rebuild_rate"
# 在添加物理磁盘或更改存储在磁盘组上的虚拟磁盘的RAID级别后重建的百分比 controllerReconstructRate
# INTEGER (0..100)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.48"
name = "contr_reson_rate"
# 参与虚拟磁盘或热备份的磁盘执行巡逻读取的百分比 controllerPatrolReadRate
# INTEGER (0..100)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.49"
name = "contr_patrol_rate"
# 创建冗余虚拟磁盘后执行背景初始化的百分比 controllerBGIRate
# INTEGER (0..100)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.50"
name = "contr_bgi_rate"
# 冗余虚拟磁盘执行检查一致性的百分比 controllerCheckConsistencyRate
# INTEGER (0..100)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.51"
name = "contr_check_rate"
# Raid条目表 virtualDiskTableEntry
[[instances.table]]
name = "dell"
# virtualDiskNumber
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# Raid 状态 virtualDiskState
# INTEGER {unknown(1),online(2),failed(3),degraded(4)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.4"
name = "virtual_disk_status"
# Raid 磁盘大小 virtualDiskSizeInMB 单位 MB
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.6"
name = "virtual_disk_size"
# Raid 类型 virtualDiskLayout
# INTEGER {other(1),r0(2),r1(3),r5(4),r6(5),r10(6),r50(7),r60(8),concatRaid1(9),concatRaid5(10)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.13"
name = "virtual_disk_layout"
is_tag = true
# Raid 磁盘的条带大小 virtualDiskStripeSize
# INTEGER {other(1),default(2),fiveHundredAndTwelvebytes(3),oneKilobytes(4),
# twoKilobytes(5),fourKilobytes(6),eightKilobytes(7),sixteenKilobytes(8),thirtyTwoKilobytes(9),
# sixtyFourKilobytes(10),oneTwentyEightKilobytes(11),twoFiftySixKilobytes(12),
# fiveOneTwoKilobytes(13),oneMegabye(14),twoMegabytes(15),fourMegabytes(16),
# eightMegabytes(17),sixteenMegabytes(18)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.14"
name = "virtual_disk_stripe"
is_tag = true
# Raid 协议 virtualDiskAvailableProtocols
# DISPLAYSTRING SAS SATA
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.32"
name = "virtual_disk_proto"
is_tag = true
# Raid 磁盘类型 virtualDiskMediaType
# DISPLAYSTRING HDD SSD
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.33"
name = "virtual_disk_type"
is_tag = true
# Raid 磁盘显示名称 virtualDiskDisplayName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.36"
name = "virtual_disk_display"
is_tag = true
# Raid 磁盘FQDD virtualDiskFQDD
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.35"
name = "virtual_disk_fqdd"
is_tag = true
# 物理磁盘状态虚拟表 physicalDiskTableEntry
[[instances.table]]
name = "dell"
# physicalDiskNumber
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 物理磁盘的状态 physicalDiskState
# INTEGER
# {unknown(1),ready(2),online(3),foreign(4),offline(5),
# blocked(6),failed(7),nonraid(8),removed(9),readonly(10)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.4"
name = "physical_disk_status"
# 物理磁盘本身的状态 不考虑任何包含的组件状态的传播 physicalDiskComponentStatus
# ObjectStatusEnum (INTEGER) {other(1), unknown(2), ok(3),
# nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.24"
name = "physical_disk_self_status"
# 磁盘名称 physicalDiskName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2"
name = "physical_disk_name"
is_tag = true
# 磁盘热备状态 physicalDiskSpareState
# INTEGER {notASpare(1),dedicatedHotSpare(2),globalHotSpare(3)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.21"
name = "physical_disk_spare"
is_tag = true
# 预测故障警报 physicalDiskSmartAlertIndication
# BooleanType (INTEGER) (0..1)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.31"
name = "physical_disk_smart_alert"
is_tag = true
# 物理磁盘的电源状态 physicalDiskPowerState
# INTEGER {other(1),spunUp(2),spunDown(3),transition(4),on(5)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.42"
name = "physical_disk_power_state"
# SSD的磨损百分比 physicalDiskRemainingRatedWriteEndurance
# INTEGER (0..255) 0~100 无效255
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.49"
name = "physical_disk_remain_rate"
is_tag = true
# 物理磁盘正在进行时的操作 physicalDiskOperationalState
# INTEGER {notApplicable(1),rebuild(2),clear(3),copyback(4)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.50"
name = "physical_disk_oper_state"
is_tag = true
# 正在物理磁盘上执行的操作的进度百分比 physicalDiskProgress
# INTEGER (0..100)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.51"
name = "physical_disk_progress"
is_tag = true
# 物理磁盘的安全/加密状态 physicalDiskSecurityStatus
# INTEGER {supported(1),notSupported(2),secured(3),locked(4),foreign(5)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.52"
name = "physical_disk_sec_status"
is_tag = true
# 物理磁盘信息虚拟表 physicalDiskTableEntry
[[instances.table]]
name = "dell"
# physicalDiskNumber
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 磁盘名称 physicalDiskName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2"
name = "physical_disk_name"
is_tag = true
# 磁盘品牌 physicalDiskManufacturer
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.3"
name = "physical_disk_brand"
is_tag = true
# 磁盘序列号 physicalDiskSerialNo
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.7"
name = "physical_disk_serialnum"
is_tag = true
# 磁盘产品ID physicalDiskProductID
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.6"
name = "physical_disk_productid"
is_tag = true
# 磁盘固件版本 physicalDiskRevision
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.8"
name = "physical_disk_revision"
is_tag = true
# 物理磁盘的总线类型 physicalDiskBusType
# INTEGER {unknown(1),scsi(2),sas(3),sata(4),fibre(5),pcie(6),nvme(7)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.21"
name = "physical_disk_bus_type"
# 物理磁盘类型 physicalDiskMediaType
# INTEGER {unknown(1),hdd(2),ssd(3)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35"
name = "physical_disk_media_type"
is_tag = true
# 物理磁盘的尺寸形状 physicalDiskFormFactor
# INTEGER {unknown(1),oneDotEight(2),twoDotFive(3),threeDotFive(4),edsffe1DotL(5)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.53"
name = "physical_disk_form_factor"
is_tag = true
# 物理磁盘是否支持T10 PI physicalDiskT10PICapability
# INTEGER {other(1),capable(2),notCapable(3)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.57"
name = "physical_disk_picap"
is_tag = true
# 物理磁盘的块大小(以字节为单位)这不适用于NVMe设备 physicalDiskBlockSizeInBytes
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.58"
name = "physical_disk_blocksize"
is_tag = true
# 仅适用于NVMe设备 设备支持的NVMe协议版本 physicalDiskProtocolVersion
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.59"
name = "physical_disk_proto_version"
is_tag = true
# 物理磁盘速率虚拟表 physicalDiskTableEntry
[[instances.table]]
name = "dell"
# physicalDiskNumber
index_as_tag = true
inherit_tags = ["dell_idrac_shortname", "dell_service_tag"]
# 磁盘名称 physicalDiskName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.2"
name = "physical_disk_name"
is_tag = true
# 磁盘大小 physicalDiskCapacityInMB
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.11"
name = "physical_disk_capacity"
is_tag = true
# 磁盘使用大小 physicalDiskUsedSpaceInMB
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.17"
name = "physical_disk_usage"
# 磁盘启动时协商速度 physicalDiskNegotiatedSpeed
# INTEGER {unknown(1),oneDotFiveGbps(2),threeGbps(3),sixGbps(4),twelveGbps(5),fiveGTps(6),
# eightGTps(7),sixteenGTps(8),thirtytwoGTps(9)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.29"
name = "physical_disk_neg_speed"
is_tag = true
# 磁盘支持的最大数据传输速度 physicalDiskCapableSpeed 单位为每秒千兆比特(Gbps)
# 1:The speed could not be determined.2. 1.5 Gbps3:3.0 Gbps4:6.0 Gbps5:12.0 Gbps
# 6:5 GT/s (applicable for NVMe devices).
# 7:8 GT/s (applicable for NVMe devices).
# 8:16 GT/s (applicable for NVMe devices).
# 9:32 GT/s (applicable for NVMe devices).
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.30"
name = "physical_disk_cap_speed"
is_tag = true
# 物理磁盘类型 physicalDiskMediaType
# INTEGER {unknown(1),hdd(2),ssd(3)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.35"
name = "physical_disk_media_type"
is_tag = true
# 仅适用于NVMe设备 设备支持的NVMe协议版本 physicalDiskProtocolVersion
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.59"
name = "physical_disk_proto_version"
is_tag = true
# 仅适用于NVMe设备 设备初始化期间与主机协商的PCIe链接宽度 physicalDiskPCIeNegotiatedLinkWidth
# INTEGER {other(1),notApplicable(2),byOne(3),byTwp(4),
# byFour(5),byEight(6),bySixteen(7),byThirtyTwp(8)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.60"
name = "physical_disk_pcie_nego"
is_tag = true
# 仅适用于NVMe设备 设备能够支持的PCIe链路宽度 physicalDiskPCIeCapableLinkWidth
# INTEGER {other(1),notApplicable(2),byOne(3),byTwp(4),
# byFour(5),byEight(6),bySixteen(7),byThirtyTwp(8)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.4.1.61"
name = "physical_disk_pcie_capa"
is_tag = true
监控H3C服务器
categraf配置[通过dell修改]:
interval = 30
[[instances]]
agents = [
"udp://10.5.255.163:161",
"udp://10.5.255.164:161",
"udp://10.5.255.165:161",
"udp://10.5.255.166:161",
"udp://10.5.255.167:161",
"udp://10.5.255.168:161",
"udp://10.8.1.23:161",
"udp://10.8.16.151:161",
"udp://10.8.16.152:161",
"udp://10.8.16.153:161",
]
#metrics_name_prefix = "h3c_"
interval_times = 1
# 标签可自定义标签值
labels = { region = "XY", role = "hdm", brand = "H3C" }
# 每个agent请求的超时时间
timeout = "5s"
# SNMP Agent的版本
version = 2
# SNMP团体名
community = "public"
# 把戴尔的 mib 文件放入 /opt/categraf/mibs/dell 目录中
#path = ["/opt/categraf/mibs/dell"]
path = ["/opt/snmp_exporter/generator/mib_h3c"]
translator = "gosmi"
# 代理主机标签
agent_host_tag = "device_ip"
# 每个agent重试次数
retries = 3
max_repetitions = 15
# iDRAC固件版本 racFirmwareVersion
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.2.7.1.0"
name = "h3c_idrac_firmware"
is_tag = true
# 服务标签
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.13.0"
name = "h3c_service_tag"
is_tag = true
# 快速服务代码
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.13.0"
name = "h3c_express_service_code"
is_tag = true
# 型号名称
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.2.8.1.0"
name = "h3c_model_name"
is_tag = true
# 操作系统版本
# [[instances.field]]
# oid = ".1.3.6.1.4.1.674.10892.5.1.3.14.0"
# name = "h3c_os_version"
# is_tag = true
# 系统的唯一标识符或ID
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.2.8.3.0"
name = "h3c_system_id"
# 设备全局系统状态 globalSystemStatus
# ObjectStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.12.0"
name = "h3c_glob_system_status"
# 设备全局存储状态 globalStorageStatus
# ObjectStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.4.0"
name = "h3c_global_storage_status"
# 设备系统电源状态 systemPowerState
# PowerStateStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.7.1.2.0"
name = "h3c_system_power_state"
# 设备系统电源在线时长 systemPowerUpTime 单位秒
# Unsigned32BitRange (INTEGER)
# (0..2147483647)
[[instances.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.2.8.4.0"
name = "h3c_system_power_uptime"
# CPU状态 systemBIOSTableEntry
[[instances.table]]
name = "h3c"
# systemBIOSchassisIndex, systemBIOSIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# CPU状态 CpuStatus
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.14"
name = "cpu_status"
# CPU状态 CpuModel
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.2"
name = "cpu_model"
is_tag = true
# CPU主频 CpuFreq
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.3"
name = "cpu_freq"
is_tag = true
# CPU核心数 CpuCors
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.4"
name = "cpu_cors"
is_tag = true
# CPU线程数 CpuThreads
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.8"
name = "cpu_threads"
is_tag = true
# BIOS状态 systemBIOSTableEntry
[[instances.table]]
name = "h3c"
# systemBIOSchassisIndex, systemBIOSIndex
index_as_tag = true
# inherit_tags = ["h3c_idrac_shortname", "h3c_service_tag"]
inherit_tags = ["h3c_service_tag"]
# BIOS版本信息 systemBIOSVersionName
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.2.7.2"
name = "bios_version"
is_tag = true
# 固件表 firmwareTableEntry
[[instances.table]]
name = "h3c"
# firmwarechassisIndex, firmwareIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 电源供应表条目 powerSupplyTableEntry
[[instances.table]]
name = "h3c"
# intrusionchassisIndex, intrusionIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 电源实体状态 powerSupplyStatus
# ObjectStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.7.1.1.1.13"
name = "power_status"
# 电源实体最大持续输出功率 powerSupplyOutputWatts 以十分之一瓦特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.7.1.1.1.4"
name = "power_output_watts"
is_tag = true
# 电源实体额定输入功率 powerSupplyRatedInputWattage 以十分之一瓦特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.7.1.1.1.4"
name = "power_input_watts"
is_tag = true
# 电源实体名称 powerSupplyLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.7.1.1.1.14"
name = "power_location_name"
is_tag = true
# 电源实体最大输入电压 powerSupplyMaximumInputVoltage 以伏特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.7.1.1.1.11"
name = "power_max_inputvlo"
# 电源实体当前功率 amperage_reading 以瓦特特为单位
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.7.1.1.1.10"
name = "amperage_reading"
# 风扇设备条目表 coolingDeviceTableEntry
[[instances.table]]
name = "h3c"
# coolingDevicechassisIndex, coolingDeviceIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 风扇状态 coolingDeviceStatus
# StatusProbeEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.10.1.1.8"
name = "cooling_device_status"
# 风扇转速 coolingDeviceReading
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.10.1.1.5"
name = "cooling_rpm"
# 风扇位置名称 coolingDeviceLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.10.1.1.2"
name = "cooling_location_name"
is_tag = true
# 温度探针条目表 temperatureProbeTableEntry
[[instances.table]]
name = "h3c"
# temperatureProbechassisIndex, temperatureProbeIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 温度探针状态 temperatureProbeStatus
# StatusProbeEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.11.3.1.6"
name = "temperature_probe_status"
# 温度值 temperatureProbeReading 单位十分之一温度
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.11.3.1.4"
name = "temperature_value"
# 温度告警高阈值 temperatureProbeUpperCriticalThreshold 单位十分之一温度
# Signed32BitRange (INTEGER) (-2147483647.2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.11.3.1.11"
name = "temperature_threshold"
# 温度探针名称 temperatureProbeLocationName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.11.3.1.3"
name = "temperature_probe_name"
is_tag = true
# CPU条目表 processorDeviceTableEntry
[[instances.table]]
name = "h3c"
# processorDevicechassisIndex, processorDeviceIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# CPU状态 processorDeviceStatus
# ObjectStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.2"
name = "cpu_status"
# CPU最大频率 processorDeviceMaximumSpeed 单位 MHz
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.3"
name = "cpu_max_speed"
is_tag = true
# CPU核心数 processorDeviceCoreCount
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.4"
name = "cpu_core_count"
is_tag = true
# CPU线程数 processorDeviceThreadCount
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.8"
name = "cpu_thread_count"
is_tag = true
# CPU卡槽位置 processorDeviceFQDD
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.15"
name = "cpu_fqdd"
is_tag = true
# CPU状态信息读取 processorDeviceStatusReading
# ProcessorDeviceStatusReadingFlags (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.1.1.1.14"
name = "cpu_status_info"
# 内存条目表 memoryDeviceTableEntry
[[instances.table]]
name = "h3c"
# memoryDevicechassisIndex, memoryDeviceIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 内存状态 memoryDeviceStatus
# ObjectStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.16"
name = "mem_status"
# 内存类型 memoryDeviceType
# MemoryDeviceTypeEnum (INTEGER)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.8"
name = "mem_type"
is_tag = true
# 内存槽位全称 memoryDeviceFQDD
# String64 (OCTET STRING) (SIZE (0..64))
# DIMM.Socket.A1
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.4"
name = "mem_fqdd"
is_tag = true
# 内存大小 memoryDeviceSize
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.6"
name = "mem_size"
is_tag = true
# 内存频率 memoryDeviceSpeed 单位 MHz
# Unsigned32BitRange (INTEGER) (0..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.7"
name = "mem_speed"
is_tag = true
# 内存当前频率 memoryDeviceCurrentOperatingSpeed 单位 MHz
# Unsigned32BitRange (INTEGER) (0..2147483647)
#[[instances.table.field]]
#oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.7"
#name = "mem_current_speed"
#is_tag = true
# 内存品牌 memoryDeviceManufacturerName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.12"
name = "mem_brand"
is_tag = true
# 内存序列号 memoryDeviceSerialNumberName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.2.2.1.17"
name = "mem_sn"
is_tag = true
# FRU可更换硬件条目表 fruTableEntry
[[instances.table]]
name = "h3c"
# fruChassisIndex, fruIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# FRU的状态 fruInformationId
# ObjectStatusEnum (INTEGER)
# {other(1), unknown(2), ok(3), nonCritical(4), critical(5), nonRecoverable(6) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.2"
name = "fru_id"
# 组件品牌 fruName
# OCTET STRING (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.4"
name = "fru_name"
is_tag = true
# 组件品牌 fruManufacturerName
# OCTET STRING (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.16"
name = "fru_brand"
is_tag = true
# 组件品牌 fruDate
# OCTET STRING (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.5"
name = "fru_date"
is_tag = true
# 组件序列号 fruSerialNumberName
# OCTET STRING (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.18"
name = "fru_sn"
is_tag = true
# 组件全称 fruFQDD
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.3.1.1.17"
name = "fru_fqdd"
is_tag = true
# PCI设备表条目 pCIDeviceTableEntry
[[instances.table]]
name = "h3c"
# pCIDevicechassisIndex, pCIDeviceIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# PCI设备的健康状态 pCIDeviceStatus
# ObjectStatusEnum (INTEGER)
# {Normal(0), Abnormal(1), Absent(2) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.5.1.1.1.4"
name = "pci_device_status"
# PCI设备的品牌 pCIDeviceManufacturerName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.5.1.1.1.14"
name = "pci_device_brand"
is_tag = true
# PCI设备信息描述 pCIDeviceDescriptionName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.5.1.1.1.2"
name = "pci_device_desc"
is_tag = true
# PCI设备序列号 pCIDeviceserialnum
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.5.1.1.1.11"
name = "pci_device_serialnum"
is_tag = true
# PCI设备mode pCIDeviceMode
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.5.1.1.1.9"
name = "pci_device_mode"
is_tag = true
# PCI设备最大带宽 pCIDeviceCurLink
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.5.1.1.1.3"
name = "pci_device_cur_datalink"
is_tag = true
# PCI设备当前 pCIDeviceMaxLink
# FQDDString (OCTET STRING) (SIZE (0..512))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.5.1.1.1.13"
name = "pci_device_max_datalink"
is_tag = true
# 网络设备条目表 networkDeviceTableEntry
[[instances.table]]
name = "h3c"
# networkDeviceChassisIndex, networkDeviceIndex
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 网络设备连接状态 networkDeviceConnectionStatus
# NetworkDeviceConnectionStatusEnum (INTEGER)
# {NA(0), Up(1), Down(2)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.6.3.1.17"
name = "network_conn_status"
# 网络设备品牌 networkDeviceVendorName
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.6.3.1.16"
name = "network_vendor_name"
is_tag = true
# 网络设备接口类型 networkDeviceVendorModul
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.6.3.1.7"
name = "network_vendor_modul"
is_tag = true
# 网络设备速率 networkDeviceVendorSpeed
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.6.3.1.8"
name = "network_vendor_speed"
is_tag = true
# 网络设备当前速率 networkDeviceVendorCurSpeed
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.6.3.1.18"
name = "network_vendor_cur_speed"
is_tag = true
# 网络设备当前Mac地址 networkDeviceCurrentMACAddress
# String64 (OCTET STRING) (SIZE (0..64))
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.6.3.1.13"
name = "network_current_mac"
is_tag = true
# 控制器条目表 controllerTableEntry
[[instances.table]]
name = "h3c"
# controllerNumber
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 存储管理控制器名称 controllerName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.2"
name = "contr_name"
is_tag = true
# 控制器本身状态 controllerComponentStatus
# ObjectStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.10"
name = "contr_comp_status"
# 控制器缓存大小 controllerCacheSizeInMB 单位 GB
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.5"
name = "contr_cache_size"
is_tag = true
# 控制器加密模式 controllerSecurityStatus
# INTEGER {unknown(1),none(2),lkm(3)}
# [[instances.table.field]]
# oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.130.1.1.72"
# name = "contr_security_status"
# 控制器模式 controllerCurMode
# INTEGER {other(1),unsupported(2),auto(3),none(4)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.6"
name = "contr_cur_mode"
is_tag = true
# 控制器当前任务状态 controllerCurCapacitor
# INTEGER {unknown(1),oneDotFiveGbps(2),threeGbps(3),sixGbps(4),twelveGbps(5)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.7"
name = "contr_cur_capacitor"
is_tag = true
# 控制器当前任务进度 controllerCurCapacitorP
# INTEGER {unknown(1),oneDotFiveGbps(2),threeGbps(3),sixGbps(4),twelveGbps(5)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.8"
name = "contr_cur_capacitor_p"
is_tag = true
# 控制器显示名称 controllerDisplayName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.2"
name = "contr_display_name"
is_tag = true
# 控制器固件版本 controllerFWVersion
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.3"
name = "contr_fw_version"
is_tag = true
# 控制器驱动版本 controllerDriverVersion
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.1.1.14"
name = "contr_driver_version"
is_tag = true
# Raid条目表 virtualDiskTableEntry
[[instances.table]]
name = "h3c"
# virtualDiskNumber
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# Raid 状态 virtualraidState
# ObjectStatusEnum (INTEGER)
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5) }
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.4"
name = "virtual_raid_status"
# Raid卷序列 virtualDisksn
# INTEGER {Unhealth(0),Health(1)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.2.1.1"
name = "virtual_disk_sn"
# Raid卷 状态 virtualDiskState
# INTEGER {Unhealth(0),Health(1)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.2.1.2"
name = "virtual_disk_status"
is_tag = true
# Raid 磁盘大小 virtualDiskSizeInMB 单位 MB
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.2.1.4"
name = "virtual_disk_size"
is_tag = true
# Raid 类型 virtualDiskLayout
# INTEGER {other(1),r0(2),r1(3),r5(4),r6(5),r10(6),r50(7),r60(8),concatRaid1(9),concatRaid5(10)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.2.1.3"
name = "virtual_disk_layout"
is_tag = true
# Raid 磁盘显示名称 virtualDiskDisplayName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.4.2.1.11"
name = "virtual_disk_display"
is_tag = true
# Raid 磁盘FQDD virtualDiskFQDD
# DISPLAYSTRING
# [[instances.table.field]]
# oid = ".1.3.6.1.4.1.674.10892.5.5.1.20.140.1.1.35"
# name = "virtual_disk_fqdd"
# is_tag = true
# 物理磁盘状态虚拟表 physicalDiskTableEntry
[[instances.table]]
name = "h3c"
# physicalDiskNumber
index_as_tag = true
inherit_tags = ["h3c_service_tag"]
# 磁盘状态 physicalDiskSubState
# {Unknown(0), Absent(1), OK(2), Minor(3), Major(4), Fatal(5)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.11"
name = "physical_disk_sub_state"
# 磁盘名称 physicalDiskName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.12"
name = "physical_disk_name"
is_tag = true
# SSD的磨损百分比 physicalDiskRemainingRatedWriteEndurance
# INTEGER (0..255) 0~100 无效255
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.10"
name = "physical_disk_remain_rate"
is_tag = true
# 物理磁盘正在进行时的操作 physicalDiskOperationalState
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.4"
name = "physical_disk_oper_state"
is_tag = true
# 磁盘名称 physicalDiskName
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.12"
name = "physical_disk_name"
is_tag = true
# 磁盘品牌 physicalDiskManufacturer
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.17"
name = "physical_disk_brand"
is_tag = true
# 磁盘序列号 physicalDiskSerialNo
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.7"
name = "physical_disk_serialnum"
is_tag = true
# 磁盘产品ID physicalDiskProductID
# DISPLAYSTRING
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.16"
name = "physical_disk_productid"
is_tag = true
# 物理磁盘的总线类型 physicalDiskBusType
# INTEGER {unknown(1),scsi(2),sas(3),sata(4),fibre(5),pcie(6),nvme(7)}
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.8"
name = "physical_disk_bus_type"
is_tag = true
# 磁盘大小 physicalDiskCapacityInMB
# INTEGER (1..2147483647)
[[instances.table.field]]
oid = ".1.3.6.1.4.1.25506.13.1.2.1.1.9.3.1.9"
name = "physical_disk_capacity"
is_tag = true
grafana-jsion For H3C
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "victoriametrics-metrics-datasource"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "H3C物理服务器带外监控面板",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 89,
"links": [
{
"asDropdown": false,
"icon": "bolt",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "更新",
"tooltip": "更新仪表板",
"type": "link",
"url": "https://grafana.com/grafana/dashboards/21107"
},
{
"asDropdown": false,
"icon": "doc",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "GitHub",
"tooltip": "Github:robotneo",
"type": "link",
"url": "https://github.com/robotneo/idrac-monitor"
},
{
"asDropdown": true,
"icon": "external link",
"includeVars": false,
"keepTime": false,
"tags": [],
"targetBlank": true,
"title": "面板列表",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"panels": [],
"title": "系统信息:总数【$total】",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "服务器系统基础信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "brand"
},
"properties": [
{
"id": "displayName",
"value": "品牌"
},
{
"id": "custom.minWidth",
"value": 60
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "custom.align",
"value": "center"
}
]
},
{
"matcher": {
"id": "byName",
"options": "device_ip"
},
"properties": [
{
"id": "displayName",
"value": "远程管理卡IP"
},
{
"id": "custom.minWidth",
"value": 120
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_service_tag (lastNotNull)"
},
"properties": [
{
"id": "displayName",
"value": "服务标签"
},
{
"id": "custom.minWidth",
"value": 100
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "服务标签"
},
{
"id": "noValue"
},
{
"id": "custom.align",
"value": "center"
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_express_service_code (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth",
"value": 120
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "快速服务代码"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_idrac_firmware (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth",
"value": 100
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "iDRAC固件"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_idrac_shortname (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth",
"value": 80
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "iDRAC版本"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_idrac_url (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth",
"value": 200
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "iDRAC界面URL"
},
{
"id": "noValue"
},
{
"id": "links",
"value": [
{
"title": "${__data.fields.h3c_idrac_url}",
"url": "${__data.fields.h3c_idrac_url}"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_model_name (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "型号"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_os_name (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "操作系统名称"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "h3c_os_version (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "操作系统版本"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #B (lastNotNull)"
},
"properties": [
{
"id": "custom.width"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "displayName",
"value": "带外状态"
},
{
"id": "noValue"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 1
},
"id": 1,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_system_id{region=~\"$region\", role=~\"$role\", brand=~\"$brand\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_glob_system_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "B"
}
],
"title": "系统信息",
"transformations": [
{
"id": "groupBy",
"options": {
"fields": {
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"brand": {
"aggregations": [],
"operation": "groupby"
},
"device_ip": {
"aggregations": [],
"operation": "groupby"
},
"h3c_express_service_code": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_idrac_firmware": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_idrac_shortname": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_idrac_url": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_model_name": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_os_name": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_os_version": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_service_tag": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"{__name__=\"snmp_icmp_up\", agent_hostname=\"categraf\", brand=\"h3c\", device_ip=\"172.17.42.1\", region=\"hangzhou\", role=\"idrac\"}": {
"aggregations": []
}
}
}
},
{
"id": "merge",
"options": {}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value": true,
"Value #A (lastNotNull)": true,
"__name__": true,
"agent_hostname": true,
"h3c_express_service_code (lastNotNull)": true,
"region": true,
"role": true,
"{__name__=\"snmp_icmp_up\", agent_hostname=\"categraf\", brand=\"h3c\", device_ip=\"172.17.42.1\", region=\"hangzhou\", role=\"idrac\"}": false
},
"includeByName": {},
"indexByName": {
"Value #A (lastNotNull)": 11,
"Value #B (lastNotNull)": 2,
"brand": 0,
"device_ip": 1,
"h3c_express_service_code (lastNotNull)": 4,
"h3c_idrac_firmware (lastNotNull)": 5,
"h3c_idrac_shortname (lastNotNull)": 6,
"h3c_idrac_url (lastNotNull)": 7,
"h3c_model_name (lastNotNull)": 8,
"h3c_os_name (lastNotNull)": 9,
"h3c_os_version (lastNotNull)": 10,
"h3c_service_tag (lastNotNull)": 3
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 9
},
"id": 3,
"panels": [],
"title": "组件状态",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器系统启动时间信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"mappings": [],
"max": 0,
"min": 1825,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 4,
"x": 0,
"y": 10
},
"id": 18,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_system_power_uptime{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"} / 24",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "系统启动时间(天)",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器全局系统电源状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "blue",
"index": 0,
"text": "未知"
},
"1": {
"color": "text",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 4,
"x": 4,
"y": 10
},
"id": 6,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"expr": "snmp_h3c_system_power_state{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "系统电源状态",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器全局系统状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 3,
"x": 8,
"y": 10
},
"id": 4,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"expr": "snmp_h3c_glob_system_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "全局系统状态",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器全局存储状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "dark-red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 4,
"x": 11,
"y": 10
},
"id": 5,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"expr": "snmp_h3c_global_storage_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "全局存储状态",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器设备Raid状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "cpu_model (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "displayName",
"value": "CPU类型"
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "cpu_freq (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "CPU主频"
},
{
"id": "noValue"
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "cpu_threads (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "red",
"index": 0,
"text": "其他"
},
"2": {
"color": "orange",
"index": 1,
"text": "RAID 0"
},
"3": {
"color": "yellow",
"index": 2,
"text": "RAID 1"
},
"4": {
"color": "green",
"index": 3,
"text": "RAID 5"
},
"5": {
"color": "blue",
"index": 4,
"text": "RAID 6"
},
"6": {
"color": "purple",
"index": 5,
"text": "RAID 10"
},
"7": {
"color": "super-light-blue",
"index": 6,
"text": "RAID 50"
},
"8": {
"color": "super-light-green",
"index": 7,
"text": "RAID 60"
},
"9": {
"color": "super-light-yellow",
"index": 8,
"text": "RAID 1(级联)"
},
"10": {
"color": "super-light-purple",
"index": 9,
"text": "RAID 5(级联)"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "CPU线程数"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "cpu_cors (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "CPU核心数"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_stripe (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "条带大小"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "red",
"index": 0,
"text": "其他"
},
"2": {
"color": "green",
"index": 1,
"text": "默认"
},
"3": {
"color": "dark-green",
"index": 2,
"text": "512 bytes"
},
"4": {
"color": "semi-dark-green",
"index": 3,
"text": "1 Kilobytes"
},
"5": {
"color": "light-green",
"index": 4,
"text": "2 Kilobytes"
},
"6": {
"color": "super-light-green",
"index": 5,
"text": "4 Kilobytes"
},
"7": {
"color": "dark-blue",
"index": 6,
"text": "8 Kilobytes"
},
"8": {
"color": "semi-dark-blue",
"index": 7,
"text": "16 Kilobytes"
},
"9": {
"color": "blue",
"index": 8,
"text": "32 Kilobytes"
},
"10": {
"color": "light-blue",
"index": 9,
"text": "64 Kilobytes"
},
"11": {
"color": "super-light-blue",
"index": 10,
"text": "128 Kilobytes"
},
"12": {
"color": "dark-purple",
"index": 11,
"text": "256 Kilobytes"
},
"13": {
"color": "semi-dark-purple",
"index": 12,
"text": "512 Kilobytes"
},
"14": {
"color": "purple",
"index": 13,
"text": "1 Megabytes"
},
"15": {
"color": "light-purple",
"index": 14,
"text": "2 Megabytes"
},
"16": {
"color": "super-light-purple",
"index": 15,
"text": "4 Megabytes"
},
"17": {
"color": "dark-yellow",
"index": 16,
"text": "8 Megabytes"
},
"18": {
"color": "semi-dark-yellow",
"index": 17,
"text": "16 Megabytes"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_type (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "Raid 磁盘类型"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_status (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "Raid 状态"
},
{
"id": "noValue"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "未知"
},
"2": {
"color": "green",
"index": 1,
"text": "在线"
},
"3": {
"color": "red",
"index": 2,
"text": "失败"
},
"4": {
"color": "purple",
"index": 3,
"text": "降级"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_size (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "Raid逻辑卷大小"
},
{
"id": "noValue"
},
{
"id": "unit",
"value": "mbytes"
}
]
},
{
"matcher": {
"id": "byName",
"options": "CPU类型"
},
"properties": [
{
"id": "custom.width",
"value": 320
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 9,
"x": 15,
"y": 10
},
"id": 39,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_cpu_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "CPU信息",
"transformations": [
{
"id": "groupBy",
"options": {
"fields": {
"Value": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"cpu_cors": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"cpu_freq": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"cpu_model": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"cpu_threads": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"device_ip": {
"aggregations": [],
"operation": "groupby"
},
"index": {
"aggregations": [],
"operation": "groupby"
},
"virtual_disk_display": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_layout": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_size": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_status": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_stripe": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_type": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value (lastNotNull)": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Value (lastNotNull)": 6,
"cpu_cors (lastNotNull)": 4,
"cpu_freq (lastNotNull)": 3,
"cpu_model (lastNotNull)": 2,
"cpu_threads (lastNotNull)": 5,
"device_ip": 0,
"index": 1
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "物理机当前使用功率",
"fieldConfig": {
"defaults": {
"color": {
"mode": "continuous-GrYlRd"
},
"mappings": [],
"max": 900,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 10,
"x": 0,
"y": 15
},
"id": 37,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": true,
"textMode": "value_and_name",
"wideLayout": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"expr": "sum(snmp_h3c_amperage_reading{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"})",
"instant": false,
"legendFormat": "System Board Pwr Consumption",
"range": true,
"refId": "A"
}
],
"title": "物理机当前使用功率",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器设备Raid状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "virtual_disk_display (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "displayName",
"value": "Raid逻辑卷名称"
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_fqdd (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "Raid控制器全称"
},
{
"id": "noValue"
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_layout (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "red",
"index": 0,
"text": "其他"
},
"2": {
"color": "orange",
"index": 1,
"text": "RAID 0"
},
"3": {
"color": "yellow",
"index": 2,
"text": "RAID 1"
},
"4": {
"color": "green",
"index": 3,
"text": "RAID 5"
},
"5": {
"color": "blue",
"index": 4,
"text": "RAID 6"
},
"6": {
"color": "purple",
"index": 5,
"text": "RAID 10"
},
"7": {
"color": "super-light-blue",
"index": 6,
"text": "RAID 50"
},
"8": {
"color": "super-light-green",
"index": 7,
"text": "RAID 60"
},
"9": {
"color": "super-light-yellow",
"index": 8,
"text": "RAID 1(级联)"
},
"10": {
"color": "super-light-purple",
"index": 9,
"text": "RAID 5(级联)"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "Raid类型"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_proto (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "Raid 协议"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_stripe (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "条带大小"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "red",
"index": 0,
"text": "其他"
},
"2": {
"color": "green",
"index": 1,
"text": "默认"
},
"3": {
"color": "dark-green",
"index": 2,
"text": "512 bytes"
},
"4": {
"color": "semi-dark-green",
"index": 3,
"text": "1 Kilobytes"
},
"5": {
"color": "light-green",
"index": 4,
"text": "2 Kilobytes"
},
"6": {
"color": "super-light-green",
"index": 5,
"text": "4 Kilobytes"
},
"7": {
"color": "dark-blue",
"index": 6,
"text": "8 Kilobytes"
},
"8": {
"color": "semi-dark-blue",
"index": 7,
"text": "16 Kilobytes"
},
"9": {
"color": "blue",
"index": 8,
"text": "32 Kilobytes"
},
"10": {
"color": "light-blue",
"index": 9,
"text": "64 Kilobytes"
},
"11": {
"color": "super-light-blue",
"index": 10,
"text": "128 Kilobytes"
},
"12": {
"color": "dark-purple",
"index": 11,
"text": "256 Kilobytes"
},
"13": {
"color": "semi-dark-purple",
"index": 12,
"text": "512 Kilobytes"
},
"14": {
"color": "purple",
"index": 13,
"text": "1 Megabytes"
},
"15": {
"color": "light-purple",
"index": 14,
"text": "2 Megabytes"
},
"16": {
"color": "super-light-purple",
"index": 15,
"text": "4 Megabytes"
},
"17": {
"color": "dark-yellow",
"index": 16,
"text": "8 Megabytes"
},
"18": {
"color": "semi-dark-yellow",
"index": 17,
"text": "16 Megabytes"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_type (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "Raid 磁盘类型"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_status (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "Raid 状态"
},
{
"id": "noValue"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "未知"
},
"2": {
"color": "green",
"index": 1,
"text": "在线"
},
"3": {
"color": "red",
"index": 2,
"text": "失败"
},
"4": {
"color": "purple",
"index": 3,
"text": "降级"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "virtual_disk_size (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "Raid逻辑卷大小"
},
{
"id": "noValue"
},
{
"id": "unit",
"value": "mbytes"
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 14,
"x": 10,
"y": 15
},
"id": 36,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_virtual_disk_sn{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "Raid状态信息",
"transformations": [
{
"id": "groupBy",
"options": {
"fields": {
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"device_ip": {
"aggregations": [],
"operation": "groupby"
},
"index": {
"aggregations": [],
"operation": "groupby"
},
"virtual_disk_display": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_layout": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_size": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_status": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_stripe": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"virtual_disk_type": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器风扇状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "cooling_location_name (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "风扇位置名称"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "cooling_device_state (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "未知"
},
"2": {
"color": "green",
"index": 1,
"text": "已启用"
},
"4": {
"color": "red",
"index": 2,
"text": "未就绪"
},
"6": {
"color": "yellow",
"index": 3,
"text": "已启动未就绪"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "风扇启用状态"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #B (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "unit",
"value": "rotrpm"
},
{
"id": "displayName",
"value": "风扇转速"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #A (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "风扇状态"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 20
},
"id": 12,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_cooling_device_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_cooling_rpm{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "B"
}
],
"title": "风扇状态",
"transformations": [
{
"id": "merge",
"options": {}
},
{
"id": "groupBy",
"options": {
"fields": {
"Value": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"cooling_device_state": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"cooling_location_name": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"h3c_idrac_shortname": {
"aggregations": []
},
"index": {
"aggregations": [],
"operation": "groupby"
},
"snmp_h3c_cooling_rpm": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"index": true
},
"includeByName": {},
"indexByName": {
"Value #A (lastNotNull)": 4,
"Value #B (lastNotNull)": 2,
"cooling_device_state (lastNotNull)": 3,
"cooling_location_name (lastNotNull)": 1,
"index": 0
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器电源状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "power_fqdd"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "电源全名"
}
]
},
{
"matcher": {
"id": "byName",
"options": "power_location_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "电源名称"
}
]
},
{
"matcher": {
"id": "byName",
"options": "power_output_watts (lastNotNull)"
},
"properties": [
{
"id": "displayName",
"value": "额定输出功率"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "power_input_watts (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "额定输入功率"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #B (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width",
"value": 233
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "当前输入电压"
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "unit",
"value": "volt"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #C (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "当前输入电压"
},
{
"id": "unit",
"value": "volt"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "power_state (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "super-light-yellow",
"index": 0,
"text": "unknown"
},
"2": {
"color": "light-yellow",
"index": 1,
"text": "onLine"
},
"4": {
"color": "yellow",
"index": 2,
"text": "notReady"
},
"8": {
"color": "super-light-orange",
"index": 3,
"text": "fanFailure"
},
"10": {
"color": "light-orange",
"index": 4,
"text": "onlineAndFanFailure"
},
"16": {
"color": "orange",
"index": 5,
"text": "powerSupplyIsON"
},
"32": {
"color": "blue",
"index": 6,
"text": "powerSupplyIsOK"
},
"64": {
"color": "dark-green",
"index": 7,
"text": "acSwitchIsON"
},
"66": {
"color": "dark-blue",
"index": 8,
"text": "onlineandAcSwitchIsON"
},
"128": {
"color": "semi-dark-blue",
"index": 9,
"text": "acPowerIsON"
},
"130": {
"color": "semi-dark-green",
"index": 10,
"text": "onlineAndAcPowerIsON"
},
"210": {
"color": "semi-dark-red",
"index": 11,
"text": "onlineAndPredictiveFailure"
},
"242": {
"color": "green",
"index": 12,
"text": "acPowerAndSwitchAreOnPowerSupplyIsOnIsOkAndOnline"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "电源启动状态"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #A (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "电源实体状态"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 20
},
"id": 15,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_power_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_power_max_inputvlo{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_power_current_inputvlo{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "C"
}
],
"title": "电源设备状态",
"transformations": [
{
"id": "merge",
"options": {}
},
{
"id": "groupBy",
"options": {
"fields": {
"Value": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #C": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"index": {
"aggregations": [],
"operation": "groupby"
},
"power_fqdd": {
"aggregations": [],
"operation": "groupby"
},
"power_input_watts": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"power_location_name": {
"aggregations": [],
"operation": "groupby"
},
"power_output_watts": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"power_state": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"snmp_h3c_power_current_inputvlo": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"snmp_h3c_power_max_inputvlo": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"index": true
},
"includeByName": {},
"indexByName": {
"Value #A (lastNotNull)": 1,
"Value #B (lastNotNull)": 7,
"Value #C (lastNotNull)": 8,
"index": 0,
"power_fqdd": 2,
"power_input_watts (lastNotNull)": 6,
"power_location_name": 3,
"power_output_watts (lastNotNull)": 5,
"power_state (lastNotNull)": 4
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器PCI设备状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "pci_device_brand"
},
"properties": [
{
"id": "custom.width"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "PCI设备品牌"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_desc"
},
"properties": [
{
"id": "custom.width"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "green",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "PCI设备名称"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_fqdd"
},
"properties": [
{
"id": "custom.width"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "PCI设备全名"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_state"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "未知"
},
"2": {
"color": "green",
"index": 1,
"text": "已启用"
},
"4": {
"color": "red",
"index": 2,
"text": "未就绪"
},
"6": {
"color": "yellow",
"index": 3,
"text": "已启用未就绪"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "PCI设备启用状态"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "green",
"index": 0,
"text": "正常"
},
"1": {
"color": "red",
"index": 1,
"text": "异常"
},
"2": {
"color": "yellow",
"index": 2,
"text": "缺少"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "PCI设备状态"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 25
},
"id": 17,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"frameIndex": 1,
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_pci_device_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "PCI设备状态",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"ident": true,
"index": true,
"pci_device_cur_datalink": true,
"pci_device_desc": false,
"pci_device_max_datalink": true,
"pci_device_mode": true,
"pci_device_serialnum": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 1,
"Value": 11,
"__name__": 2,
"brand": 3,
"device_ip": 4,
"h3c_service_tag": 5,
"ident": 6,
"index": 0,
"pci_device_brand": 8,
"pci_device_desc": 7,
"region": 9,
"role": 10
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器温度传感器状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "temperature_probe_name (lastNotNull)"
},
"properties": [
{
"id": "custom.width"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "传感器名称"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #B (lastNotNull)"
},
"properties": [
{
"id": "custom.width"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "unit",
"value": "celsius"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"mode": "continuous-GrYlRd"
}
},
{
"id": "min",
"value": 0
},
{
"id": "max",
"value": 100
},
{
"id": "displayName",
"value": "当前温度"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #C (lastNotNull)"
},
"properties": [
{
"id": "custom.width"
},
{
"id": "custom.minWidth"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "unit",
"value": "celsius"
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "温度阈值"
}
]
},
{
"matcher": {
"id": "byName",
"options": "temperature_probe_state (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "未知"
},
"2": {
"color": "green",
"index": 1,
"text": "已启用"
},
"4": {
"color": "red",
"index": 2,
"text": "未就绪"
},
"6": {
"color": "yellow",
"index": 3,
"text": "已启用未就绪"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "探针启用状态"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #A (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "温度状态"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
"y": 28
},
"id": 16,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"frameIndex": 1,
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "当前温度"
}
]
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_temperature_probe_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_temperature_value{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"} > 0",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_temperature_threshold{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"} > 0",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "C"
}
],
"title": "温度传感器状态",
"transformations": [
{
"id": "merge",
"options": {}
},
{
"id": "groupBy",
"options": {
"fields": {
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #C": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"index": {
"aggregations": [],
"operation": "groupby"
},
"temperature_probe_name": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"temperature_probe_state": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"index": true
},
"includeByName": {},
"indexByName": {
"Value #A (lastNotNull)": 5,
"Value #B (lastNotNull)": 2,
"Value #C (lastNotNull)": 3,
"index": 0,
"temperature_probe_name (lastNotNull)": 1,
"temperature_probe_state (lastNotNull)": 4
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器固件状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "h3c_service_tag"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "服务标签"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "firmware_type_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "固件类型名称"
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "firmware_version_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "固件版本"
}
]
},
{
"matcher": {
"id": "byName",
"options": "firmware_state"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "其他"
},
"2": {
"color": "green",
"index": 1,
"text": "已启动"
},
"4": {
"color": "red",
"index": 2,
"text": "未就绪"
},
"6": {
"color": "yellow",
"index": 3,
"text": "已启用未就绪"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "固件启用状态"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "其他"
},
"2": {
"color": "yellow",
"index": 1,
"text": "未知"
},
"3": {
"color": "green",
"index": 2,
"text": "正常"
},
"4": {
"color": "super-light-red",
"index": 3,
"text": "非危急"
},
"5": {
"color": "red",
"index": 4,
"text": "危急"
},
"6": {
"color": "dark-red",
"index": 5,
"text": "不可恢复"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "固件状态"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 30
},
"id": 13,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_firmware_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "固件状态",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 1,
"Value": 13,
"__name__": 2,
"agent_hostname": 3,
"brand": 4,
"device_ip": 7,
"firmware_state": 10,
"firmware_type_name": 8,
"firmware_version_name": 9,
"h3c_idrac_shortname": 5,
"h3c_service_tag": 6,
"index": 0,
"region": 11,
"role": 12
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 38
},
"id": 11,
"panels": [],
"title": "内存信息",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器内存状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "orange",
"index": 0,
"text": "未知"
},
"1": {
"color": "yellow",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "super-light-red",
"index": 3,
"text": "低级"
},
"4": {
"color": "red",
"index": 4,
"text": "告警"
},
"5": {
"color": "dark-red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 39
},
"id": 19,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "value_and_name",
"wideLayout": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_mem_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\",mem_brand!=\"\"}",
"format": "time_series",
"instant": false,
"legendFormat": "{{mem_fqdd}}",
"range": true,
"refId": "A"
}
],
"title": "内存状态",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器内存信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "mem_state"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "内存在位状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "orange",
"index": 0,
"text": "未知"
},
"2": {
"color": "green",
"index": 1,
"text": "在位"
},
"4": {
"color": "red",
"index": 2,
"text": "不可读"
},
"6": {
"color": "yellow",
"index": 3,
"text": "在位不可读"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "内存健康状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "危急"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "mem_brand"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "内存品牌"
}
]
},
{
"matcher": {
"id": "byName",
"options": "mem_current_speed"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "suffix: MHz"
},
{
"id": "displayName",
"value": "内存当前频率"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "mem_speed"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "suffix: MHz"
},
{
"id": "displayName",
"value": "内存最大频率"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "mem_size"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "kbytes"
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "内存大小"
}
]
},
{
"matcher": {
"id": "byName",
"options": "mem_sn"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "内存SN"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "mem_type"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"index": 0,
"text": "Other"
},
"2": {
"index": 1,
"text": "Unknown"
},
"3": {
"index": 2,
"text": "DRAM"
},
"4": {
"index": 3,
"text": "EDRAM"
},
"5": {
"index": 4,
"text": "VRAM"
},
"6": {
"index": 5,
"text": "SRAM"
},
"7": {
"index": 6,
"text": "RAM"
},
"8": {
"index": 7,
"text": "ROM"
},
"9": {
"index": 8,
"text": "FLASH"
},
"10": {
"index": 9,
"text": "EEPROM"
},
"11": {
"index": 10,
"text": "FEPROM"
},
"12": {
"index": 11,
"text": "EPROM"
},
"13": {
"index": 12,
"text": "CDRAM"
},
"14": {
"index": 13,
"text": "3DRAM"
},
"15": {
"index": 14,
"text": "SDRAM"
},
"16": {
"index": 15,
"text": "SGRAM"
},
"17": {
"index": 16,
"text": "RDRAM"
},
"18": {
"index": 17,
"text": "DDR"
},
"19": {
"index": 18,
"text": "DDR2"
},
"20": {
"index": 19,
"text": "DDR2FBDIMM"
},
"24": {
"index": 20,
"text": "DDR3"
},
"25": {
"index": 21,
"text": "FBD2"
},
"26": {
"index": 22,
"text": "DDR4"
},
"27": {
"index": 23,
"text": "DDR5"
}
},
"type": "value"
}
]
},
{
"id": "displayName",
"value": "内存类型"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "mem_fqdd"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "super-light-red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "内存槽位"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 39
},
"id": 20,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_mem_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\",mem_brand!=\"\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "内存信息",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"ident": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 0,
"Value": 9,
"__name__": 1,
"agent_hostname": 2,
"brand": 3,
"device_ip": 6,
"h3c_idrac_shortname": 4,
"h3c_service_tag": 5,
"index": 7,
"mem_brand": 10,
"mem_current_speed": 11,
"mem_fqdd": 16,
"mem_size": 13,
"mem_sn": 14,
"mem_speed": 12,
"mem_state": 8,
"mem_type": 15,
"region": 17,
"role": 18
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 47
},
"id": 21,
"panels": [],
"title": "硬盘信息",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器硬盘状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"0": {
"color": "orange",
"index": 0,
"text": "位置"
},
"1": {
"color": "yellow",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "super-light-red",
"index": 3,
"text": "低级"
},
"4": {
"color": "red",
"index": 4,
"text": "告警"
},
"5": {
"color": "dark-red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 48
},
"id": 26,
"options": {
"colorMode": "background",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"textMode": "value_and_name",
"wideLayout": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_physical_disk_sub_state{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "time_series",
"instant": false,
"legendFormat": "{{physical_disk_name}}",
"range": true,
"refId": "A"
}
],
"title": "硬盘状态",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器硬盘状态信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "硬盘健康状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "硬盘槽位"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_oper_state"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "RAID当前状态"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_progress"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "RAID操作进度百分比"
},
{
"id": "noValue"
},
{
"id": "unit",
"value": "percent"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_remain_rate"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "percent"
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "SSD磨损百分比"
},
{
"id": "mappings",
"value": [
{
"options": {
"255": {
"color": "purple",
"index": 0,
"text": "无效"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_sec_status"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "硬盘加密状态"
},
{
"id": "noValue"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "green",
"index": 0,
"text": "支持"
},
"2": {
"color": "red",
"index": 1,
"text": "不支持"
},
"3": {
"color": "orange",
"index": 2,
"text": "已保护"
},
"4": {
"color": "yellow",
"index": 3,
"text": "已锁定"
},
"5": {
"color": "blue",
"index": 4,
"text": "外来的"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_smart_alert"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "预测故障警报"
},
{
"id": "noValue"
},
{
"id": "unit",
"value": "bool_yes_no"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_spare"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "RAID热备盘状态"
},
{
"id": "noValue"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "red",
"index": 0,
"text": "非备用"
},
"2": {
"color": "orange",
"index": 1,
"text": "专用热备"
},
"3": {
"color": "green",
"index": 2,
"text": "全局热备"
},
"4": {
"color": "yellow",
"index": 3,
"text": "不适用"
}
},
"type": "value"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 48
},
"id": 27,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_physical_disk_sub_state{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "硬盘状态信息",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"ident": true,
"index": true,
"physical_disk_brand": true,
"physical_disk_bus_type": true,
"physical_disk_capacity": true,
"physical_disk_productid": true,
"physical_disk_serialnum": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 0,
"Value": 8,
"__name__": 1,
"agent_hostname": 2,
"brand": 3,
"device_ip": 6,
"h3c_idrac_shortname": 4,
"h3c_service_tag": 5,
"index": 7,
"physical_disk_name": 11,
"physical_disk_oper_state": 14,
"physical_disk_progress": 15,
"physical_disk_remain_rate": 16,
"physical_disk_sec_status": 17,
"physical_disk_smart_alert": 12,
"physical_disk_spare": 13,
"region": 9,
"role": 10
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器硬盘信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "硬盘状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "硬盘槽位"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_capacity"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "硬盘大小"
},
{
"id": "noValue"
},
{
"id": "min",
"value": 1
},
{
"id": "max",
"value": 2147483647
},
{
"id": "unit",
"value": "decbytes"
},
{
"id": "color",
"value": {
"mode": "thresholds"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_brand"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "硬盘品牌"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_bus_type"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "硬盘类型"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "red",
"index": 0,
"text": "unknown"
},
"2": {
"color": "orange",
"index": 1,
"text": "1.8 英寸"
},
"3": {
"color": "yellow",
"index": 2,
"text": "2.5 英寸"
},
"4": {
"color": "green",
"index": 3,
"text": "3.5 英寸"
},
"5": {
"color": "blue",
"index": 4,
"text": "EDSFF"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_media_type"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "物理磁盘类型"
},
{
"id": "noValue"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "yellow",
"index": 0,
"text": "unknown"
},
"2": {
"color": "blue",
"index": 1,
"text": "HDD"
},
"3": {
"color": "purple",
"index": 2,
"text": "SSD"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_picap"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "T10支持"
},
{
"id": "noValue"
},
{
"id": "mappings",
"value": [
{
"options": {
"1": {
"color": "yellow",
"index": 0,
"text": "其他"
},
"2": {
"color": "blue",
"index": 1,
"text": "支持"
},
"3": {
"color": "purple",
"index": 2,
"text": "不支持"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_productid"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "磁盘产品ID"
},
{
"id": "noValue"
},
{
"id": "color",
"value": {
"fixedColor": "super-light-blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_proto_version"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "NVMe协议版本"
},
{
"id": "color",
"value": {
"fixedColor": "super-light-purple",
"mode": "fixed"
}
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_revision"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "super-light-green",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "磁盘固件版本"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "physical_disk_serialnum"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "noValue"
},
{
"id": "color",
"value": {
"fixedColor": "super-light-red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "硬盘序列号"
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 56
},
"id": 28,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_physical_disk_sub_state{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "硬盘信息",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value": false,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"ident": true,
"index": true,
"physical_disk_oper_state": true,
"physical_disk_remain_rate": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 0,
"Value": 8,
"__name__": 1,
"agent_hostname": 2,
"brand": 3,
"device_ip": 6,
"h3c_idrac_shortname": 4,
"h3c_service_tag": 5,
"index": 7,
"physical_disk_name": 11,
"physical_disk_oper_state": 14,
"physical_disk_progress": 15,
"physical_disk_remain_rate": 16,
"physical_disk_sec_status": 17,
"physical_disk_smart_alert": 12,
"physical_disk_spare": 13,
"region": 9,
"role": 10
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 63
},
"id": 23,
"panels": [],
"title": "网卡信息",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器网卡信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "网卡状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "light-blue",
"index": 0,
"text": "N/A"
},
"1": {
"color": "green",
"index": 1,
"text": "Up"
},
"2": {
"color": "yellow",
"index": 2,
"text": "Down"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "network_vendor_cur_speed"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"mode": "basic",
"type": "color-background"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "网卡连接速率"
}
]
},
{
"matcher": {
"id": "byName",
"options": "network_current_mac"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "当前Mac地址"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "network_vendor_speed"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "网卡速率"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "network_vendor_modul"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "网卡类型"
}
]
},
{
"matcher": {
"id": "byName",
"options": "network_vendor_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "red",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "网卡品牌"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 64
},
"id": 30,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_network_conn_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "网卡信息",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"ident": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 0,
"Value": 6,
"__name__": 1,
"brand": 2,
"device_ip": 4,
"h3c_service_tag": 3,
"ident": 9,
"index": 5,
"network_current_mac": 10,
"network_vendor_cur_speed": 12,
"network_vendor_modul": 13,
"network_vendor_name": 14,
"network_vendor_speed": 11,
"region": 7,
"role": 8
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 72
},
"id": 22,
"panels": [],
"title": "控制器信息",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器存储控制器信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "控制器自身状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "contr_cur_capacitor (firstNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "控制器任务状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "dark-red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "contr_name (firstNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text",
"wrapText": false
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "控制器显示名称"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "contr_cur_capacitor_p (firstNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "控制器任务进度"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "contr_cur_mode (firstNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "控制器当前模式"
}
]
}
]
},
"gridPos": {
"h": 4,
"w": 24,
"x": 0,
"y": 73
},
"id": 33,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_contr_comp_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "存储控制器状态",
"transformations": [
{
"id": "groupBy",
"options": {
"fields": {
"Value": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"contr_cur_capacitor": {
"aggregations": [
"firstNotNull"
],
"operation": "aggregate"
},
"contr_cur_capacitor_p": {
"aggregations": [
"firstNotNull"
],
"operation": "aggregate"
},
"contr_cur_mode": {
"aggregations": [
"firstNotNull"
],
"operation": "aggregate"
},
"contr_display_name": {
"aggregations": [
"lastNotNull"
]
},
"contr_driver_version": {
"aggregations": [
"lastNotNull"
]
},
"contr_fw_version": {
"aggregations": [
"lastNotNull"
]
},
"contr_name": {
"aggregations": [
"firstNotNull"
],
"operation": "aggregate"
},
"device_ip": {
"aggregations": [],
"operation": "groupby"
},
"index": {
"aggregations": [],
"operation": "groupby"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Value (lastNotNull)": 1,
"contr_cur_capacitor (firstNotNull)": 5,
"contr_cur_capacitor_p (firstNotNull)": 6,
"contr_cur_mode (firstNotNull)": 4,
"contr_name (firstNotNull)": 0,
"device_ip": 2,
"index": 3
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器存储控制器性能信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "contr_cache_size"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "控制器缓存大小"
},
{
"id": "noValue"
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value (lastNotNull)"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "控制器状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "purple",
"index": 0,
"text": "未知"
},
"1": {
"color": "blue",
"index": 1,
"text": "缺少"
},
"2": {
"color": "green",
"index": 2,
"text": "正常"
},
"3": {
"color": "yellow",
"index": 3,
"text": "低级"
},
"4": {
"color": "orange",
"index": 4,
"text": "告警"
},
"5": {
"color": "red",
"index": 5,
"text": "致命"
}
},
"type": "value"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "contr_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "控制器名称"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "contr_driver_version"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "displayName",
"value": "控制器驱动版本"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "contr_fw_version"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "auto"
},
{
"id": "custom.cellOptions",
"value": {
"type": "auto"
}
},
{
"id": "displayName",
"value": "控制器固件版本"
},
{
"id": "noValue"
}
]
}
]
},
"gridPos": {
"h": 4,
"w": 24,
"x": 0,
"y": 77
},
"id": 34,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_contr_comp_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "存储控制器性能信息",
"transformations": [
{
"id": "groupBy",
"options": {
"fields": {
"Value": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #A": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #B": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #C": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"Value #D": {
"aggregations": [
"lastNotNull"
],
"operation": "aggregate"
},
"contr_cache_size": {
"aggregations": [
"lastNotNull"
],
"operation": "groupby"
},
"contr_cur_capacitor": {
"aggregations": [],
"operation": "groupby"
},
"contr_display_name": {
"aggregations": [
"lastNotNull"
],
"operation": "groupby"
},
"contr_driver_version": {
"aggregations": [
"lastNotNull"
],
"operation": "groupby"
},
"contr_fw_version": {
"aggregations": [
"lastNotNull"
],
"operation": "groupby"
},
"contr_name": {
"aggregations": [
"lastNotNull"
],
"operation": "groupby"
},
"device_ip": {
"aggregations": [],
"operation": "groupby"
},
"h3c_service_tag": {
"aggregations": []
},
"index": {
"aggregations": [],
"operation": "groupby"
}
}
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value (lastNotNull)": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"contr_cur_capacitor": true,
"contr_display_name": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Value #A (lastNotNull)": 4,
"Value #B (lastNotNull)": 5,
"Value #C (lastNotNull)": 6,
"Value #D (lastNotNull)": 7,
"contr_display_name (lastNotNull)": 2,
"contr_name (lastNotNull)": 3,
"device_ip": 0,
"index": 1
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 81
},
"id": 24,
"panels": [],
"title": "FRU信息",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器FRU信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "fru_name"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "FRU名称"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "fru_brand"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "FRU品牌"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "fru_date"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "FRU出厂日期"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "fru_sn"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "FRU序列号"
}
]
},
{
"matcher": {
"id": "byName",
"options": "fru_fqdd"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "auto"
},
{
"id": "custom.cellOptions",
"value": {
"type": "auto"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "FRU型号"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 82
},
"id": 31,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_fru_id{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "FRU信息",
"transformations": [
{
"id": "groupBy",
"options": {}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"Value": true,
"__name__": true,
"brand": true,
"device_ip": true,
"h3c_service_tag": true,
"ident": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 1,
"Value": 14,
"__name__": 2,
"brand": 3,
"device_ip": 4,
"fru_brand": 5,
"fru_date": 6,
"fru_fqdd": 7,
"fru_name": 0,
"fru_sn": 8,
"h3c_service_tag": 9,
"ident": 10,
"index": 11,
"region": 12,
"role": 13
},
"renameByName": {}
}
}
],
"type": "table"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 90
},
"id": 25,
"panels": [],
"title": "PCI组件信息",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "H3C物理服务器PCI信息",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Value"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-background"
}
},
{
"id": "displayName",
"value": "PCI组件状态"
},
{
"id": "mappings",
"value": [
{
"options": {
"0": {
"color": "green",
"index": 0,
"text": "正常"
},
"1": {
"color": "dark-red",
"index": 1,
"text": "异常"
},
"2": {
"color": "red",
"index": 2,
"text": "缺少"
}
},
"type": "value"
}
]
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_serialnum"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "PCI组件序列号"
},
{
"id": "color",
"value": {
"fixedColor": "purple",
"mode": "fixed"
}
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_brand"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "blue",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "PCI组件品牌"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_cur_datalink"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "orange",
"mode": "fixed"
}
},
{
"id": "displayName",
"value": "PCI组件当前通道数"
},
{
"id": "noValue"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_desc"
},
"properties": [
{
"id": "custom.minWidth"
},
{
"id": "custom.width"
},
{
"id": "custom.align",
"value": "center"
},
{
"id": "custom.cellOptions",
"value": {
"type": "color-text"
}
},
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
},
{
"id": "noValue"
},
{
"id": "displayName",
"value": "PCI组件描述"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_max_datalink"
},
"properties": [
{
"id": "displayName",
"value": "PCI插槽最大通道数"
}
]
},
{
"matcher": {
"id": "byName",
"options": "pci_device_mode"
},
"properties": [
{
"id": "displayName",
"value": "PCI组件当前通道模式"
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 91
},
"id": 32,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "11.5.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_h3c_pci_device_status{region=~\"$region\", role=~\"$role\", brand=~\"$brand\", device_ip=\"$device_ip\"}",
"format": "table",
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "A"
}
],
"title": "PCI信息",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"__name__": true,
"agent_hostname": true,
"brand": true,
"device_ip": true,
"h3c_idrac_shortname": true,
"h3c_service_tag": true,
"ident": true,
"index": true,
"region": true,
"role": true
},
"includeByName": {},
"indexByName": {
"Time": 0,
"Value": 8,
"__name__": 1,
"agent_hostname": 2,
"brand": 3,
"device_ip": 6,
"h3c_idrac_shortname": 4,
"h3c_service_tag": 5,
"index": 7,
"pci_device_brand": 12,
"pci_device_desc": 14,
"pci_device_fqdd": 13,
"pci_device_state": 11,
"region": 9,
"role": 10
},
"renameByName": {}
}
}
],
"type": "table"
}
],
"preload": false,
"refresh": "",
"schemaVersion": 40,
"tags": [],
"templating": {
"list": [
{
"current": {
"text": "XY",
"value": "XY"
},
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"definition": "label_values(snmp_up,region)",
"description": "设备区域",
"includeAll": false,
"label": "区域",
"name": "region",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(snmp_up,region)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"sort": 1,
"type": "query"
},
{
"current": {
"text": "hdm",
"value": "hdm"
},
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"definition": "label_values(snmp_up{region=~\"$region\"},role)",
"description": "区分设备角色,属于交换机、防火墙、路由器、无线、还是远程管理卡",
"includeAll": false,
"label": "角色",
"name": "role",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(snmp_up{region=~\"$region\"},role)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "/hdm/",
"type": "query"
},
{
"current": {
"text": "H3C",
"value": "H3C"
},
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"definition": "label_values(snmp_up{role=~\"$role\", region=~\"$region\"},brand)",
"description": "获取品牌信息",
"includeAll": false,
"label": "品牌",
"name": "brand",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(snmp_up{role=~\"$role\", region=~\"$region\"},brand)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"sort": 1,
"type": "query"
},
{
"current": {
"text": "10.8.16.151",
"value": "10.8.16.151"
},
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"definition": "label_values(snmp_up{region=~\"$region\", role=~\"$role\", brand=~\"$brand\"},device_ip)",
"description": "列出物理服务器的IP信息",
"includeAll": false,
"label": "物理机IP",
"name": "device_ip",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(snmp_up{region=~\"$region\", role=~\"$role\", brand=~\"$brand\"},device_ip)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"sort": 3,
"type": "query"
},
{
"current": {
"text": "10",
"value": "10"
},
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"definition": "query_result(count(snmp_up{region=~\"$region\",role=~\"$role\",brand=~\"$brand\"}))",
"description": "面板中显示物理服务器总数",
"hide": 2,
"includeAll": false,
"label": "服务器总数",
"name": "total",
"options": [],
"query": {
"qryType": 3,
"query": "query_result(count(snmp_up{region=~\"$region\",role=~\"$role\",brand=~\"$brand\"}))",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "/{} (.*) .*/",
"type": "query"
},
{
"baseFilters": [],
"datasource": {
"type": "prometheus",
"uid": "victoriametrics-metrics-datasource"
},
"description": "根据标签筛选对应的对象",
"filters": [],
"label": "筛选",
"name": "Filters",
"type": "adhoc"
}
]
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "H3C物理服务器带外监控面板",
"uid": "fecf3g4h0nf28a",
"version": 6,
"weekStart": ""
}
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
Stars!
喜欢就支持一下吧