CN102136925A - Method and system for passively collecting data based on SNMP protocol - Google Patents

Method and system for passively collecting data based on SNMP protocol Download PDF

Info

Publication number
CN102136925A
CN102136925A CN2010101023500A CN201010102350A CN102136925A CN 102136925 A CN102136925 A CN 102136925A CN 2010101023500 A CN2010101023500 A CN 2010101023500A CN 201010102350 A CN201010102350 A CN 201010102350A CN 102136925 A CN102136925 A CN 102136925A
Authority
CN
China
Prior art keywords
server
warning information
monitor terminal
alarm
snmp protocol
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
CN2010101023500A
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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN2010101023500A priority Critical patent/CN102136925A/en
Publication of CN102136925A publication Critical patent/CN102136925A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method and a system for passively collecting data based on an SNMP (simple network management protocol). The method for passively collecting data comprises the steps of: setting an alarm level on a monitor terminal according to a preset rule, wherein the monitor terminal supports the SNMP; judging whether the index data reaches the alarm level when the index data of the monitor terminal changed; if so, sending the alarm information to the server through the SNMP; if not, not executing the operation; and passively collecting the alarm information sent by the monitor terminal through the server. The monitor terminal judges the status automatically, sends the changed index data to the server, and fully utilizes the resources, thus avoiding waste of resources when the server actively collects resources for multiple times, and enabling the data to be collected in time.

Description

