zabbix公司專屬應用程式:通過SNMP和iDRAC監控DELL伺服器硬體

來源:互聯網
上載者:User

標籤:snmp   dell   zabbix   idrac   

    監控DELL伺服器硬體一般有兩種途徑:1、作業系統上安裝OMSA,編寫指令碼調用omreport命令進行監控;2、使用iDRAC,可以不用在作業系統上安裝OMSA,只需要在iDRAC上開啟SNMP,zabbix通過SNMP進行監控。對於不支援OMSA的作業系統和要求不能安裝額外軟體的情況下,推薦使用SNMP監控,配置簡單方便。

一、iDRAC開啟SNMP服務

    進入iDRAC的WEB介面,開啟“網路”->“服務”->“SNMP代理”。

650) this.width=650;" src="http://s5.51cto.com/wyfs02/M02/7D/37/wKiom1bibZKjCpKEAADo0dCO070480.png" title="iDrac SNMP2.png" alt="wKiom1bibZKjCpKEAADo0dCO070480.png" />

    啟用SNMP並設定團體名(community),不推薦使用預設的public。建議所有伺服器設定統一的團體名。

    然後到zabbix server伺服器上測試一下是否能get到資料:

snmpget -v 2c -c <Community> <iDRAC IP> .1.3.6.1.4.1.674.10892.2.1.1.2.0

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M00/7D/36/wKioL1bigmOxt6u7AAAR7VEmcIU647.png" title="snmp_get.png" alt="wKioL1bigmOxt6u7AAAR7VEmcIU647.png" />

二、配置Zabbix

    1、建立Value Mapping

    在zabbix的web上建立如下Value Mapping(zabbix3版本不需要手動建立,此步跳過):

DellDracDiskState1  Unknown2  Ready3  Online4  Foreign5  Offline6  Blocked7  Failed8  Non-RAID9  RemovedDell iDRAC Network Device Connection Status1  Up2  Down3  driverBad4  driverDisabled10  hardwareInitalizing11  hardwareResetting12  hardwareClosing13  hardwareNotReadyDell Open Manage System Status1  Other2  Unknown3  OK4  NonCritical5  Critical6  NonRecoverableDellPowerState1  Other2  Unknown3  Off4  OnDell PSU State Settings1  Unknown2  Online (state disabled)4  not Ready8  Fan Failure10  Online and Fan Failure16  On242  Online and OKDellRaidLevel1  Unknown2  RAID-03  RAID-14  RAID-55  RAID-66  RAID-107  RAID-508  RAID-609  Concatenated RAID 110  Concatenated RAID 5DellRaidVolumeState1  Unknown2  Online3  Failed4  DegradedDell_PSU_SensorState1  Presence Detected2  PS Failure4  Predictuve Failure8  PS AC lost16  AC lost or out of range32  AC out of range but still present64  Configuration Error

    2、匯入模板

    選擇Configuration->Templates->Import,匯入“Template Dell iDrac SNMPV2”模板。

    模板見本文附件,“Template Dell iDrac SNMPV2 zbx2.2.xml”支援zabbix2.2版本,“Template Dell iDrac SNMPV2 zbx3.xml”支援zabbix3版本。

    模板支援以下監控類別:

  • Disks/Storage(磁碟)

  • Fans(風扇)

  • Memory(記憶體)

  • Network Cards(網卡)

  • Power(電源)

  • Processor(CPU)

  • System Info

  • Temperatures(溫度)

  • Voltages(電壓)

    模板是從github上下載的,我修改了部分錯誤並做了最佳化。

    3、配置全域變數{$SNMP_COMMUNITY_IDRAC}

    選擇Administration->General->Macros,建立變數“{$SNMP_COMMUNITY_IDRAC}”,Value處填寫iDRAC的WEB上配置的SNMP團體名(Community),如:

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M02/7D/36/wKioL1bifJyQ9B1MAACBHd0d7ls776.png" title="macros.png" alt="wKioL1bifJyQ9B1MAACBHd0d7ls776.png" />

 4、建立主機

    進入主機配置介面,記得填寫“SNMP interfaces”為iDRAC的管理地址,連結“Template Dell iDrac SNMPV2”模板。

    註:模板裡部分監控項的監控間隔(Update interval)是86400秒,要等待大約一天的時間才會監控到首筆資料。

    至此,全部配置結束了~




本文出自 “啟程的Linux部落格” 部落格,請務必保留此出處http://qicheng0211.blog.51cto.com/3958621/1749986

zabbix公司專屬應用程式:通過SNMP和iDRAC監控DELL伺服器硬體

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.