Zabbix uses Omsa to monitor the hardware information of the Dell Server

Source: Internet
Author: User

Zabbix uses Omsa to monitor the hardware information of the Dell Server

I. Client

A. install it in RedHat Linux or CentOS

1. Install the dell yum Source

Wget-O-http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

2. Install omsa

Yum install srvadmin-all

Ps: when some package download times out, run the preceding command again until all download and installation are complete.

3. soft connection

1. ln-s/opt/dell/srvadmin/sbin/omreport/usr/bin/omreport

2. ln-s/opt/dell/srvadmin/sbin/omconfig/usr/bin/omconfig

4. Disable the web mode (only cli can be run)

Echo "/usr/bin/omconfig systemwebserver action = stop">/opt/dell/srvadmin/sbin/srvadmin-services.sh

5. Start omsa

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

Ps: if the following error is reported during startup, install the openipmi service yum-y install OpenIPMI.

Error message:

[Root @ xxxxx/] #/opt/dell/srvadmin/sbin/srvadmin-services.sh start

StartingSystems Management Device Drivers:

Startingdell_rbu: Already started [OK]

Startingipmi driver: [FAILED]

StartingSystems Management Device Drivers:

Startingdell_rbu: Already started [OK]

Startingipmi driver: [FAILED]

DSM SAShared Services is already started

StartingDSM SA Connection Service: [OK]

DSM SAConnection Service stopped successfully.

Ps: if the following error is reported during startup, the cause is that the dell smbios version is not enough and the machine identification code is not read.

Upgrade it. Yum update python-smbios-y

Error message:

Starting Systems Management Data Engine:

Failed to start because system is not supported

Dsm_om_shrsvc: dsm sa Shared Services cannot start on an unsupportedsystem. See the Dell Systems Software Support Matrix for a list of supported systems.

6. Check the omsa startup status

/Opt/dell/srvadmin/sbin/srvadmin-services.sh status

Dell_rbu (module) is running

Ipmidriver is running

Dsm_sa_datamgrd (pid 40936 40874) is running

Dsm_sa_eventmgrd (pid 40950) is running

Dsm_sa_snmpd (pid 40973) is running

Dsm_om_shrsvcd (pid 41018) is running

Dsm_om_connsvcdis stopped

Error! Dsm sa Connection Service is already stopped.

Ps: The last two rows of errors can be ignored.

7. Add omsa to startup

Echo "/opt/dell/srvadmin/sbin/srvadmin-services.shstart">/etc/rc. local

The above is the installation of omsa in centos or redhat system.

B. install it in Ubuntu

1. Add Source

Echo 'desthttp: // linux.dell.com/repo/community/ubuntu precise openmanage' | sudo tee-a/etc/apt/sources. list. d/linux.dell.com. sources. list

2. Check and add key

1. gpg --keyserverpool.sks-keyservers.net -- recv-key 1285491434D8786F

2. gpg-a -- export1285491434D8786F | sudo apt-key add-

3. Update Source

Apt-get update-y

4. Install omsa

Apt-get install srvadmin-all-y

5. soft connection

1. ln-s/opt/dell/srvadmin/sbin/omreport/usr/bin/omreport

2. ln-s/opt/dell/srvadmin/sbin/omconfig/usr/bin/omconfig

6. Start omsa in cli mode.

Service dataeng start

C. zabbix client Configuration

1. Add the following configuration in zabbix_agentd.conf to the end

# Follow is monitor hardware

UserParameter = hardware_battery, omreport chassis batteries | awk '/^ Status/{if ($ NF = "OK") {print 1} else {print 0 }}'

UserParameter = hardware_cpu_model, awk-v hardware_cpu_crontol = 'sudoomreport chassis biossetup | awk '/CState/{if ($ NF = "Enabled ") {print 0} else {print 1} ''-v hardware_cpu_c1 = 'sudo omreportchassis biossetup | awk '/C1 [-| E]/{if ($ NF =" Enabled ") {print 0} else {print 1} ''' BEGIN {if (hardware_cpu_crontol = 0 & hardware_cpu_c1 = 0) {print 0} else {print 1 }}'

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) {print1} 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 failed | grep-c "Interface Name" '-v hardware_nic = 'omreport chassis failed | awk'/^ Connection Status/{print $ NF} '| wc-l ''BEGIN {if (hardware_nic_number = hardware_nic) {print 1} else {print0 }}'

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" '-v hardware_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" '-v hardware_physics_disk = 'omreport storage pdiskcontroller = 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-v hardware_virtual_disk_number = 'omreportstorage 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 }}'

2. Restart the zabbix_agentd service.

/Etc/init. d/zabbix_agentd restart

3. Test Data Retrieval: The value is normal

[Root @ xxxxxx] # ../bin/zabbix_get-s 127.0.0.1-k "hardware_virtual_health"

1

Ii. Server

1. template Import

Import the TemplateHardware Monitor template to zabbix.

2. Host Association Template

Associate the hardware server to be monitored with this template.

3. Monitoring legend

Zabbix uses Omsa to monitor the download of the Dell server hardware Information Template

------------------------------------------ Split line ------------------------------------------

Free in http://linux.bkjia.com/

The username and password are both www.bkjia.com

The specific download directory is/July 6/July 20/July 20/Zabbix. Omsa is used to monitor the hardware information of the Dell server/

For the download method, see

------------------------------------------ Split line ------------------------------------------

Some Zabbix Tutorials:

Compile and install Zabbix2.4.5 source code in Ubuntu 14.04

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy the distributed monitoring system Zabbix 2.06

Install and deploy Zabbix in CentOS 6.3

Zabbix distributed monitoring system practice

Under CentOS 6.3, Zabbix monitors apache server-status

Monitoring MySQL database Parameters Using Zabbix in CentOS 6.3

Install Zabbix 2.0.6 in 64-bit CentOS 6.2

ZABBIX details: click here
ZABBIX: click here

This article permanently updates the link address:

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.