(Nagios)-check_openmanage[Dell]

來源:互聯網
上載者:User

標籤:isa   dcs   span   伺服器端   rpm   sha   local   密碼   x64   

 Nagios->check_openmanage[Dell R7*]2014年11月13日下午 07:44需求介紹:透過Nagios監控Dell R7系列伺服器硬體狀態環境資訊: Nagios監控主機:xxx.xxx.xxx.xxxNagios使用版本:3.2.3NagioSQL: 3.2.0Dell R710:xxx.xxx.xxx.xxx 監控邏輯:  1.Nagios通過外掛程式check_nrpe 調用 check_openmange接收硬體資訊。   2.伺服器端SNMP服務通過Openmanage軟體擷取硬體狀態。   Nagios:需安裝check_openmange外掛程式  Dell R7:需安裝SNMP服務、Openmanage軟體、Naiogs代理(只監控硬體可不安裝)  

  外掛程式:http://folk.uio.no/trondham/software/check_openmanage.html

    

  

Nagios監控主機安裝外掛程式: [[email protected] ~]# tar zxvf check_openmanage-3.7.12.tar.gz[[email protected] check_openmanage-3.7.12]# ./install.sh/usr/local/nagios/libexec/usr/local/nagios[[email protected] ~]# rmp -ivh perl-Net-SNMP-5.2.0-1.el5.1.noarch.rpm[[email protected] ~]# rpm -ivh perl-Config-Tiny-2.10-1.el5.noarch.rpmsnmp協議訪問snmpwalk -Os -c public -v 1 192.168.x.x 被監控端安裝SNMP和Dell Openamge[Windows] 被監控端安裝SNMP  SNMP服務需開啟硬體資訊的推送  

  SNMP服務設定公用名稱和Nagios監控主機地址,提高安全性

  

安裝Dell Openmanage(預設連接埠1311)

  OM-DRAC-Dell-Web-WINX64-8.4.0-2193_A00安裝包(dell官網自行下載)  

  解壓後安裝Openmanage

  

  

  安裝完成後測試訪問,輸入目前使用者名稱或密碼(IE支援度不高)  可以訪問地址: https://伺服器IP地址:1311/  

 

被監控端安裝Nagios代理  NSCP-0.4.1.73-x64  

  

更新Nagios代理軟體配置  C:\Program Files\NSClient(安裝路徑)  

  

  在nsclinet.ini尾部增加如下資訊:  ‘;‘號表示注釋不生效    
[/settings/NRPE/server] ; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.allow arguments = true ; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&><‘"\[]{}) characters in arguments.allow nasty characters = trueallow_nasty_meta_chars = 1 ; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges. parent for this key is found under: /settings/default this is marked as advanced in favour of the parent.;allowed hosts = 192.168.xx.xx/24(可以限制訪問網段) ; PORT NUMBER - Port to use for NRPE.port = 5666  [/settings/NRPE/server]allow arguments=true [/settings/external scripts]allow arguments=true ;(這裡也可以自己設定指令碼 如vbs)[/settings/external scripts/scripts]timevbs = cscript.exe //T:30 //NoLogo scripts\\lib\\check_time.vbs $ARG1$ $ARG2$ $ARG3$

  重啟nagios代理服務

  

  重啟服務

  

