一、准备
1.iDRAC开启SNMP服务
2. 确保开启snmp 和端口(116)
zabbix 服务端通过snmp验证
snmpget -v 2c -c xkeshi ip .1.3.6.1.4.1.674.10892.2.1.1.2.0 SNMPv2-SMI::enterprises.674.10892.2.1.1.2.0 = STRING: "iDRAC8"
二、zabbix web配置
1、创建值映射
zabbix web界面 —> 管理 —> 一般 —> 值映射
将根据下列名称进行值映射
DellDracDiskState
1 -> Unknown 2 -> Ready 3 -> Online 4 -> Foreign 5 -> Offline 6 -> Blocked 7 -> Failed 8 -> Non-RAID 9 -> Removed Dell iDRAC Network Device Connection Status 1 -> Connected 2 -> Disconnected Dell Open Manage System Status 1 -> Other 2 -> Unknown 3 -> OK 4 -> NonCritical 5 -> Critical 6 -> NonRecoverable DellPowerState 1 -> Other 2 -> Unknown 3 -> Off 4 -> On Dell PSU State Settings 1 -> Unknown 2 -> Online (state disabled) 4 -> not Ready 8 -> Fan Failure 10 -> Online and Fan Failure 16 -> On 242 -> Online and OK DellRaidLevel 1 -> Unknown 2 -> RAID-0 3 -> RAID-1 4 -> RAID-5 5 -> RAID-6 6 -> RAID-10 7 -> RAID-50 8 -> RAID-60 9 -> Concatenated RAID 1 10 -> Concatenated RAID 5 DellRaidVolumeState 1 -> Unknown 2 -> Online 3 -> Failed 4 -> Degraded Dell_PSU_SensorState 1 -> Presence Detected 2 -> PS Failure 4 -> Predictuve Failure 8 -> PS AC lost 16 -> AC lost or out of range 32 -> AC out of range but still present
2、配置全局变量{$SNMP_COMMUNITY_IDRAC}
zabbix web界面 —> 管理 —> 一般 —> 宏
3、导入模板
模板下载地址:https://github.com/endersonmaia/zabbix-templates/tree/master/dell/idrac
zabbix web界面 —> 配置 —> 模板 —> 导入
Template_Dell_iDRAC_SNMPv2.zbx.xml
4、创建主机
zabbix web界面 —> 配置 —> 主机 —> 创建主机
输入主机地址及SNMP地址和端口,保存
5、利用grafana进行可视化配置
至此,所有操作步骤已经完成,你可以定义不同的图形将所有的监控项进行整合,