IPMI-DELL
Server端:
编译安装
在安装zabbix服务器的时候需要带参数---with-openipmi
修改配置
cat /etc/zabbix/zabbix_server.conf |grep IPMI
StartIPMIPollers=20
范围在0-1000选择,看你自己监控的ipmi主机的多少
导入监控模板
模板下载地址: https://share.zabbix.com/index.php?option=com_mtree&task=att_download&link_id=642&cf_id=39
添加监控主机,关联上本模板,并在IPMI页面
设置Authentication algorithm为Default, Privilege level为User, Username为root, Password为CNvWCYX98Yf^?Bd,保存即可
cannot connect to IPMI host: [16777411] Unknown error 16777411
Agent端
安装IPMItool软件包并开启IPMI服务
yum install -y OpenIPMI ipmitool
service ipmi start
配置IPMI地址:
ipmitool lan set 1 ipaddr 10.100.4.114
ipmitool lan set 1 netmask 255.255.255.0
ipmitool lan set 1 defgw ipaddr 10.100.4.1
ipmitool lan print 1
将本机的IPMI地址配置为10.100.4.114/24,网关为10.100.4.1
开启IPMI Over LAN
ipmitool lan set 1 access on
配置用户
本次的需求为监控服务器传感器信息,只需要USER级别用户即可.
ipmitool user set name 2 root
ipmitool user set password 2 CNvWCYX98Yf^?Bd
ipmitool channel setaccess 1 2 callin=on ipi=on link=on privilege=4
ipmitool user set name 15 bdyg_ipmi
ipmitool user set password 15 MrGVC8V[m8ci#Mi
ipmitool user enable 15
ipmitool user priv 15 2 1
ipmitool user list 1
将建立id为15,用户名为bdyg_ipmi,密码为MrGVC8V[m8ci#Mi,权限为User(对应2)
测试
登录Zabbix服务器,通过ipmitool远程访问Dell服务器传感器信息
#查看用户信息
ipmitool -H 10.100.4.111 -I lanplus -Uroot -PCNvWCYX98Yf^?Bd user list
#查看传感器信息
pmitool -H 10.100.4.111 -I lanplus -Uroot -PCNvWCYX98Yf^?Bd sensor list
ipmitool -H 10.100.4.111 -I lanplus -Uroot -PCNvWCYX98Yf^?Bd sensor get "Inlet Temp"
#查看机器电源状态
ipmitool -H 10.100.4.111 -I lanplus -Uroot -PCNvWCYX98Yf^?Bd chassis power status
#查看机器硬件信息
ipmitool -H 10.100.4.111 -I lanplus -Uroot -PCNvWCYX98Yf^?Bd fru
参考:
http://pengyao.org/zabbix-monitor-ipmi-1.html
https://my.oschina.net/davehe/blog/88801
http://blog.51cto.com/tanght/1116586
http://www.cnblogs.com/zhangxinglong/p/7424810.html
https://blog.csdn.net/satsuma_samurai/article/details/74940145
https://zhiliao.h3c.com/theme/details/20216