監控主機測試   [[email protected] libexec]# ./check_openmanage -H 被監控主機IP  OK - System: ‘PowerEdge R710 II‘, SN: ‘HxxD3X‘, 24 GB ram (6 dimms), 2 logical drives, 14 physical drives  檢查Dell Server中的硬體日誌Voltage Probes  (電壓)  [[email protected] libexec]# ./check_openmanage -H 被監控主機IP --only voltage  VOLTAGE OK - 22 voltage probes checked   Windows 系統中需要安裝openmanage &SNMP兩程式,Server2003中添加SNMP(控制中心---添加或刪除程式---添加或刪除---Management and monitoring tools--Details----Simple Network Management Protocol) Naiogs端使用check_nrpe方式監控  [[email protected] libexec]# ./check_nrpe -H 1被監控主機IP  -p 5666 -c check_openmanage -t 60  OK - System: ‘PowerEdge R720‘, SN: ‘6Dxx2‘, 16 GB ram (2 dimms), 2 logical drives, 6 physical drives  Nagios監控Dell Server硬體是忽略Server韌體版本  [[email protected] libexec]# ./check_openmanage  -H 被監控主機IP  Controller 0 [PERC H700 Integrated]: Firmware ‘12.10.1-0001‘ is out of date  Controller 1 [PERC H800 Adapter]: Firmware ‘12.10.1-0001‘ is out of date  [[email protected] libexec]# ./check_openmanage  -H 被監控主機IP -b ctrl_fw=all  -b ctrl_driver=all -b ctrl_stdr=all  OK - System: ‘PowerEdge R710 II‘, SN: ‘8Dxxx3X‘, 24 GB ram (6 dimms), 2 logical drives, 14 physical drives  Esx客服端安裝SNMP&OMSA組件 
  1. Make sure ESXi has patch 1 installed (at least build 175625)…if not, update it.
  1. Make sure the root user has a password.
  1. Download and install vSphere remote CLI from VMware’s website.
    • http://downloads.vmware.com/d/details/vcli40/ZHcqYmRkJSpidGR3
  1. Download oem-dell-openmanage-esxi_6.1-0000.zip from the Dell Support web site and copy it to C:\Program Files\VMware\VMware vSphere CLI\bin on the system you installed the vSphere remote CLI.
    • http://ftp.us.dell.com/sysman/oem-dell-openmanage-esxi_6.1-0000.zip
  1. On the system where you installed the vSphere remote CLI, open a command prompt and change directory to C:\Program Files\VMware\VMware vSphere CLI\bin
  2. Type the following command:
    • vihostupdate.pl --server <esxhost> --username root -i -b c:\oem-dell-openmanage-esxi_6.1-0000.zip
  1. Enter the root password at the prompt and after a few minutes you should see "Host updated successfully".
  2. Reboot the server.
  1. From the vSphere client:
    1. Choose the Configuration tab on the host
    1. Click Advanced Settings under the Software section
    1. In the dialog that appears click "UserVars" on the left
    1. Change the value of CIMOEMProvidersEnabled to 1
    1. Click OK.
  1. From the DCUI: Restart Management Agents

 

