Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How Zabbix monitors HP server hardware information through SNMP

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how Zabbix monitors HP server hardware information through SNMP. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Monitoring server hardware information through scripting has the following three disadvantages:

1) Monitoring via agent will time out and cannot get a value.

2) through trapper, you need to add crontab to each machine, which is troublesome to deploy.

3) the versatility of the script is poor and it is only suitable for Windows machines.

4) the server of G8 is very slow to execute administrative commands.

Because of the above disadvantages of monitoring hardware through scripting, I later studied the HP agent. Monitoring the hardware of the HP server through the HP agent and SNMP requires the installation of snmp services and HP agent tools.

# the software package yum install-y net-snmp net-snmp-util hpacucli-9.40-12.0.x86_64.rpm hp-snmp-agents-9.40-2506.37.rhel6.x86_64.rpm hp-health-9.40-1602.44.rhel6.x86_64.rpm # SNMP that needs to be installed needs to be modified after installation of snmpd.conf configuration file. Dlmod cmaX / usr/lib/libcmaX.so rwcommunity sfzhang 127.0.0.1 # readable and writable rocommunity public 127.0.0.1 # read-only syscontact Root syslocation Shanghai China view all included .180 access notConfigGroup "" any noauth exact all none none # start related services / etc/init.d/hp-snmp-agents start / etc/init.d/ Hp-health start / etc/init.d/snmpd start

Then test whether the data can be obtained by the snmpwalk command, and the following is the actual temperature value of each part of the HP server.

Create monitoring templates and automatically create monitoring items, triggers and images through Zabbix Low-level discovery. LLD in the official documentation of Zabbix supports the following three types of automatic discovery of monitoring:

1) automatic file system discovery

2) automatic discovery of server network card

3) automatic discovery of SNMP OID

Below through the third method to monitor HP server hardware information, take SNMP monitoring HP server array card as an example to illustrate the implementation principle.

1) first create a monitoring template and Applications.

2) Click discovery- > Create discovery rule of the template.

3) create a monitoring project Create item prototype. The MIB information in the HP agent is not resolved into a specific device name, so the # SNMPVALUE in Name is to distinguish multiple device names, for example, HardDisk_0_status,HardDisk_1_status represents the status of * hard disks and the second hard disk.

4) create trigger Create trigger prototype. The normal return value of HP server hard disk, array card, logical disk and so on is 2, if it is not 2, it means that there is a problem and trigger the alarm.

5) the same method can be used to monitor the status of the HP hard disk, the status of the logical disk, the status of the fan, the temperature of the HP components, and so on.

6) the following automatically discovers the monitoring items and triggers of the server's physical hard disk through DDL, and there will be as many monitoring items and triggers as there are.

7) the Link template is sent to the monitoring host, and the alarm will be given when there is something wrong with the whole array of cards in the host.

Summary:

1) the SNMP protocol is universal, and this template can monitor not only HP Linux machines, but also HP Windows machines.

2) HP agents commonly used OID, there are many others, we go to study slowly.

HP array card status: 1.3.6.1.4.1.232.2.2.1.1.6

Physical disk status: 1.3.6.1.4.1.232.3.2.5.1.1.6

Logical disk status: 1.3.6.1.4.1.232.3.3.1.1.4

HP component temperature: 1.3.6.1.4.1.232.6.2.6.8.1.4

3) Zabbix not only monitors a variety of operating systems and applications, but also monitors server hardware very well.

This is the end of the article on "how Zabbix monitors HP server hardware information through SNMP". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report