這裡是示範監控ProLiant DL360 Gen10,dell,ibm以此類推即可。
ipmi設定配置官網訊息
- 修改zabbix主機配置,開啟ipmi功能,和debug層級
[root@idczabbix85 ~]# vim /etc/zabbix/zabbix_server.conf StartIPMIPollers=3 DebugLevel=3 [root@idczabbix85 ~]# systemctl restart zabbix-server.service
- 安裝ipmitool
[root@idczabbix85 ~]# yum -y install OpenIPMI OpenIPMI-devel ipmitool freeipmi
- 獲取數據
[root@idczabbix85 ~]ipmitool -I lanplus -H 10.160.253.15 -U IPMIUSERNAME -P IPMIPASSWORD -L user sensor list UID | 0x0 | discrete | 0x0180| na | na | na | na | na | na SysHealth_Stat | 0x0 | discrete | 0x0180| na | na | na | na | na | na 01-Inlet Ambient | 20.000 | degrees C | ok | na | na | na | na | 42.000 | 47.000 02-CPU 1 | 40.000 | degrees C | ok | na | na | na | na | 70.000 | na 03-CPU 2 | 40.000 | degrees C | ok | na | na | na | na | 70.000 | na 04-P1 DIMM 1-6 | 31.000 | degrees C | ok | na | na | na | na | 90.000 | na
- 查詢詳細各項數據值
[root@idczabbix85 ~]# ipmitool -I lanplus -H 10.160.253.15 -U IPMIUSERNAME -P IPMIPASSWORD -L user sensor get "CPU Utilization" Locating sensor record... Sensor ID : CPU Utilization (0x23) Entity ID : 3.1 Sensor Type (Threshold) : Processor Sensor Reading : 0 (+/- 0) unspecified Status : ok Lower Non-Recoverable : na Lower Critical : na Lower Non-Critical : na Upper Non-Critical : na Upper Critical : na Upper Non-Recoverable : na Positive Hysteresis : Unspecified Negative Hysteresis : Unspecified Assertions Enabled : [root@idczabbix85 ~]# ipmitool -I lanplus -H 10.160.253.15 -U IPMIUSERNAME -P IPMIPASSWORD -L user sensor get "02-CPU 1" Locating sensor record... Sensor ID : 02-CPU 1 (0x2) Entity ID : 3.1 Sensor Type (Threshold) : Temperature Sensor Reading : 40 (+/- 0) degrees C Status : ok Lower Non-Recoverable : na Lower Critical : na Lower Non-Critical : na Upper Non-Critical : na Upper Critical : 70.000 Upper Non-Recoverable : na Positive Hysteresis : Unspecified Negative Hysteresis : Unspecified Assertions Enabled : ucr+
-
建立主機,套用模板
-
或者自建item
以02-CPU 1為例,監控溫度
[root@idczabbix85 ~]# ipmitool -I lanplus -H 10.160.253.15 -U IPMIUSERNAME -P IPMIPASSWORD -L user sensor get "02-CPU 1" Locating sensor record... Sensor ID : 02-CPU 1 (0x2) Entity ID : 3.1 Sensor Type (Threshold) : Temperature Sensor Reading : 40 (+/- 0) degrees C Status : ok Lower Non-Recoverable : na Lower Critical : na Lower Non-Critical : na Upper Non-Critical : na Upper Critical : 70.000 Upper Non-Recoverable : na Positive Hysteresis : Unspecified Negative Hysteresis : Unspecified Assertions Enabled : ucr+
7. grafana建立自建監控dashborad



