CN103607314A - System for monitoring and managing server by using SNMP (Simple Network Management Protocol) - Google Patents

System for monitoring and managing server by using SNMP (Simple Network Management Protocol) Download PDF

Info

Publication number
CN103607314A
CN103607314A CN201310663227.XA CN201310663227A CN103607314A CN 103607314 A CN103607314 A CN 103607314A CN 201310663227 A CN201310663227 A CN 201310663227A CN 103607314 A CN103607314 A CN 103607314A
Authority
CN
China
Prior art keywords
monitoring
snmp
server
bmc
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310663227.XA
Other languages
Chinese (zh)
Inventor
邹虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201310663227.XA priority Critical patent/CN103607314A/en
Publication of CN103607314A publication Critical patent/CN103607314A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a system for monitoring and managing a server by using an SNMP (Simple Network Management Protocol), belonging to the technical field of server monitoring. According to the system, a BMC (Baseboard Management Controller) is used for providing monitoring and managing services to a server system; the BMC monitors all hardware in a server case through access sensors, and sends an alarm message to a monitoring host when the condition that values monitored by the sensors in the case exceed preset thresholds is discovered; an SNMP service program is installed on the monitoring host, so as to actively read monitored sensor values; the sensor data monitored by the BMC is placed in a shared system memory and is simultaneously used by IPMI (Intelligent Platform Management Interface)-based monitoring programs and SNMP-based monitoring programs. The system has the advantages that double guarantees are provided for the reliability of the operation of the server, the situation that monitoring can not be carried out in the case of the abnormal operation of an IPMI protocol is prevented, and the reliability of the monitoring and managing system is improved.

Description

A kind of system of snmp protocol to server monitoring management of using
 
