CN106571972B - Server monitoring method and device - Google Patents

Server monitoring method and device Download PDF

Info

Publication number
CN106571972B
CN106571972B CN201510651349.6A CN201510651349A CN106571972B CN 106571972 B CN106571972 B CN 106571972B CN 201510651349 A CN201510651349 A CN 201510651349A CN 106571972 B CN106571972 B CN 106571972B
Authority
CN
China
Prior art keywords
server
monitoring
machine room
state parameters
preset
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.)
Expired - Fee Related
Application number
CN201510651349.6A
Other languages
Chinese (zh)
Other versions
CN106571972A (en
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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510651349.6A priority Critical patent/CN106571972B/en
Publication of CN106571972A publication Critical patent/CN106571972A/en
Application granted granted Critical
Publication of CN106571972B publication Critical patent/CN106571972B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Alarm Systems (AREA)

Abstract

The invention discloses a monitoring method and a monitoring device for a server, relates to the technical field of networks, and solves the problem of low monitoring efficiency of the existing server. The main technical scheme of the invention is as follows: firstly, obtaining state parameters of each server in a machine room, wherein the state parameters at least comprise: monitoring items, alarm items and/or server attribute information, then judging whether the state parameters meet preset conditions, and finally drawing a server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the server. The invention is mainly used for monitoring the operation of the server.

Description

Server monitoring method and device
Technical Field
The present invention relates to the field of network technologies, and in particular, to a method and an apparatus for monitoring a server.
Background
With the continuous development of information network technology, the construction and development of computer networks enable people to greatly widen the information view and greatly improve the information processing and propagation efficiency in offices and lives. Meanwhile, the dependence of people on the network in work and life is increasingly strengthened, so that the burden of network maintenance and management is increasingly heavy. Because the computer rooms of various network devices are widely distributed in different position areas, and the physical operating environment conditions, the power distribution conditions, the equipment operating conditions, fire-fighting and other critical conditions of numerous unattended computer rooms cannot be found and processed in time, the abnormal operating conditions of the server in the computer room are difficult to effectively foresee, prevent and avoid.
At present, program modules written in PHP (Hypertext Preprocessor) and C (computer programming language) languages are used to obtain various state parameters in a computer room, and monitor a server according to the obtained state parameters. However, program modules written in the PHP and C languages perform task processing in multiple threads, and because multiple threads use a preemptive working mechanism and switching between threads takes extra working time, the speed of acquiring state parameters of each server in each machine room through the program modules written in the PHP and C languages is slow, and thus the monitoring efficiency of the existing server is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for monitoring a server, and mainly aim to improve monitoring efficiency of the server.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in one aspect, an embodiment of the present invention provides a method for monitoring a server, where the method includes:
acquiring state parameters of each server in a machine room; wherein the state parameters at least include: monitoring project, alarm project and/or server attribute information;
judging whether the state parameters meet preset conditions or not;
and drawing a server monitoring image according to the state parameters which do not accord with the preset conditions so as to monitor the server.
On the other hand, an embodiment of the present invention further provides a monitoring apparatus for a server, where the apparatus includes:
the acquisition unit is used for acquiring the state parameters of each server in the machine room; wherein the state parameters at least include: monitoring project, alarm project and/or server attribute information;
the judging unit is used for judging whether the state parameters meet preset conditions or not;
and the drawing unit is used for drawing the server monitoring image according to the state parameters which do not accord with the preset conditions so as to monitor the server.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the embodiment of the invention provides a monitoring method and a monitoring device for servers, which are characterized by firstly sequentially acquiring state parameters of each server in a machine room according to a preset scheduling rule, wherein the state parameters at least comprise: monitoring items, alarm items and/or server attribute information, then judging whether the state parameters meet preset conditions, and finally drawing a server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the server. Compared with the prior art that each state parameter of the machine room is obtained by adopting a multithreading preemptive working mechanism, the embodiment of the invention sequentially obtains the state parameters of each server in the machine room according to the preset scheduling rule, then judges whether the state parameters meet the preset conditions, and finally draws the server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the servers.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a monitoring method for a server according to an embodiment of the present invention;
fig. 2 is a flowchart of another monitoring method for a server according to an embodiment of the present invention;
fig. 3 is a block diagram of a monitoring apparatus of a server according to an embodiment of the present invention
Fig. 4 is a block diagram of another monitoring apparatus for a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to make the advantages of the technical solutions of the present invention clearer, the present invention is described in detail below with reference to the accompanying drawings and examples.
An embodiment of the present invention provides a monitoring method for a server, as shown in fig. 1, the method includes:
101. and acquiring the state parameters of each server in the machine room.
Wherein the state parameters at least include: monitoring items, alarm items and/or server attribute information, specifically, the step 101 may be implemented in a manner of presetting a scheduling rule, where the preset scheduling rule is preconfigured according to actual requirements of running states of servers in a computer room, and is used to sequentially acquire state parameters of the servers in the computer room in a multi-protocol processing task manner, and the multi-protocol processing task adopts asynchronous message communication, so that each state parameter in the computer room can be quickly acquired by performing task processing through the multi-protocol. In the embodiment of the invention, the preset scheduling rules are used for sequentially acquiring the state data in the machine room, so that the extra time occupied by the switching operation among multiple threads in the prior art can be reduced, and the efficiency of acquiring the state data in the machine room can be improved.
It should be noted that the present invention can write the preset scheduling rule through python (object-oriented, interpreted computer programming language).
For the embodiment of the present invention, the monitoring items may specifically be: parameters of the machine room environment, parameters of the machine room power, network system monitoring parameters and auxiliary system monitoring parameters; the alarm item may specifically be: fire protection system parameters, intrusion detection system parameters, security system parameters, etc.; the server attribute information may specifically be: server model, operating system, CPU model, hard disk size, etc., and the embodiment of the present invention is not particularly limited.
For the embodiment of the present invention, the environmental parameters of the computer room may include the following contents: monitoring temperature and humidity of a machine room, monitoring a microenvironment of the machine room, monitoring water leakage and oil leakage of the machine room, monitoring harmful gas of the machine room, monitoring an air conditioner of the machine room and monitoring a fresh air fan of the machine room; the power parameters of the machine room may include the following: monitoring parameters of power distribution of the machine room, monitoring parameters of a power switch state and a circuit state of the machine room, monitoring parameters of an uninterruptible power supply of the machine room, monitoring parameters of a storage battery of the machine room, monitoring parameters of a generator of the machine room, monitoring parameters of a switch power supply of the machine room and monitoring parameters of open circuit monitoring and lamp tube control of the machine room; the auxiliary system monitoring data may include the following: parameters monitored by a video monitoring system, parameters monitored by an access control system, parameters monitored by a network, parameters monitored by a mail, parameters monitored by a server monitoring service system and parameters monitored by a short message sending and receiving platform, and the embodiment of the invention is not particularly limited.
It should be noted that, in the invention, a sensor can be deployed at a position to be monitored, and the sensor performs data acquisition, for example, temperature and humidity data in a machine room are monitored by acquiring a temperature and humidity sensor; the fire alarm state is monitored in real time by collecting the alarm signals of the fire controller, the smoke detector and the temperature detector, and the embodiment of the invention is not particularly limited.
102. And judging whether the state parameters meet preset conditions or not.
The preset conditions are set according to actual requirements, and each state parameter in the machine room corresponds to a set threshold. The state parameter threshold may specifically include: a machine room temperature threshold, a machine room humidity threshold, an input voltage threshold, an output current threshold, an output frequency threshold, and the like. For example, the temperature in the machine room corresponds to a temperature threshold, and when the temperature parameter in the machine room exceeds the set threshold, it is determined that the temperature parameter in the machine room does not meet the preset condition.
103. And drawing a server monitoring image according to the state parameters which do not accord with the preset conditions so as to monitor the server.
The monitoring image of the server is used for displaying the state parameters which do not accord with the preset conditions in the server. In the embodiment of the present invention, the server monitoring image may be drawn according to the state parameters of the machine rooms in different location areas that do not meet the preset conditions, for example, a certain city is divided into a plurality of location areas, and then the city area server monitoring image is drawn according to the corresponding states of the machine rooms in the location areas that do not meet the preset conditions.
Furthermore, the server monitoring image can be drawn according to the corresponding state parameters which do not accord with the preset conditions of different communication machine rooms. For example, the server monitoring image of the telecommunications room may be drawn according to the state parameter in the telecommunications room that does not meet the preset condition, and the server monitoring image may also be drawn according to a room such as a unified or mobile room. In the embodiment of the present invention, the drawn server monitoring image may further specifically display a status parameter corresponding to a certain server and not meeting the preset condition.
In the embodiment of the invention, the monitoring image can adopt a geographical distribution map, each unmanned machine room is marked on the geographical distribution map, and a hypertext link is placed on the map for linking to the next-level picture, so that a user can conveniently enter each monitored unmanned machine room through the link to browse the inside, and further, the information of each device in the machine room can be browsed. For example, various switches, signs, doors and windows, equipment, batteries and the like in the machine room are all made to be plug-ins of the IE5, the attributes of the switches, signs, doors and windows, equipment, batteries and the like are set by placing the switches, signs, doors and windows, the equipment, the batteries and the like on a homepage, the geographical distribution map can visually display the running state of each equipment in the machine room, and therefore the user experience is improved.
In the embodiment of the invention, the generated monitoring report and/or monitoring image is/are compressed to generate a compressed file by adopting a compression algorithm, and then the generated compressed file is stored in a database, so that a user can search the monitoring report or monitoring image stored in the database according to various searching conditions. Further, the embodiment of the invention also stores various log files operated by the system. The log file includes contents of: the embodiment of the present invention is not limited in particular to, but is not limited to, running and exiting of a system, running and exiting of a monitoring device, all dialing records, user login and push-out, running condition records of a network, and the like.
The embodiment of the invention provides a monitoring method of a server, which comprises the steps of firstly, sequentially obtaining state parameters of each server in a machine room according to a preset scheduling rule, wherein the state parameters at least comprise: monitoring items, alarm items and/or server attribute information, then judging whether the state parameters meet preset conditions, and finally drawing a server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the server. Compared with the prior art that each state parameter of the machine room is obtained by adopting a multithreading preemptive working mechanism, the embodiment of the invention sequentially obtains the state parameters of each server in the machine room according to the preset scheduling rule, then judges whether the state parameters meet the preset conditions, and finally draws the server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the servers.
An embodiment of the present invention provides another monitoring method for a server, as shown in fig. 2, the method includes:
201. and sequentially acquiring the state parameters of each server in the machine room according to a preset scheduling rule.
Wherein the state parameters at least include: the preset scheduling rules are configured in advance according to actual requirements of running states of all servers in the machine room and are used for sequentially acquiring state parameters of all servers in the machine room in a multi-protocol processing task mode, asynchronous message communication is adopted in the multi-protocol processing task, and therefore all state parameters in the machine room can be acquired rapidly through multi-protocol task processing. In the embodiment of the invention, the preset scheduling rules are used for sequentially acquiring the state data in the machine room, so that the extra time occupied by the switching operation among multiple threads in the prior art can be reduced, and the efficiency of acquiring the state data in the machine room can be improved. It should be noted that the present invention can write the preset scheduling rule through python (object-oriented, interpreted computer programming language).
For the embodiment of the present invention, the monitoring items may specifically be: parameters of the machine room environment, parameters of the machine room power, network system monitoring parameters and auxiliary system monitoring parameters; the alarm item may specifically be: fire protection system parameters, intrusion detection system parameters, security system parameters, etc.; the server attribute information may specifically be: server model, operating system, CPU model, hard disk size, etc., and the embodiment of the present invention is not particularly limited.
For the embodiment of the present invention, the method further includes: and sequentially acquiring the state parameters of each server in the machine room according to a preset time interval. The preset time interval may be set according to actual requirements, or may be configured by default by a system, for example, the preset time interval may be: 1 minute, 3 minutes, 5 minutes, etc., and the embodiment of the present invention is not particularly limited. In the embodiment of the invention, the state parameters of each server in the machine room are sequentially acquired according to the preset time interval, so that the state parameters of each server can be acquired in real time, and the monitoring accuracy of the server is improved.
202. And judging whether the state parameters meet preset conditions or not.
The preset conditions are set according to actual requirements, and each state parameter of the server corresponds to a set threshold. The state parameter threshold may specifically include: a machine room temperature threshold, a machine room humidity threshold, an input voltage threshold, an output current threshold, an output frequency threshold, and the like. For example, the temperature in the machine room corresponds to a temperature threshold, and when the temperature parameter in the machine room exceeds the set threshold, it is determined that the temperature parameter in the machine room does not meet the preset condition.
For the embodiment of the present invention, when the state parameter is a machine room environment state parameter, the determining whether the state parameter meets a preset condition includes: and judging whether the environmental state parameters of the machine room are greater than or equal to preset environmental conditions. The machine room environment state parameters may specifically include temperature, water leakage, humidity, smoke, power supply, air conditioner, UPS, oxygen, carbon dioxide, dust density, and other parameters or a combination thereof. In the embodiment of the present invention, it may be specifically determined whether the following environmental state parameters of the machine room are greater than or equal to the preset environmental conditions:
(1) temperature and humidity monitoring: the monitoring environment humiture, computer lab temperature of server, humidity are out of standard and are reported to the police.
(2) Microenvironment monitoring: and monitoring local hot spot temperatures inside the cabinet and the server and on the surface of the cable, and alarming when the temperature exceeds the standard.
(3) Monitoring water leakage and oil leakage: monitoring whether water leaks nearby an air conditioner, a window, a water pipe and the like, monitoring whether oil leaks nearby the diesel generator set, and alarming when water leaks and alarming when oil leaks.
(4) Monitoring harmful gases: monitoring harmful gas concentration collected by corresponding sensors in each room, such as O2, CO2, CO, H2S, SO2, NO2, Cl2, gas and other data, and alarming when the concentration of toxic gas exceeds the standard and alarming when the concentration of oxygen is too low.
(5) Monitoring of the precise air conditioner: the air conditioner air return temperature and humidity parameters and the states of a compressor, a fan, a condenser, a heater, a humidifier, a dehumidifier and other components are monitored in real time through serial port output of the precision air conditioner. And when the return air temperature/humidity exceeds the standard and the air conditioner fails, an alarm is given.
(6) Monitoring of a common air conditioner: the real-time monitoring of the common air conditioner is realized by monitoring the air outlet temperature of the common air conditioner and the indoor environment temperature of the machine room, the alarm is given when the air conditioner cannot work normally, and the alarm is given when the air outlet temperature or the indoor temperature exceeds a set upper limit.
(7) Monitoring by a central air conditioner: by additionally arranging the network type temperature controller, the control of the fan coil is realized, and the centralized on-off control and the online temperature regulation of the air conditioners in a plurality of rooms are realized. And when the temperature exceeds the standard and the air conditioner fails, the alarm is given.
(8) Monitoring by a new fan: and monitoring the working state and starting and stopping control of the fresh air fan, and giving an alarm when the fresh air fan breaks down.
For the embodiment of the present invention, when the state parameter is a machine room power state parameter, the determining whether the state parameter meets a preset condition includes: and judging whether the power state parameter of the machine room is greater than or equal to a preset power condition. In the embodiment of the present invention, it can be specifically determined whether the following machine room power state parameters are greater than or equal to the preset power conditions:
(1) power distribution monitoring: and monitoring power parameters of a power distribution cabinet loop, such as three-phase voltage, three-phase current, frequency, power factor and the like. And alarming when the input voltage is too high, and alarming when the input voltage is too low.
(2) Monitoring the state of a power switch and the state of a circuit: and monitoring the on-off state of each stage of loop switch, and monitoring the voltage, current or on-off state of the specified circuit. The alarm is given when the designated switch is switched off and the alarm is given when the designated circuit is switched off.
(3) Monitoring by a UPS: UPS input and output voltages, currents, battery voltage, backup time, etc., and the state of components such as rectifiers, inverters, batteries, bypasses, loads, etc., are monitored. And alarming when the input voltage exceeds the standard, the output voltage is too low and the load is overloaded.
(4) Monitoring the storage battery: and monitoring the voltage, the charge and discharge current, the surface temperature and the like of each single battery of the storage battery pack, and giving an alarm if the voltage, the charge and discharge current and the surface temperature of the specified battery exceed the standard.
(5) Monitoring the generator: the running state of the diesel generator set and parameters such as output voltage, current, frequency, water temperature, oil level and oil pressure are monitored, and when the input voltage exceeds the standard, the water temperature exceeds the standard, and the oil pressure exceeds the standard, the alarm is given.
(6) Monitoring the switching power supply: and monitoring the states and parameters of all parts of the switching power supply, wherein the states and parameters comprise voltage, current, temperature, capacity and other parameters, and sending a short message to perform remote alarm when set alarm occurs.
(7) Circuit monitoring and light control: and a multi-channel data acquisition controller is adopted to monitor the on-off of the specified loop in real time, and the light control of a machine room can be realized as required.
For the embodiment of the present invention, it can be specifically determined whether the following auxiliary system monitoring parameters are greater than or equal to the preset auxiliary system parameters:
(1) a fire-fighting system: the smoke of a machine room and the state of a temperature detector are monitored in real time, or the alarm output signal of a fire controller is collected, and an alarm is given when a fire is found.
(2) And (3) intrusion detection: the security and anti-theft condition of the machine room is monitored in real time by acquiring alarm output signals of a mobile detector (infrared and double technology), a glass breakage sensor, a vibration sensor and other anti-theft alarm devices. And alarming when people invade.
(3) The video monitoring system comprises: and displaying the monitoring picture and the playback image of the appointed point of the machine room in real time. Through the network, images are remotely watched and videos are played back in the sub-control rooms, and meanwhile, the actions of the holder and the lens can be controlled. The system can give an alarm when the conditions of video loss, motion detection, probe triggering, missed hard disk, no space of the hard disk, video abnormity, bad disk block and the like occur.
(4) An access control system: according to the actual needs of customers, one or more modes of card swiping, face recognition, iris, short message remote control, manual remote controller, exit switch and the like can be selected. The network type access controller can realize remote door opening in a local area network; the short message remote controller can remotely open the door by sending a short message or dialing a telephone. The system records the statistical data of the door opening and closing state, the door opening time, the door zone, the responsible person and the like in real time. The alarm is not given when the door is normally entered, and the alarm is given when the door is abnormally intruded into a room.
(5) Network monitoring: the network on-off state of appointed network equipment (a server, a router, a switch and the like) is monitored in real time in a ping, telnet, ftp, tcp and other modes, and the alarm is given when the network is not communicated, when an appointed port cannot be accessed, and when a website cannot be accessed. And the system can also be customized and developed for users, and the restarting or the closing of the server when the server is abnormal is realized.
(6) The server monitors the service system: and setting control authority and control conditions, realizing automatic closing and restarting control of the server with the appointed IP address, and realizing short message remote closing or restarting control of the appointed server.
(7) A short message receiving and sending platform: by means of a short message remote alarm mechanism used by the system, the following functions can be realized: short message receiving and sending: receiving short messages, sending short messages in groups and sending short messages at fixed time. Short message query: the system not only provides the pre-customized public information for the user to inquire, but also provides the powerful function of freely customizing the inquired content, so that the user can conveniently customize the address list, the product information and the like of the unit, and information inquiry service is provided for the outworkers.
For the embodiment of the present invention, after determining whether the state parameter meets the preset condition, the method further includes: and alarming the state parameters which do not accord with the preset conditions.
In the embodiment of the invention, when the judgment result is obtained, namely the monitoring result, the result can be displayed through the display for the staff to check, and the staff can see each state parameter running in the real-time monitoring machine room on the screen. Of course, the result can be stored as historical data for subsequent use or query, and the staff can check whether the data of the machine room are normal at each stage. When the abnormity occurs, the alarm prompt information can be output to prompt the worker where the abnormity occurs. In the embodiment of the invention, the user can monitor the machine room at any place and at any time as long as the user can access the Internet and has corresponding authority, and the control authority can only be in a local monitoring center.
For example, when an illegal person forcibly enters, the opening of the door or window causes the switch to sound an alarm or an infrared alarm, and the monitoring system immediately alarms the management center. When the management center receives the alarm, the management center immediately pops up the picture to carry out on-site monitoring.
The embodiment of the invention can be divided into a local alarm mode and a remote alarm mode for the output alarm information. The local alarm mode can monitor that alarm sound can be sent out through the external sound box after data abnormity, a display can display a striking red alarm color, and an alarm indicator lamp can be installed in a machine room. And an LED alarm screen is arranged, and a prompt appears on the display screen during alarming and is used for explaining the specific reason of alarming.
For the remote alarm mode, the short message modem and the mail client software are installed in advance, when the monitored data are abnormal, the short message modem sends a short message to the mobile phone by reserving the mobile phone number, meanwhile, the short message can comprise the alarm content, and the designated mobile phone number can inquire the working state of each system of the machine room through a short message instruction.
203. And drawing a server monitoring image according to the state parameters which do not accord with the preset conditions so as to monitor the server.
The monitoring image of the server is used for displaying the state parameters which do not accord with the preset conditions in the server. In the embodiment of the present invention, the server monitoring image may be drawn according to the state parameters of the machine rooms in different location areas that do not meet the preset conditions, for example, a certain city is divided into a plurality of location areas, and then the city area server monitoring image is drawn according to the corresponding states of the machine rooms in the location areas that do not meet the preset conditions.
Furthermore, the server monitoring image can be drawn according to the corresponding state parameters which do not accord with the preset conditions of different communication machine rooms. For example, the server monitoring image of the telecommunications room may be drawn according to the state parameter in the telecommunications room that does not meet the preset condition, and the server monitoring image may also be drawn according to a room such as a unified or mobile room. In the embodiment of the present invention, the drawn server monitoring image may further specifically display a corresponding status parameter that does not meet the preset condition in a certain server.
In the embodiment of the invention, the drawn monitoring image is compressed by adopting a compression algorithm to generate a compressed file, and then the generated compressed file is stored in a database, so that a user can search the monitoring report or the monitoring graph stored in the database according to various searching conditions. Further, the embodiment of the invention also stores various log files operated by the system. The log file includes contents of: the embodiment of the present invention is not limited in particular to, but is not limited to, running and exiting of a system, running and exiting of a monitoring device, all dialing records, user login and push-out, running condition records of a network, and the like.
204. And receiving a monitoring data query instruction.
In the embodiment of the invention, after the monitoring data query instruction is received, the output monitoring report or the monitoring image can be displayed on the screen interface, so that an administrator can conveniently check the operation condition of each server in a machine room.
In the embodiment of the invention, the monitoring image of the server can be displayed through the display for the staff to check, and the staff can see each state parameter running in the real-time monitoring machine room on the screen. Of course, the server monitoring image can be stored as historical data for subsequent use or query, and workers can check whether each item of data of the machine room is normal at each stage. In the embodiment of the invention, the user can monitor the machine room at any place and any time as long as the user can access the Internet and has corresponding authority, and the control authority can only be in a local monitoring center, so that the safe operation is ensured.
For the embodiment of the present invention, after receiving the monitoring data query instruction, the method further includes: detecting whether a state parameter recovery instruction of a server is received, wherein the recovery instruction is used for recovering state parameters which do not accord with the preset conditions; and if so, adjusting the state parameters which do not accord with the preset conditions according to preset processing rules. The preset processing rule is set according to actual requirements, and for the embodiment of the invention, the state parameters which do not conform to the preset condition are adjusted by the alarm information through the preset processing rule, so that the server with abnormal working state in the machine room can recover the normal working state. The specific processing rules may be as follows:
(1) the video telephone in a certain unmanned machine room can be remotely controlled to be switched on and off, and the selection of the camera lens can be remotely controlled. This allows the manager to view the scene at any time.
(2) The opening and closing of an electromagnetic valve of a fire extinguisher in an unmanned machine room can be remotely controlled, so that the fire can be conveniently and manually and remotely controlled. In order to prevent misoperation of non-management personnel, the management system has operation prompt and operation password input control when entering the work, and only the user can execute actions when inputting correct passwords.
(3) The opening and closing of drainage equipment of an unmanned machine room can be remotely controlled. The water draining device is used for draining water when water enters a machine room.
(4) The ventilation equipment of an unmanned machine room can be remotely controlled to be opened so as to solve the problems of over-wet environment of the machine room and the like.
(5) The air conditioner can be remotely controlled to be turned on and off, and a command of automatically adjusting the temperature of the machine room can be issued to a monitoring system of the unmanned machine room.
(6) The alarm of the infrared alarm can be remotely controlled to be turned on and off in an unmanned machine room, the alarm of the opening of a door and a window and the alarm of the illegal opening of an IC card anti-theft door. And the anti-theft loud sound alarm of the unmanned machine room and the like. These remote controls also have password management.
(7) The door opening and closing of an IC card door of an unmanned machine room can be remotely controlled, so that the damage of an IC card reader caused by forgetting to take the IC card by maintenance personnel or damage of external personnel can be prevented. But not the door. Password management is required for opening and closing the remote control machine room.
(8) The switching-on and switching-off of the main and standby power supply equipment of the alternating current power supply of an unmanned machine room can be remotely controlled, the switching-off of the main and standby power supply equipment and the like.
(9) The switching on and switching off of a direct-current power supply part of an unmanned machine room can be remotely controlled, so that the maintenance work of fire, water and field workers can be matched.
The embodiment of the invention provides another monitoring method for a server, which first obtains state parameters of each server in a machine room in sequence according to a preset scheduling rule, wherein the state parameters at least comprise: monitoring items, alarm items and/or server attribute information, then judging whether the state parameters meet preset conditions, and finally drawing a server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the server. Compared with the prior art that each state parameter of the machine room is obtained by adopting a multithreading preemptive working mechanism, the embodiment of the invention sequentially obtains the state parameters of each server in the machine room according to the preset scheduling rule, then judges whether the state parameters meet the preset conditions, and finally draws the server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the servers.
Further, an embodiment of the present invention provides a monitoring apparatus for a server, as shown in fig. 3, the apparatus includes: acquisition unit 31, determination unit 32, and rendering unit 33
An obtaining unit 31, configured to obtain state parameters of each server in the computer room; wherein the state parameters at least include: monitoring project, alarm project, and/or server attribute information.
And the judging unit 32 is used for judging whether the state parameters meet preset conditions.
And a drawing unit 33, configured to draw a server monitoring image according to the state parameter that does not meet the preset condition, so as to monitor the server.
It should be noted that other corresponding descriptions of the functional units related to the monitoring apparatus of the server provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
The embodiment of the invention provides a monitoring device of a server, which firstly obtains state parameters of each server in a machine room in sequence according to a preset scheduling rule, wherein the state parameters at least comprise: monitoring items, alarm items and/or server attribute information, then judging whether the state parameters meet preset conditions, and finally drawing a server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the server. Compared with the prior art that each state parameter of the machine room is obtained by adopting a multithreading preemptive working mechanism, the embodiment of the invention sequentially obtains the state parameters of each server in the machine room according to the preset scheduling rule, then judges whether the state parameters meet the preset conditions, and finally draws the server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the servers.
Further, an embodiment of the present invention provides another monitoring apparatus for a server, as shown in fig. 4, where the apparatus includes: an acquisition unit 41, a determination unit 42, and a rendering unit 43.
An obtaining unit 41, configured to sequentially obtain state parameters of each server in the computer room according to a preset scheduling rule; wherein the state parameters at least include: monitoring project, alarm project, and/or server attribute information.
And the judging unit 42 is used for judging whether the state parameters meet preset conditions or not.
And a drawing unit 43, configured to draw a server monitoring image according to the state parameter that does not meet the preset condition, so as to monitor the server.
Further, the apparatus further comprises:
and the alarm unit 44 is used for giving an alarm to the state parameters which do not accord with the preset conditions.
Further, the apparatus further comprises:
and a receiving unit 45, configured to receive a monitoring data query instruction, where the monitoring data query instruction is used to instruct an output server to output a monitoring image.
Further, the apparatus further comprises:
a detecting unit 46, configured to detect whether a state parameter recovery instruction of the server is received, where the recovery instruction is used to recover the state parameter that does not meet the preset condition;
and the adjusting unit 47 is configured to, if the recovery instruction is received, adjust the state parameter that does not meet the preset condition according to a preset processing rule.
The obtaining unit 41 is specifically configured to sequentially obtain the state parameters of each server in the machine room according to a preset time interval.
It should be noted that other corresponding descriptions of the functional units related to the monitoring apparatus of the server provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 2, and are not described herein again.
The embodiment of the present invention provides another monitoring apparatus for a server, which first sequentially obtains status parameters of each server in a machine room according to a preset scheduling rule, where the status parameters at least include: monitoring items, alarm items and/or server attribute information, then judging whether the state parameters meet preset conditions, and finally drawing a server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the server. Compared with the prior art that each state parameter of the machine room is obtained by adopting a multithreading preemptive working mechanism, the embodiment of the invention sequentially obtains the state parameters of each server in the machine room according to the preset scheduling rule, then judges whether the state parameters meet the preset conditions, and finally draws the server monitoring image according to the state parameters which do not meet the preset conditions so as to monitor the servers.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part of the technical solutions contributing to the prior art may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. A method for monitoring a server, comprising:
acquiring state parameters of each server in a machine room through a preset scheduling rule; wherein the state parameters at least include: monitoring project, alarm project and/or server attribute information, wherein the preset scheduling rule is used for sequentially acquiring the state parameters of each server in the machine room in a multi-protocol processing task mode, and the multi-protocol processing task adopts asynchronous message communication;
judging whether the state parameters meet preset conditions or not;
dividing a region in an appointed range into a plurality of position regions, drawing a server monitoring image according to state parameters which do not accord with the preset conditions in machine rooms in different position regions so as to monitor a server, wherein the server monitoring image shows the geographical distribution of the machine room where the monitored server is located and contains a hypertext link corresponding to the machine room, the hypertext link is used for linking to a next-level picture, and the next-level picture at least comprises: entering a picture for internal browsing of each monitored machine room, wherein the server monitoring image is also generated into a compressed file by a compression algorithm and stored in a database, so that a user can conveniently search the server monitoring image stored in the database according to a specified query condition;
the picture entering each monitored machine room for internal browsing is specifically as follows: various switches, signs, doors, windows, equipment and batteries in the machine room are made into plug-ins of the browser, the plug-ins are placed on a homepage, the attributes of the plug-ins are set, and the geographic distribution map displays the running states of the equipment in the machine room by receiving the operation that a user clicks the plug-ins.
2. The method for monitoring a server according to claim 1, wherein after determining whether the status parameter meets a preset condition, the method further comprises:
and alarming the state parameters which do not accord with the preset conditions.
3. The method for monitoring a server according to claim 2, wherein after the step of drawing a server monitoring image according to the state parameter that does not meet the preset condition, the method further comprises:
and receiving a monitoring data query instruction, wherein the monitoring data query instruction is used for indicating an output server to monitor an image.
4. The method for monitoring a server according to claim 3, wherein after receiving the monitoring data query instruction, the method further comprises:
detecting whether a state parameter recovery instruction of a server is received, wherein the recovery instruction is used for recovering state parameters which do not accord with the preset conditions;
and if so, adjusting the state parameters which do not accord with the preset conditions according to preset processing rules.
5. The method for monitoring a server according to claim 1, further comprising:
and sequentially acquiring the state parameters of each server in the machine room according to a preset time interval.
6. A monitoring apparatus of a server, comprising:
the system comprises an acquisition unit, a scheduling unit and a control unit, wherein the acquisition unit is used for acquiring the state parameters of each server in a machine room through a preset scheduling rule; wherein the state parameters at least include: monitoring project, alarm project and/or server attribute information, wherein the preset scheduling rule is used for sequentially acquiring the state parameters of each server in the machine room in a multi-protocol processing task mode, and the multi-protocol processing task adopts asynchronous message communication;
the judging unit is used for judging whether the state parameters meet preset conditions or not;
the system comprises a drawing unit, a server monitoring image and a next-level picture, wherein the drawing unit is used for dividing a region in an appointed range into a plurality of position regions, drawing the server monitoring image according to state parameters which do not accord with the preset conditions in machine rooms in different position regions so as to monitor the server, the geographical distribution of the machine room where a monitored server is located is shown on the server monitoring image, the server monitoring image contains hypertext links corresponding to the machine room, the hypertext links are used for linking to the next-level picture, and the next-level picture at least comprises: entering a picture for internal browsing of each monitored machine room, wherein the server monitoring image is also generated into a compressed file by a compression algorithm and stored in a database, so that a user can conveniently search the server monitoring image stored in the database according to a specified query condition;
the picture entering each monitored machine room for internal browsing is specifically as follows: various switches, signs, doors, windows, equipment and batteries in the machine room are made into plug-ins of the browser, the plug-ins are placed on a homepage, the attributes of the plug-ins are set, and the geographic distribution map displays the running states of the equipment in the machine room by receiving the operation that a user clicks the plug-ins.
7. The apparatus for monitoring a server according to claim 6, wherein the apparatus further comprises:
and the alarm unit is used for alarming the state parameters which do not accord with the preset conditions.
8. The apparatus for monitoring a server according to claim 7, wherein the apparatus further comprises:
and the receiving unit is used for receiving a monitoring data query instruction, and the monitoring data query instruction is used for indicating an output server to monitor the image.
9. The apparatus for monitoring a server according to claim 8, wherein the apparatus further comprises:
the detection unit is used for detecting whether a state parameter recovery instruction of the server is received or not, wherein the recovery instruction is used for recovering the state parameters which do not accord with the preset conditions;
and the adjusting unit is used for adjusting the state parameters which do not accord with the preset conditions according to preset processing rules if the recovery instruction is received.
10. The monitoring device of a server according to claim 6,
the acquiring unit is specifically configured to sequentially acquire the state parameters of each server in the machine room according to a preset time interval.
11. A storage medium, characterized in that the storage medium includes a stored program, wherein, when the program runs, a device in which the storage medium is located is controlled to execute the monitoring method of the server according to any one of claims 1 to 5.
12. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the monitoring method of the server according to any one of claims 1 to 5 when running.
CN201510651349.6A 2015-10-10 2015-10-10 Server monitoring method and device Expired - Fee Related CN106571972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510651349.6A CN106571972B (en) 2015-10-10 2015-10-10 Server monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510651349.6A CN106571972B (en) 2015-10-10 2015-10-10 Server monitoring method and device

Publications (2)

Publication Number Publication Date
CN106571972A CN106571972A (en) 2017-04-19
CN106571972B true CN106571972B (en) 2021-02-12

Family

ID=58506162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510651349.6A Expired - Fee Related CN106571972B (en) 2015-10-10 2015-10-10 Server monitoring method and device

Country Status (1)

Country Link
CN (1) CN106571972B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107202407B (en) * 2017-06-19 2019-12-03 青岛海信日立空调系统有限公司 A kind of air conditioner fire alarm method, apparatus and system based on line control machine
CN108445847A (en) * 2018-03-22 2018-08-24 上海精鲲计算机科技有限公司 A kind of visualization computer room management system
CN108769170A (en) * 2018-05-18 2018-11-06 郑州云海信息技术有限公司 A kind of cluster network fault self-checking system and method
CN109639490B (en) * 2018-12-18 2020-09-18 网宿科技股份有限公司 Downtime notification method and device
CN110445669A (en) * 2019-06-26 2019-11-12 苏州浪潮智能科技有限公司 A kind of monitoring method, equipment and the readable medium of the server based on association's journey
CN112416439B (en) * 2019-08-20 2024-03-05 广州弘度信息科技有限公司 Remote restarting system of server and control method thereof
CN114362361B (en) * 2021-12-17 2023-11-21 南方电网海南数字电网研究院有限公司 Multi-dimensional distribution terminal abnormality analysis and notification method
CN117076259A (en) * 2023-10-16 2023-11-17 辽宁牧龙科技有限公司 Intelligent management system and method for digital equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898533A (en) * 2015-04-29 2015-09-09 陈龙晶 Machine room monitoring method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123616A (en) * 2007-09-28 2008-02-13 北京金山软件有限公司 A server management method and a server management system
US10102097B2 (en) * 2012-07-12 2018-10-16 International Business Machines Corporation Transaction server performance monitoring using component performance data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898533A (en) * 2015-04-29 2015-09-09 陈龙晶 Machine room monitoring method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《浅谈我对协程的理解》;曾经的学渣;《https://blog.csdn.net/qq910894904/article/details/41699541》;20141203;正文1-2页 *

Also Published As

Publication number Publication date
CN106571972A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN106571972B (en) Server monitoring method and device
CN104898533A (en) Machine room monitoring method, device and system
US9646486B1 (en) Alarm probability
CN208314496U (en) Machine room power environment monitoring system
CN104615112B (en) Resource and environmental monitoring early warning system under network environment
CN102063116B (en) Building information total management system and method
CN108762354A (en) Transformer room system
CN208521198U (en) Transformer room system
KR101403465B1 (en) Switchboard Integration Management system based mobile app.
CN106056833A (en) Safety monitoring method, device, system and monitoring system
CN103488154A (en) Remote comprehensive monitoring system for transformer substation operating environment and linkage control method thereof
CN111077927B (en) Automatic computer operating environment adjusting system based on data acquisition
CN104269936A (en) Comprehensive monitoring method and system
CN108631447A (en) Unattended intelligent transformer substation system
CN107241214A (en) A kind of mobile phone A PP computer room operational systems
CN110109407A (en) 5T equipment rail side machine room intelligent monitoring system and its implementation
CN109870918A (en) A kind of home-use intelligent monitor system
CN114660982A (en) Laboratory safety inspection method and device based on Internet of things
CN112994230A (en) Environment monitoring system for intelligent substation auxiliary system and use method thereof
CN111131478A (en) Light steel villa monitoring management system
CN114139735A (en) Moving ring monitoring platform
CN109917771A (en) Room O&M of standing monitors system
CN105827730A (en) Broadcast television transmission platform monitoring system based on multi-level management
CN115833372A (en) Power distribution cabinet safety management system
CN112634579A (en) Transformer substation security early warning linkage system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210212