RedHat5.9客服端安裝SNMP&OMSA組件   所需安裝包Dell官網可自行下載    [[email protected] ~]# tar zxvf OM-SrvAdmin-Dell-Web-LX-7.3.0-350_A00.RHEL5.x86_64.tar.gz  [[email protected] ~]# cd linux/RPMS/supportRPMS/opensource-components/RHEL5/  [[email protected] RHEL5]# cd x86_64/  [[email protected] x86_64]# ls  libcmpiCppImpl0-2.0.0Dell-4.1.6.el5.x86_64.rpm  libwsman1-2.2.3.9-4.1.7.el5.x86_64.rpm  openwsman-client-2.2.3.9-4.1.7.el5.x86_64.rpm  openwsman-server-2.2.3.9-4.1.7.el5.x86_64.rpm  sblim-sfcb-1.3.7-4.13.1.el5.x86_64.rpm  sblim-sfcc-2.2.1-4.7.1.el5.x86_64.rpm   [[email protected] x86_64]# rpm -ivh libcmpiCppImpl0-2.0.0Dell-4.1.6.el5.x86_64.rpm  [[email protected] x86_64]# rpm -ivh libwsman1-2.2.3.9-4.1.7.el5.x86_64.rpm  openwsman-client-2.2.3.9-4.1.7.el5.x86_64.rpm   [[email protected] x86_64]# rpm -ivh sblim-sfcb-1.3.7-4.13.1.el5.x86_64.rpm  [[email protected] x86_64]# rpm -ivh sblim-sfcc-2.2.1-4.7.1.el5.x86_64.rpm  [[email protected] x86_64]# rpm -ivh openwsman-server-2.2.3.9-4.1.7.el5.x86_64.rpm   [[email protected] supportscripts]# pwd  /root/linux/supportscripts  [[email protected] supportscripts]# ./srvadmin-install.sh -x  [[email protected] ~]# vim /etc/snmp/snmpd.conf  

  

  [[email protected] supportscripts]# ./srvadmin-services.sh start  Starting Systems Management Device Drivers:  Starting dell_rbu:                                         [  OK  ]  Starting ipmi driver:                                      [  OK  ]  Starting Systems Management Data Engine:  Starting dsm_sa_datamgrd:                                  [  OK  ]  Starting dsm_sa_eventmgrd:                                 [  OK  ]  Starting dsm_sa_snmpd:                                     [  OK  ]  Starting DSM SA Shared Services:                           [  OK  ]   Starting DSM SA Connection Service:                        [  OK  ]  [[email protected] libexec]# ./check_openmanage  -H 被監控服務ip  OK - System: ‘PowerEdge R720xd‘, SN: ‘FTLxxxxx2‘, 8 GB ram (2 dimms), 14 logical drives, 12 physical drives  可以通過web方式訪問Openmanage管理頁面  在IE中輸入https://伺服器IP:1311,用作業系統的使用者名稱和密碼登陸即可正常訪問管理。  https://伺服器ip地址:1311/OMSALogin?msgStatus=null     指定IP地址訪問SNMP  [[email protected] supportscripts]# vim /etc/snmp/snmpd.conf  #       sec.name  source          community  com2sec notConfigUser  [監控主機]      public   [[email protected] supportscripts]# /etc/init.d/snmpd restart  Stopping snmpd:                                            [  OK  ]  Starting snmpd:                                            [  OK  ]   

 

 Esx系統安裝agent  esxcli software vib install –d  /<離線安裝包.zip>(一定要絕對路徑)  

 

  ~ # esxcli system snmp set -e true

  ~ # esxcli system snmp set -t 伺服器IP地址@162/public  ~ # esxcli system snmp get  

  

  常用SNMP命令:  esxcli system snmp -help #協助命令  esxcli system snmp get #擷取配置  esxcli system snmp set <參數> <參數值>  esxcli system snmp set -r #重設   esx測試 esxcli software vib list |grep hp  /etc # esxcli software vib list |grep hp  char-hpcru                     5.0.6.6-1OEM.500.0.0.434156           Hewlett-Packard  PartnerSupported  2014-11-19  char-hpilo                     500.9.0.2.3-1OEM.500.0.0.434156       Hewlett-Packard  PartnerSupported  2014-11-19  hp-ams                         500.10.0.1-07.434156                  Hewlett-Packard  PartnerSupported  2014-11-19  hp-esxi-fc-enablement          500.2.1.8-434156                      Hewlett-Packard  PartnerSupported  2014-11-19  hp-smx-limited                 500.03.06.00.21-434156                Hewlett-Packard  VMwareAccepted    2014-11-19  ata-pata-hpt3x2n               0.3.4-3vmw.510.0.0.799733             VMware           VMwareCertified   2013-09-18  scsi-hpsa                      5.0.0-21vmw.510.0.0.799733            VMware           VMwareCertified   2013-09-18 異常參考  ERROR: (SNMP) OpenManage is not installed or is not working correctly  Windows  導致異常:先安裝OMSA再安裝SNMP  解決方案:卸載OMSA重新安裝一次,要先安裝SNMP再安裝OMSA   Linux  sed -r -i ‘s/^(SNMP)=disable$/\1=enable/‘ /opt/dell/srvadmin/etc/srvadmin-omilcore/install.ini   rm /opt/dell/srvadmin/var/lib/srvadmin-deng/dcsnmp.off   srvadmin-services.sh restart   service snmpd restart     http://en.community.dell.com/techcenter/systems-management/f/4494/t/19597153

(Nagios)-check_openmanage[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.