A kind of method and system of the passive collection data based on snmp protocol
Technical field
The present invention relates to the network data communication technical field, particularly relate to a kind of method and system of the passive collection data based on snmp protocol.
Background technology
Simple Network Management Protocol (SNMP, Simple Network Management Protocol) is the cover NMP by the Internet engineering duty group (IETF, Internet Engineering Task Force) definition.This agreement is based on simple gateway monitoring protocol (SGMP:Simple GatewayMonitor Protocol).Utilize SNMP, management work station can telemanagement all support the network equipment of this agreement, comprise the monitoring network state, revise network equipments configuration, receive network event warning etc.
Along with the continuous development of the network communications technology and the continuous expansion of network size, how to realize the monitoring of network is needed the problem that solves with regard to becoming in the network management.For a network monitoring system, adopt the construction form of client, server, monitor terminal usually, wherein, server is collected data as the service media from monitor terminal, and client is obtained from the enterprising line data of server, realizes the monitoring to terminal.
Server is meant the computer system (if a PC externally provides ftp service, also can be server) that some service can be provided other machine (client) under the network environment.On narrow sense, server is specially to refer to some high-performance computer, can pass through network, and service externally is provided.
Traditional data collection mode based on snmp protocol is, at server end a polling routine arranged, and needs obtain data by constantly checking the state of monitored device.This method has proposed requirement to the time interval of inquiry, and the time interval is too little, with producing the unnecessary traffic, even if the state of monitored device is constant, also will constantly check, has wasted a lot of resources, bandwidth naturally.If the time interval is too big, it is untimely then to obtain data.
In a word, need the urgent technical problem that solves of those skilled in the art to be exactly: how a kind of method of the passive collection data based on snmp protocol can be provided, avoid the wasting of resources, and can in time collect valid data.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method and system of the passive collection data based on snmp protocol, avoided the wasting of resources, and data collection is timely.
In order to address the above problem, the invention discloses a kind of method of the passive collection data based on snmp protocol, comprising:
On monitor terminal, alarm level is set according to presetting rule; Wherein, described monitor terminal is supported snmp protocol;
When the achievement data of monitor terminal changes, judge whether described achievement data reaches alarm level; If then warning information is sent to server by snmp protocol; If not, undo then;
The warning information that the passive collection monitoring terminal of server sends.
Preferably, described warning information comprises: alarm level, index name, index ID, alarm date, alarm time and/or information description.
Preferably, described method also comprises: when monitor terminal starts, by snmp protocol warning information is sent to server;
Wherein, described warning information is: log-on message.
Preferably, the warning information of a plurality of monitor terminals transmissions of the passive collection of server; Then, described warning information also comprises: device id.
In a preferred embodiment of the invention, at the different index values of same index, corresponding alarm level is set;
And/or, at the different index values of a plurality of indexs, corresponding alarm level is set.
In addition, the invention also discloses a kind of system of the passive collection data based on snmp protocol, described system comprises: server and monitor terminal; Wherein, described monitor terminal is supported snmp protocol;
Described monitor terminal comprises:
Rank is provided with the unit, is used for according to presetting rule alarm level being set on monitor terminal;
The index judging unit is used for when the achievement data of monitor terminal changes, and judges whether described achievement data reaches alarm level; If then trigger the alarm transmitting element; If not, undo then;
The alarm transmitting element is used for by snmp protocol warning information being sent to server;
Described server comprises:
Information collection unit is used for the warning information that passive collection monitoring terminal sends.
Preferably, described warning information comprises: alarm level, index name, index ID, alarm date, alarm time and/or information description.
Preferably, when monitor terminal started, described alarm transmitting element was sent to server by snmp protocol with warning information;
Wherein, described warning information is: log-on message.
Preferably, the warning information of a plurality of monitor terminals transmissions of the passive collection of the information collection unit of server;
Then, described warning information also comprises: device id.
In a preferred embodiment of the invention, described rank is provided with the different index values of unit at same index, and corresponding alarm level is set;
And/or, at the different index values of a plurality of indexs, corresponding alarm level is set.
Compared with prior art, the present invention has the following advantages:
The present invention is provided with alarm level according to presetting rule on monitor terminal; Wherein, described monitor terminal is supported snmp protocol; When the achievement data of monitor terminal changes, judge whether described achievement data reaches alarm level; If then warning information is sent to server by snmp protocol; If not, undo then; The warning information that the passive collection monitoring terminal of server sends.By the present invention, monitor terminal is by the mode of snmp protocol, transmit corresponding achievement data and other warning information to server, promptly monitored equipment (monitor terminal) is pushed to server to warning information by " mode that pushes away ", these data of the passive reception of server and information.By the own judgement state of monitor terminal, the achievement data that changes is sent to server, made full use of resource.The wasting of resources when having avoided server repeatedly initiatively to obtain, and data are obtained in time.
Further, by the present invention, server can be realized the collection to each many monitor terminals achievement data, can be applied to network monitoring.
Description of drawings
Fig. 1 is the flow process of the method embodiment of a kind of passive collection data based on snmp protocol of the present invention
Figure;
Fig. 2 is the structure of the system embodiment of a kind of passive collection data based on snmp protocol of the present invention
Figure.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The embodiment of the invention adopts snmp trap (SNMP trap) mode: set up certain inlet, arrive this inlet and can make SNMP managed device proactive notification snmp management device, rather than wait for the poll once more of snmp management device.In network management system, the agency in the managed devices can be at any time to network management workstation reporting errors situation, for example formulates the threshold value degree or the like of crossing the border in advance.The agency does not need to wait to management work station and just can report time him for obtaining these error situation polls.These error situations are exactly well-known SNMP self-trapping (trap).
SNMP provides the operation of some " simply ", can easier monitoring and managing network device, involved in the present invention to monitor terminal can be router, switch, server, printer or the like.By SNMP, can monitor a lot of information, the indication information of collecting can be a port flow, the temperature of router the inside, CPU usage or the like.
With reference to Fig. 1, show the flow chart of the method embodiment of a kind of passive collection data based on snmp protocol of the present invention, comprising:
Step 101 is provided with alarm level according to presetting rule on monitor terminal; Wherein, described monitor terminal is supported snmp protocol;
The embodiment of the invention is by SNMP Trap mode, make monitor terminal initiatively to the server alarm, because this mode is based on snmp protocol, then monitor terminal self need support that (itself just supports snmp protocol some hardware to snmp protocol, as: switch, Windows 2000/Windows xp etc.).Further, on monitor terminal, according to presetting rule alarm level is set, by alarm level, monitor terminal judges whether and need alarm to server.
For example, the variation that index is set according to presetting rule is divided into Three Estate: the first order (alarm), the second level (mistake), the second level (information).As, for the network traffics of monitor terminal; When network traffics change and change hour, as 10M, the grade that then reaches is the third level; When network traffics change but monitor terminal when unaffected, as 100M, the grade that then reaches is the second level; Change when network traffics but exceed normal value when big, as 10G, the grade that then reaches is the first order.In addition, the further segmentation of each level, for example the first order is divided into: critical alarm, significant alarm, common alarm etc.
Further, by configuration alarm level is set, it can be set according to presetting rule or user's selection, and for example, setting the second level and the first order is alarm level, alarms when then reaching the second level and the first order; Perhaps critical alarm in the first order and significant alarm, are just alarmed when arriving critical alarm and significant alarm as alarm level.It can carry out difference setting according to the needs of monitoring side.
Preferably, being set to of described alarm level:
At the different index values of same index, corresponding alarm level is set.That is,, then reach alarm level, can send a warning message at the variation of this index as long as when the data variation value of some indexs surpasses threshold value.For example, the utilization rate of monitor terminal CPU reaches at 50% o'clock, promptly reaches alarm level, then sends the warning information of relevant CPU usage.
And/or, at the different index values of a plurality of indexs, corresponding alarm level is set.That is,, then reach alarm level, can send warning information at each index when the data variation value of a plurality of indexs during all above corresponding threshold.For example, when the utilization rate of CPU reaches 40%, and network traffics promptly reach alarm level when reaching 100M, then send relevant CPU usage, and the warning information of network traffics.
Step 102 when the achievement data of monitor terminal changes, judges whether described achievement data reaches alarm level; If then execution in step 103; If not, undo then;
This step judges to the variation size of achievement data judgment data changes whether surpass the upper limit threshold (corresponding alarm grade) that is provided with.
Step 103 is sent to server by snmp protocol with warning information;
If reach the alarm grade, then monitor terminal initiatively sends to server with warning information by snmp protocol.
Preferably, described warning information comprises: alarm level, index name, index ID, alarm date, alarm time and/or information description.
For example, a warning information is described below:
Alarm level: alarm;
Index name: lindDown;
Index ID:1.3.6..1.6.3.1.1.53;
Alarm time: 2009-12-31;
Alarm time: 16:15:37;
Information description: " description of/relevant information/";
Step 104, the warning information that the passive collection monitoring terminal of server sends.
According to the warning information that monitor terminal sends, server is passive to be received, with described alarm information record in the data in server storehouse.
Pass through the embodiment of the invention, monitored equipment is by the mode of snmp protocol, transmit corresponding achievement data and other warning information to server, be that monitored equipment (monitor terminal) is pushed to server to warning information by " mode that pushes away ", these data of the passive reception of server and information.By the own judgement state of monitor terminal, the achievement data that changes is sent to server, the achievement data of collection is timely and effective, and has made full use of Internet resources, the wasting of resources that has caused when having avoided server repeatedly initiatively to obtain.
In a preferred embodiment of the invention, when monitor terminal starts, warning information is sent to server by snmp protocol; Wherein, described warning information is: log-on message.
For example, on the monitor terminal that snmp protocol has been installed (as PC), the each start of monitor terminal all can be alarmed to server by the mode of SNMP Trap, the log-on message that sends on the local machine arrives server, then when monitor terminal is started shooting, server just can be known this information information such as (whether start) start-up times, realizes the collection to the monitor data of monitor terminal starting state.
Need to prove, on monitor terminal, can carry out self-definedly, be provided with whether to send log-on message, whether alarm when then monitor terminal is selected each start.
In another preferred embodiment of the present invention, the warning information that a plurality of monitor terminals of the passive collection of server send; Then described warning information also comprises: alarm equipment ID.
Usually in a network monitoring system, a server need be collected the achievement data of a plurality of monitor terminals.Then for each monitor terminal is discerned, monitor terminal also comprises to the warning information that server sends: alarm equipment ID.
For example, the device id of watch-dog A is in network system: 192.168.1.83, the device id of watch-dog B is: 192.168.2.85.
As described below, two warning information for server is collected are respectively:
1, alarm level: alarm; Device id: 192.168.1.83; Index name: lindDown;
Index ID:1.3.6.1.6.3.1.1.5.3; Alarm date: 2009-12-31; Alarm time: 15:08:55; Information description: " description of/relevant information/";
2, alarm level: mistake; Device id: 192.168.2.85; Index name: lindUp;
Index ID:1.3.6.1.6.3.1.1.5.4; Alarm date: 2009-12-31; Alarm time: 15:08:58; Information description: " description of/relevant information/".
Then pass through device id: 192.168.1.83, server knows that corresponding warning information derives from watch-dog A, passes through device id: 192.168.2.85, server know that corresponding warning information derives from watch-dog B.
By the embodiment of the invention, server can be realized the collection to each many monitor terminals achievement data, has realized network information collection, can be good at being applied to network information monitoring.
With reference to Fig. 2, be the structure chart that the system embodiment of a kind of passive collection data based on snmp protocol of the present invention, described system comprises: server 22 and monitor terminal 21; Wherein, described monitor terminal is supported snmp protocol;
Described monitor terminal 21 comprises:
Rank is provided with unit 211, is used for according to presetting rule alarm level being set on monitor terminal;
Index judging unit 212 is used for when the achievement data of monitor terminal changes, and judges whether described achievement data reaches alarm level; If then trigger the alarm transmitting element; If not, undo then;
Alarm transmitting element 213 is used for by snmp protocol warning information being sent to server;
Described server 22 comprises:
Information collection unit 221 is used for the warning information that passive collection monitoring terminal sends.
The rank of monitor terminal is provided with unit 211 and carries out the setting of alarm level, whether the variation of judging self achievement data by index judging unit 212 reaches alarm level, when reaching alarm level, by snmp protocol alarm transmitting element 213 warning information of index of correlation is sent to server, the warning information that the information collection unit 221 passive collections alarm transmitting elements 213 of server send.
Preferred described warning information comprises: alarm level, index name, index ID, alarm date, alarm time and/or information description.
In a preferred embodiment of the invention, when monitor terminal started, described alarm transmitting element was sent to server by snmp protocol with warning information;
Wherein, described warning information is: log-on message.
Preferably, the warning information of a plurality of monitor terminals transmissions of the passive collection of server; Then described warning information also comprises: device id.
Concrete, rank is provided with the different index values of unit at same index, and different alarm levels is set.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For system embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than to the method and system of a kind of passive collection data based on snmp protocol provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. the method based on the passive collection data of snmp protocol is characterized in that, comprising:
On monitor terminal, alarm level is set according to presetting rule; Wherein, described monitor terminal is supported snmp protocol;
When the achievement data of monitor terminal changes, judge whether described achievement data reaches alarm level; If then warning information is sent to server by snmp protocol; If not, undo then;
The warning information that the passive collection monitoring terminal of server sends.
2. the method for claim 1 is characterized in that,
Described warning information comprises: alarm level, index name, index ID, alarm date, alarm time and/or information description.
3. the method for claim 1 is characterized in that, also comprises:
When monitor terminal starts, warning information is sent to server by snmp protocol;
Wherein, described warning information is: log-on message.
4. method as claimed in claim 2 is characterized in that,
The warning information that a plurality of monitor terminals of the passive collection of server send;
Then, described warning information also comprises: device id.
5. the method for claim 1 is characterized in that,
At the different index values of same index, corresponding alarm level is set;
And/or, at the different index values of a plurality of indexs, corresponding alarm level is set.
6. the system based on the passive collection data of snmp protocol is characterized in that described system comprises: server and monitor terminal; Wherein, described monitor terminal is supported snmp protocol;
Described monitor terminal comprises:
Rank is provided with the unit, is used for according to presetting rule alarm level being set on monitor terminal;
The index judging unit is used for when the achievement data of monitor terminal changes, and judges whether described achievement data reaches alarm level; If then trigger the alarm transmitting element; If not, undo then;
The alarm transmitting element is used for by snmp protocol warning information being sent to server;
Described server comprises:
Information collection unit is used for the warning information that passive collection monitoring terminal sends.
7. system as claimed in claim 6 is characterized in that,
Described warning information comprises: alarm level, index name, index ID, alarm date, alarm time and/or information description.
8. system as claimed in claim 6 is characterized in that,
When monitor terminal started, described alarm transmitting element was sent to server by snmp protocol with warning information;
Wherein, described warning information is: log-on message.
9. system as claimed in claim 7 is characterized in that,
The warning information that a plurality of monitor terminals of the passive collection of the information collection unit of server send;
Then, described warning information also comprises: device id.
10. system as claimed in claim 6 is characterized in that,
Described rank is provided with the different index values of unit at same index, and corresponding alarm level is set;
And/or, at the different index values of a plurality of indexs, corresponding alarm level is set.
CN2010101023500A 2010-01-27 2010-01-27 Method and system for passively collecting data based on SNMP protocol Pending CN102136925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101023500A CN102136925A (en) 2010-01-27 2010-01-27 Method and system for passively collecting data based on SNMP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101023500A CN102136925A (en) 2010-01-27 2010-01-27 Method and system for passively collecting data based on SNMP protocol

