Dell OpenManage Server Administrator
(OMSA)是一款全面的一對一系統管理解決方案。OMSA可分爲兩種:
參考:
http://zh.community.dell.com/techcenter/systems-management/w/wiki/561.omsalinux
執行下面 下麪命令來設定Dell OpenManage的yum repository
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
通過Dell OpenManage的yum repository安裝OMSA
yum -y install OpenIPMI
#
yum install srvadmin-all -y
安裝完成對相關命令做軟鏈接或者設定srvadmin的環境變數
ln -s /opt/dell/srvadmin/sbin/omreport /usr/bin/omreport
ln -s /opt/dell/srvadmin/sbin/omconfig /usr/bin/omconfig
# or
cp /opt/dell/srvadmin/sbin/{omreport,omconfig} /usr/local/bin/
啓動OMSA
/etc/init.d/dataeng start
加入到開機自啓動
chkconfig dataeng on
#命令可以檢視當前系統中安裝的軟體和硬體元件的綜合摘要。
omreport system summary
#CMOS電池狀態
omreport chassis batteries
#風扇狀態
omreport chassis fans
#記憶體狀態
omreport chassis memory
#網絡卡狀態
omreport chassis nics
#CPU狀態
omreport chassis processors
#溫度狀態
omreport chassis temps
#硬碟狀態
omreport storage pdisk controller=0
#電源狀態
omreport chassis pwrsupplies
#raid 狀態
omreport storage vdisk controller=0
建立userparameter_hardware.conf
# 狀態1表示正常,狀態0表示異常
UserParameter=hardware_battery,omreport chassis batteries | awk '/^Status/{if($NF=="Ok") {print 1} else {print 0}}'
UserParameter=hardware_fan_health,awk -vhardware_fan_number=`omreport chassis fans | grep -c "^Index"` -vhardware_fan=`omreport chassis fans | awk '/^Status/{if($NF=="Ok") count+=1}END{print count}'` 'BEGIN{if(hardware_fan_number==hardware_fan) {print 1} else {print 0}}'
UserParameter=hardware_memory_health,awk -vhardware_memory=`omreport chassis memory | awk '/^Health/{print $NF}'` 'BEGIN{if(hardware_memory=="Ok") {print 1} else {print 0}}'
UserParameter=hardware_nic_health,awk -vhardware_nic_number=`omreport chassis nics | grep -c "Interface Name"` -vhardware_nic=`omreport chassis nics | awk '/^Connection Status/{print $NF}'| wc -l` 'BEGIN{if(hardware_nic_number==hardware_nic) {print 1} else {print 0}}'
UserParameter=hardware_cpu,omreport chassis processors|awk '/^Health/{if($NF=="Ok") {print 1} else {print 0}}'
UserParameter=hardware_power_health,awk -vhardware_power_number=`omreport chassis pwrsupplies | grep -c "Index"` -vhardware_power=`omreport chassis pwrsupplies | awk '/^Status/{if($NF=="Ok") count+=1}END{print count}'` 'BEGIN{if(hardware_power_number==hardware_power) {print 1} else {print 0}}'
UserParameter=hardware_temp,omreport chassis temps | awk '/^Status/{if($NF=="Ok") {print 1} else {print 0}}' | head -n 1
UserParameter=hardware_physics_health,awk -vhardware_physics_disk_number=`omreport storage pdisk controller=0 | grep -c "^ID"` -vhardware_physics_disk=`omreport storage pdisk controller=0 | awk '/^Status/{if($NF=="Ok") count+=1}END{print count}'` 'BEGIN{if(hardware_physics_disk_number==hardware_physics_disk) {print 1} else {print 0}}'
UserParameter=hardware_virtual_health,awk -vhardware_virtual_disk_number=`omreport storage vdisk controller=0 | grep -c "^ID"` -vhardware_virtual_disk=`omreport storage vdisk controller=0 | awk '/^Status/{if($NF=="Ok") count+=1}END{print count}'` 'BEGIN{if(hardware_virtual_disk_number==hardware_virtual_disk) {print 1} else {print 0}}'
重新啓動zabbix-agent,並檢測監控狀態
/etc/init.d/zabbix-agent restart
[root@zabbix ~]# zabbix_get -s 127.0.0.1 -p 10050 -k hardware_temp
從上面可以看出通過OMSA結合Zabbix對DEll伺服器硬體狀態進行監控已經完成。
http://zh.community.dell.com/techcenter/systems-management/w/wiki/555.openmanage-server-administrator-omsa
http://zh.community.dell.com/techcenter/systems-management/w/wiki/561.omsalinux
參考鏈接 :
Zabbix監控Dell伺服器硬體狀態 : http://www.voidcn.com/article/p-uwssrixa-qr.html
zabbix使用Omsa來監控Dell伺服器的硬體資訊http://www.voidcn.com/article/p-pbxpcmej-tr.html
http://www.voidcn.com/article/p-ceramiuh-on.html