Zabbix monitoring Dell Server hardware Information

Source: Internet
Author: User

Description: All servers in the company are Dell servers. Why do we do this monitoring? It is because the disk of a DB database on the line is damaged. Result of our operation and maintenance group (only I one, of course, I am personally responsible for, think about or the lack of their own technology) Not the first time to find out. So the network search Zabbix to monitor the Dell server.


1. Monitoring tools are monitored using Dell's own OMSA tools, download and install the Omsa tool, and install

Wget-q-o-http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | Bash Yum install srvadmin-all-y ln-s/opt/dell/srvadmin/sbin/omreport/usr/bin/omreport ln-s/opt/dell/srvadmin/sbin/o Mconfig/usr/bin/omconfig echo "/usr/bin/omconfig system webserver Action=stop" >>/opt/dell/srvadmin/sbin/ srvadmin-services.sh


2. Start

/opt/dell/srvadmin/sbin/srvadmin-services.sh start


3. Boot up

echo "/opt/dell/srvadmin/sbin/srvadmin-services.sh start" >>/etc/rc.local





4.zabbix Client Configuration

VI zabbix_agentd.conf


Userparameter=cpu_status,awk -v cpu_stats= ' Omreport   chassis  processors  |  awk  '/^health/ {print  $NF} '   ' Begin{if (cpu_stats== "OK") {print 1} Else{print 0}} ' userparameter=memory_stats,awk -v memory_stats= ' omreport    chassis  memory | awk  '/health/ {print  $NF} '   ' Begin{if (memory_stats== "OK")  {print 1} else {print 0}} ' Userparameter=pdisk_status,awk -v pdisk_ Total_num= ' omreport storage pdisk controller=0 | grep  -c  "^ID"   -v pdisk_ok_num= ' omreport storage pdisk controller=0 | awk  '/^Status/  {if ($NF  ==  "OK")  count=count+1} End{print count} '   ' Begin{if (pdisk_total_num == pdisk_ok_num)  {print 1}  Else {print 0}} ' userparameter=fans_status,awk -v fan_total_num= ' Omreport   chassis  fans | grep  -c  "^Index"  -v   fan_ok_num= ' omreport   chassis  fans  | awk  '/Status/ {if ($ nf ==  "OK")  count=count+1}end{print count} '    ' Begin{if (fan_total_num ==  fan_ok_num)  {print 1}else {print 0}} '  userparameter=nics_stats,awk -v  nic_total_num= ' omreport   chassis   nics    |  head -n  16  | grep -c  "^index" '  -v nic_ok_num= ' Omreport    chassis   nics    | head -n  16  | awk  '/connection status/ {if ($NF  ==  "Connected")  count=count+1}end{print  count} '  begin ' {if (nic_total_num == nic_ok_num) {print 1}else{print 0}} ' Userparameter=cmos_stats,omreport chassis batteries | awk  '/^health/{if ($NF  ==  "OK") {print 1}else { Print 0}} ' userparameter=raid_stats,awk -v  vdisk_total_num= ' omreport storage  vdisk controller=0  | grep  -c  "^id" '   -v  vdisk_ok_num = ' omreport storage vdisk controller=0  | awk  '/^Status/ {if ($NF  = =  "OK")  {print 1}else{print 0} '    ' Begin{if (vdisk_total_num == vdisk_ ok_num)  {print 1} else {print 0}} ' Userparameter=power_stats,awk -v power_ Total_num= ' omreport chassis pwrsupplies | grep  -c   "Index" '  -v  power_ok_num= ' omreport   chassis pwrsupplies | awk  '/^Status/ { if ($NF  ==  "OK")  count=count+1}end{print count} '    ' Begin{if (power_total_num  == power_ok_num) {print 1}else{print 0}} ' userparameter=temperature_status,awk -v temperature_total_num= ' omreport chassis temps | grep  -c  "^index" '  -v temperature_ok_num = ' omreport chassis   temps | awk  '/^status/{if ($NF  ==  "OK")   Count=count+1}end{print count} '   ' Begin{if (temperature_total_num == temperature_ok_num)  {print 1}else{print 0}} '



5. Restart the Zabbix client

Kill ' Ps-ef|grep zabbix|grep-v Grep|awk ' {print $} '/usr/local/zabbix/sbin/zabbix_agentd-c/usr/local/zabbix/etc/za Bbix_agentd.conf




6. Manually create templates (monitoring items, triggers, images), or download templates, see attachments


7. The monitoring chart is as follows:

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M00/77/F1/wKioL1ZyD8WAwvPTAAsXo0zJqgs412.jpg "title=" Zabbix _hardware.jpg "alt=" Wkiol1zyd8wawvptaasxo0zjqgs412.jpg "/>




This article from the "Do not ask for the best, only better" blog, please be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1725472

Zabbix monitoring Dell Server hardware Information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.