Technical field
The present invention relates to server monitoring technical field, specifically a kind of system of snmp protocol to server monitoring management of using.
Background technology
In current large server system, need to guarantee to find in time in server running the problem of hardware appearance, and take measures to guarantee the reliability of server.At present to the monitoring of server mainly by the mode of band and out-of-band.In band, monitoring is that the software that the operating system by moving on server comprises is monitored server, once operating system occurs extremely or in server power down, cannot monitor normally in this case.Out of band supervision is to be applied for card monitoring is provided by the BMC in machine box for server, because do not rely on operating system and server power supply, even if therefore also can provide normal monitoring management in the situation that server is not started shooting.
BMC adopts IPMI agreement and monitored hardware to communicate conventionally, and the form with IPMI packet sends to monitoring host computer by the data that obtain or warning message simultaneously.Therefore need monitoring host computer that the software of corresponding support IPMI agreement must be installed, otherwise cannot correctly resolve the order that BMC sends.There is the situation that the software of IPMI parsing is surprisingly stopped because of fault simultaneously.Therefore need to, by IPMI protocol monitor, provide a kind of auxiliary method for supervising.
Simple Network Management Protocol (SNMP), the standard of being managed by a group network forms, and comprises an application layer protocol (application layer protocol), database model (database schema) and one group of data object.This agreement can network enabled management system, and whether the equipment being connected on network in order to monitoring has any upper situation about paying close attention to of management that causes.This agreement is a part for the internet protocol family of Internet Engineering work group (IETF, Internet Engineering Task Force) definition.
Summary of the invention
SNMP agreement is mainly used in remote system administration at present.The present invention at server monitoring management domain, has proposed a kind of design of the server monitoring management system based on snmp protocol by this protocol application.
Use the system of snmp protocol to server monitoring management, it uses BMC that monitoring management service is provided in server system; BMC monitors all hardware in machine box for server by access sensors, while having numerical value that Sensor monitoring arrives to surpass default threshold value in finding cabinet, to monitoring host computer, sends warning message; SNMP service routine is installed on monitoring host computer, is initiatively read monitored sensor values; The sensing data that BMC monitors is placed in system shared drive, simultaneously for the program based on IPMI monitoring and the program based on SNMP monitoring.
A kind of system of snmp protocol to server monitoring management of using, its SNMP supervisory control system provides two kinds of services for monitoring host computer: a kind ofly for monitoring host computer, can check by snmp protocol the numerical value of all the sensors in current server, judge whether that hardware effort is in abnormal condition; Another kind of current while having sensor values abnormal for detecting when SNMP supervisory control system, can be from the IP address of trend registration transmission warning message.
Use the system of snmp protocol to server monitoring management, its all transducers that need to monitor hang on MIB database with tree-like in the mode of the MIB node in snmp protocol; By traversal of tree being accessed to the reading of each transducer.
Use the system of snmp protocol to server monitoring management, its warning by snmp protocol guarantees in server monitoring management process, and when IPMI service occurs when abnormal, monitoring host computer is the normal hardware anomalies in discovery server still.
The invention has the beneficial effects as follows:
Snmp protocol is applied in to server monitoring management domain, together with normally used IPMI agreement, for server reliability of operation provides dual assurance, prevent the situation that appearance cannot be monitored when IPMI agreement operation exception, improve the reliability of monitoring management system.
Accompanying drawing explanation
The MIB tree structure schematic diagram that accompanying drawing 1 carries for SNMP service.
Embodiment
1, present embodiment is based upon in LINUX operating system by the transplanting NET-SNMP code of increasing income and realizes the monitoring management function that server is provided by snmp protocol.During enforcement, need according to server monitoring managerial demand, amended code compilation to be become can operate in the executable program on BMC as follows.
2, building database file, description need to be added on the node in MIB storehouse, supposes the database file of setting up Inspur-MIB.txt by name:
Compiling NET-SNMP and by the program portable after compiling when carrying out on BMC plate, SNMP service can carry a MIB tree.
Node shown in accompanying drawing be all conventionally the node in the acquiescence MIB storehouse of NET-SNMP maintenance when operation.If need to add User-defined Node, need under the enterprises under private, set up the node of own company.All can there be own fixing company's node number in the company of general frequent use SNMP service, uses in the present invention node 37945 to represent manufacturer's (tide) of BMC, sets up afterwards the transducer that child node represents that respectively each need to be monitored under 37945 nodes.
Because newly-built node need to be compiled in SNMP service routine (snmpd), so that it can respond reading message and sending warning newly-increased transducer.Need to use mib2c instrument that Inspur-MIB.txt is converted into code file (Inspur.c, Inspur.h) according to newly-built node, and these 2 files are added in the compilation process of NET-SNMP.
Before using mib2c, first need the Inspur-MIB.txt file copy generating in catalogue/root/temp/share/snmp/mibs, as newly-built in do not existed associative directory to need.Then can in catalogue apps, with order " ./snmptranslate-IR – Tp Inspur ", check whether Inspur-MIB.txt has correctly defined newly-built node, if there is no mistake in Inspur-MIB.txt, this order can print newly-built node with and the annexation of all child nodes.
As Inspur-MIB.txt is correctly set up, in catalogue local, carrying out can generating code file Inspur.c with give an order " env MIBS="+MyOID " ./mib2c-c mib2c.notify.conf MASELLIE ", Inspur.h
3, revise Inspur.c, Inspur.h file, makes newly-built node energy corresponding message
In Inspur.c, add corresponding to " MODE_GET " message, when receiving this message, read the value of respective sensor, and this value is sent to host computer, add counter simultaneously, counter excites once each second, check cpu temperature, hard disk temperature, the numerical value of rotation speed of the fan, if any exceeding threshold value, send and report to the police.Add code and see file.
4, cross compile net-snmp, generates related libraries of executable program
Inspur-MIB.txt is copied under the mibs catalogue of net-snmp source code bag
By Inspur.c, Inspur.h copy to net-snmp source code bag agent under mibgroup catalogue
In~/ .bashrc, add environmental variance " export MIBS=ALL "
At net-snmp source code root, calling one gives an order and is configured, generate makefile simultaneously: " CC=/[crossstool catalogue]/arm-linux-gcc ./configure--prefix=/root/temp--build=i386-linux--host=arm-linux--enable-mini-agent--disable-ipv6--with-endianness=little--disable-manuals--disable-ucd-snmp-compatibility--enable-as-needed--disable-embedded-perl--without-perl-modules--disable-snmptrapd-subagent--disable-scripts--with-mib-modules=Inspur "
Then carry out " make " and generate executable file
5, the net-snmp source code catalogue after compiling carries out to order copy associated documents to development board file system directories
Cp agent/snmpd [file system directories]/usr/bin
Arrive/the usr/lib of library file needing during copy operation
Copy snmp service profiles snmpd.conf to [file system directories]/home/conf catalogue
6, the startup configuration documentation of change system, system call instruction when initialization " the TXT folder path > in snmpd – C – c < Profile Path >/snmpd.conf – M <MIBS storehouse " starts snmp service
Application process
1. SNMP service routine is installed on monitoring host computer, is initiatively read monitored sensor values.As under LINUX system, after installation NET-SNMP, can use as the read sensor numerical value of issuing orders:
Snmpget-v 2c-c public 192.168.0.99 (BMC IP) 1.3.6.1.4.1.37945.1 (sensor node number)
2. on monitoring host computer, install and start oracle listener after SNMP service routine:
nmptrapd?-C?-c?snmptrap.conf
All SNMP warning messages that BMC sends afterwards can receive by monitored main frame, can judge accordingly hardware fault.