Publications (1)

Publication Number Publication Date
CN102136925A true CN102136925A (en) 2011-07-27

Family

ID=44296586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101023500A Pending CN102136925A (en) 2010-01-27 2010-01-27 Method and system for passively collecting data based on SNMP protocol

Country Status (1)

Country Link
CN (1) CN102136925A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731283A (en) * 2012-10-11 2014-04-16 中国电信股份有限公司 Method and system for network management data acquisition
CN104202212A (en) * 2014-08-28 2014-12-10 浪潮(北京)电子信息产业有限公司 System and method for obtaining distributed cluster system alarm
CN106357442A (en) * 2016-09-13 2017-01-25 郑州云海信息技术有限公司 Server cluster monitoring method and system
CN107040415A (en) * 2017-04-06 2017-08-11 青岛海信宽带多媒体技术有限公司 A kind of terminal and data reporting method, server and data receiver method
CN109245937A (en) * 2018-10-08 2019-01-18 郑州云海信息技术有限公司 A kind of alarm method and device of PIM platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756257A (en) * 2004-09-30 2006-04-05 北京航空航天大学 Host performance collection proxy in large-scale network
CN1937505A (en) * 2006-02-09 2007-03-28 北京北方微电子基地设备工艺研究中心有限责任公司 Etchingmachine cluster controller and process module controller communication system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756257A (en) * 2004-09-30 2006-04-05 北京航空航天大学 Host performance collection proxy in large-scale network
CN1937505A (en) * 2006-02-09 2007-03-28 北京北方微电子基地设备工艺研究中心有限责任公司 Etchingmachine cluster controller and process module controller communication system and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731283A (en) * 2012-10-11 2014-04-16 中国电信股份有限公司 Method and system for network management data acquisition
CN103731283B (en) * 2012-10-11 2018-06-08 中国电信股份有限公司 A kind of method and system for network management data acquisition
CN104202212A (en) * 2014-08-28 2014-12-10 浪潮(北京)电子信息产业有限公司 System and method for obtaining distributed cluster system alarm
CN106357442A (en) * 2016-09-13 2017-01-25 郑州云海信息技术有限公司 Server cluster monitoring method and system
CN107040415A (en) * 2017-04-06 2017-08-11 青岛海信宽带多媒体技术有限公司 A kind of terminal and data reporting method, server and data receiver method
CN107040415B (en) * 2017-04-06 2020-12-18 青岛海信宽带多媒体技术有限公司 Terminal, data reporting method, server and data receiving method
CN109245937A (en) * 2018-10-08 2019-01-18 郑州云海信息技术有限公司 A kind of alarm method and device of PIM platform
CN109245937B (en) * 2018-10-08 2022-03-25 郑州云海信息技术有限公司 PIM platform warning method and device

