栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Zabbix5.0 IPMI監控主機硬體(IBM,Dell,HP)

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Zabbix5.0 IPMI監控主機硬體(IBM,Dell,HP)

這裡是示範監控ProLiant DL360 Gen10,dell,ibm以此類推即可。

ipmi設定配置官網訊息

  1. 修改zabbix主機配置,開啟ipmi功能,和debug層級
[root@idczabbix85 ~]# vim /etc/zabbix/zabbix_server.conf

StartIPMIPollers=3

DebugLevel=3

[root@idczabbix85 ~]# systemctl restart zabbix-server.service
  1. 安裝ipmitool
[root@idczabbix85 ~]# yum -y install OpenIPMI OpenIPMI-devel ipmitool freeipmi
  1. 獲取數據
[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

  1. 查詢詳細各項數據值
[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+
  1. 建立主機,套用模板



  2. 或者自建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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/321391.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号