Claims (4)

1. use the system of snmp protocol to server monitoring management, it is characterized in that using BMC in server system monitoring management service is provided; BMC monitors all hardware in machine box for server by access sensors, while having numerical value that Sensor monitoring arrives to surpass default threshold value in finding cabinet, to monitoring host computer, sends warning message; SNMP service routine is installed on monitoring host computer, is initiatively read monitored sensor values; The sensing data that BMC monitors is placed in system shared drive, simultaneously for the program based on IPMI monitoring and the program based on SNMP monitoring.
2. system according to claim 1, it is characterized in that SNMP supervisory control system provides two kinds of services for monitoring host computer: a kind ofly for monitoring host computer, can check by snmp protocol the numerical value of all the sensors in current server, judge whether that hardware effort is in abnormal condition; Another kind of current while having sensor values abnormal for detecting when SNMP supervisory control system, can be from the IP address of trend registration transmission warning message.
3. system according to claim 1, the transducer that it is characterized in that all needs monitorings hangs on MIB database with tree-like in the mode of the MIB node in snmp protocol; By traversal of tree being accessed to the reading of each transducer.
4. system according to claim 1, is characterized in that guaranteeing in server monitoring management process by the warning of snmp protocol, and when IPMI service occurs when abnormal, monitoring host computer is the normal hardware anomalies in discovery server still.
CN201310663227.XA 2013-12-10 2013-12-10 System for monitoring and managing server by using SNMP (Simple Network Management Protocol) Pending CN103607314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310663227.XA CN103607314A (en) 2013-12-10 2013-12-10 System for monitoring and managing server by using SNMP (Simple Network Management Protocol)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310663227.XA CN103607314A (en) 2013-12-10 2013-12-10 System for monitoring and managing server by using SNMP (Simple Network Management Protocol)

Publications (1)

Publication Number Publication Date
CN103607314A true CN103607314A (en) 2014-02-26

Family

ID=50125515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310663227.XA Pending CN103607314A (en) 2013-12-10 2013-12-10 System for monitoring and managing server by using SNMP (Simple Network Management Protocol)

Country Status (1)