Similar Documents

Publication Publication Date Title
CN102195825B (en) A kind of client and the complete mutual supervisory control system of server and method for supervising thereof
CN109474487B (en) Network performance monitoring method, network equipment and network performance monitoring system
KR101273912B1 (en) Alarm notification between customer premises equipment and a remote management server
JP2010517473A (en) Method and system for utility network outage detection
WO2014056344A1 (en) Method and device for monitoring
CN101931982A (en) Network failure positioning method and device
CN102136925A (en) Method and system for passively collecting data based on SNMP protocol
EP2207306A1 (en) A polling method, system, network management station and managed device
US20060168263A1 (en) Monitoring telecommunication network elements
CN102263651A (en) Method for detecting connection state of local end equipment in SNMP (simple network management protocol) network management system (NMS)
CN101202656B (en) Method and apparatus for resource supervising
CN102136923A (en) Method and system for passively collecting data
JP3425871B2 (en) Network management system and management method thereof
CN101232406A (en) OAM fast detecting method, apparatus and system
CN101022364A (en) Trap message reporting method and system warning information resource/warning agent service device
KR100706955B1 (en) Method and System for Managing Network by Using Agent Independent of Network Element
CN110248154A (en) Depending on the monitoring method and system of networked server
CN105592485A (en) Method for collecting and processing messages in real time based on SNMP
KR101299681B1 (en) Using sensor networks for remote terminal apparatus and method for detecting abnormal status
WO2021073367A1 (en) Data processing method, device, and system
KR101265715B1 (en) Network management system and method using smart nodes
JP6452834B2 (en) Information transmission method, managed system, and management system
Sailhan et al. Wireless mesh network monitoring: Design, implementation and experiments
KR101831165B1 (en) Device for monitoring and analyzing time synchronization state between ntp sever and ntp client
CN103731283A (en) Method and system for network management data acquisition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110727