Country Link
CN (1) CN103607314A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104543A (en) * 2014-07-17 2014-10-15 浪潮集团有限公司 Server managing system and method based on SNMP and IPMI protocol
CN104301157A (en) * 2014-11-05 2015-01-21 徐州雷奥医疗设备有限公司 Basic-level medical internet-of-things remote monitoring method based on SNMP
CN105260280A (en) * 2015-09-23 2016-01-20 浪潮电子信息产业股份有限公司 Method and device for detecting sensors in servers
CN107506285A (en) * 2017-09-01 2017-12-22 郑州云海信息技术有限公司 A kind of SNMP monitoring methods, server and SNMP monitoring systems
CN107748555A (en) * 2016-09-12 2018-03-02 研祥智能科技股份有限公司 Industrial computer remote monitoring and fault diagnosis system
CN109240891A (en) * 2018-09-26 2019-01-18 郑州云海信息技术有限公司 A kind of monitoring method and device of SR whole machine cabinet server
CN109766237A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Monitoring method, device, equipment and storage medium based on order distribution
CN109918232A (en) * 2019-02-28 2019-06-21 苏州浪潮智能科技有限公司 A kind of data back up method based on power alarm
CN112040434A (en) * 2020-08-25 2020-12-04 杭州数云信息技术有限公司 Complex environment information acquisition method based on sensor network
CN113626214A (en) * 2021-07-16 2021-11-09 浪潮电子信息产业股份有限公司 Information transmission method, system, electronic equipment and storage medium
CN113805950A (en) * 2021-08-30 2021-12-17 超越科技股份有限公司 Method for managing server by cluster management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567816A (en) * 2009-05-27 2009-10-28 北京中企开源信息技术有限公司 Monitoring server and monitoring method
CN101577698A (en) * 2008-05-09 2009-11-11 中兴通讯股份有限公司 System with external intelligent management server and method for monitoring server and processing commands
US20100299419A1 (en) * 2009-05-15 2010-11-25 Cisco Technology, Inc. System and method for a self organizing network
CN103236949A (en) * 2013-04-27 2013-08-07 北京搜狐新媒体信息技术有限公司 Monitoring method, device and system for server cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577698A (en) * 2008-05-09 2009-11-11 中兴通讯股份有限公司 System with external intelligent management server and method for monitoring server and processing commands
US20100299419A1 (en) * 2009-05-15 2010-11-25 Cisco Technology, Inc. System and method for a self organizing network
CN101567816A (en) * 2009-05-27 2009-10-28 北京中企开源信息技术有限公司 Monitoring server and monitoring method
CN103236949A (en) * 2013-04-27 2013-08-07 北京搜狐新媒体信息技术有限公司 Monitoring method, device and system for server cluster

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WELKIN: "使用ipmi进行服务器管理", 《CHINAUNIX博客,HTTP://BLOG.CHINAUNIX.NET/UID-1724205-ID-2813075.HTML》 *
黄艳阳等: "基于SNMP的服务器性能监控技术", 《广西大学学报(哲学社会科学版)》 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104543A (en) * 2014-07-17 2014-10-15 浪潮集团有限公司 Server managing system and method based on SNMP and IPMI protocol
CN104104543B (en) * 2014-07-17 2017-05-10 浪潮集团有限公司 Server managing system and method based on SNMP and IPMI protocol
CN104301157A (en) * 2014-11-05 2015-01-21 徐州雷奥医疗设备有限公司 Basic-level medical internet-of-things remote monitoring method based on SNMP
CN105260280A (en) * 2015-09-23 2016-01-20 浪潮电子信息产业股份有限公司 Method and device for detecting sensors in servers
CN107748555A (en) * 2016-09-12 2018-03-02 研祥智能科技股份有限公司 Industrial computer remote monitoring and fault diagnosis system
CN107506285A (en) * 2017-09-01 2017-12-22 郑州云海信息技术有限公司 A kind of SNMP monitoring methods, server and SNMP monitoring systems
CN109240891A (en) * 2018-09-26 2019-01-18 郑州云海信息技术有限公司 A kind of monitoring method and device of SR whole machine cabinet server
CN109766237A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Monitoring method, device, equipment and storage medium based on order distribution
CN109918232A (en) * 2019-02-28 2019-06-21 苏州浪潮智能科技有限公司 A kind of data back up method based on power alarm
CN112040434A (en) * 2020-08-25 2020-12-04 杭州数云信息技术有限公司 Complex environment information acquisition method based on sensor network
CN112040434B (en) * 2020-08-25 2022-04-19 杭州数云信息技术有限公司 Complex environment information acquisition method based on sensor network
CN113626214A (en) * 2021-07-16 2021-11-09 浪潮电子信息产业股份有限公司 Information transmission method, system, electronic equipment and storage medium
CN113626214B (en) * 2021-07-16 2024-02-09 浪潮电子信息产业股份有限公司 Information transmission method, system, electronic equipment and storage medium
CN113805950A (en) * 2021-08-30 2021-12-17 超越科技股份有限公司 Method for managing server by cluster management system

Similar Documents

Publication Publication Date Title
CN103607314A (en) System for monitoring and managing server by using SNMP (Simple Network Management Protocol)
CN103248725B (en) A kind of safe and reliable domain name mapping restorative procedure and system
CN101071392B (en) Method and system for maintaining backup copies of firmware
KR20170020311A (en) Wireless sensor network
US7788520B2 (en) Administering a system dump on a redundant node controller in a computer system
CN104104543A (en) Server managing system and method based on SNMP and IPMI protocol
CN103905253A (en) Server monitoring and management method based on Nagios and BMC
JP2015510644A5 (en)
CN107612748A (en) A kind of multi node server power consumption management system
JP2005531864A (en) System event filtering and notification to OPC clients
WO2016197737A1 (en) Self-check processing method, apparatus and system
EP2195967A1 (en) Monitoring of newly added computer network resources having service level objectives
CN104618147A (en) Longitudinally stacked system management method and system
CN105553731A (en) Automatic inspection method and device
CN104168126A (en) Self-maintenance and management system and method for unattended intelligent device
CN106230954B (en) Virtualization management platform
WO2019047071A1 (en) Method and terminal for responding to database fault
CN104516744A (en) Software updating method and system
CN103618634A (en) Method for automatically finding nodes in cluster
CN104780062A (en) Method for quickly acquiring IP address of BMC management network interface
CN106649028A (en) Automated Linux system maintenance task method
US8677323B2 (en) Recording medium storing monitoring program, monitoring method, and monitoring system
CN209881824U (en) Data center and cloud computing system based on private cloud platform
CN117056920A (en) Information acquisition method and device, electronic equipment and storage medium
CN109783314A (en) Information technoloy equipment method for managing and monitoring and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140226

WD01 Invention patent application deemed withdrawn after publication