CN108243061A - Apparatus monitoring method, device and computer equipment based on Nagios - Google Patents
Apparatus monitoring method, device and computer equipment based on Nagios Download PDFInfo
- Publication number
- CN108243061A CN108243061A CN201710936964.0A CN201710936964A CN108243061A CN 108243061 A CN108243061 A CN 108243061A CN 201710936964 A CN201710936964 A CN 201710936964A CN 108243061 A CN108243061 A CN 108243061A
- Authority
- CN
- China
- Prior art keywords
- equipment
- nagios
- host
- monitoring
- alarm
- 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
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 114
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000002159 abnormal effect Effects 0.000 claims description 35
- 238000012423 maintenance Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 18
- 235000013399 edible fruits Nutrition 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 10
- 230000005540 biological transmission Effects 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 13
- 238000009434 installation Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 101001094649 Homo sapiens Popeye domain-containing protein 3 Proteins 0.000 description 1
- 101000608234 Homo sapiens Pyrin domain-containing protein 5 Proteins 0.000 description 1
- 101000578693 Homo sapiens Target of rapamycin complex subunit LST8 Proteins 0.000 description 1
- 102100027802 Target of rapamycin complex subunit LST8 Human genes 0.000 description 1
- 230000002547 anomalous effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0686—Additional information in the notification, e.g. enhancement of specific meta-data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0604—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
- H04L41/0609—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on severity or priority
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0681—Configuration of triggering conditions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of apparatus monitoring method based on Nagios, device and computer equipment, wherein, the apparatus monitoring method based on Nagios includes:Monitor the operating status of at least one equipment;If judging, the operating status of at least one equipment is not in preset operating state, and judging result is at least one unit exception, and sends out SMS alarm according to exception control SMS alarm terminal.Apparatus monitoring method provided by the invention based on Nagios, transmission short message alarm is realized by way of external SMS alarm terminal, this mode is at low cost, it is simple to safeguard, is easy to control, is highly reliable, operation personnel is facilitated to realize monitoring and management, so as to avoid because lead to not Normal Alarm during network communication failure the problem of.
Description
Technical field
The present invention relates to Network Monitoring Technology field, in particular to a kind of apparatus monitoring method based on Nagios,
Device and computer equipment.
Background technology
With the arrival of Internet era, each enterprise is a large amount of so as to occur all in the development for accelerating informatization
Data center, in these big and small data centers, Nagios is managed thousands of as powerful monitor supervision platform
Platform server apparatus.Nagios is simple in structure, powerful, energy effective monitoring host equipment, once host or service state go out
When now abnormal, mail can be sent out or SMS alarm notifies operation personnel.
For Nagios SMS alarms mainly using two ways, one kind is that Nagios calls mobile operation by internet at present
The short message interface of quotient, which is realized, sends short message, and another kind is that Nagios calls Fetion to send short message by internet.Both sides
Although formula can realize the function of SMS alarm, also all there is the shortcomings that more apparent.
First, both modes are all to realize transmission short message by internet, and internet is a kind of insecure number
According to transmission mode, the problems such as can be potentially encountered suspension, network delay in use, cause short message alarm that cannot send in real time
To operation personnel.Secondly, the short message interface of mobile operator is called to need to establish special communication mechanism with other side, passes through both sides
Technology joint debugging can just be realized, and short message channel is controlled by other side.In addition, the mode for calling Fetion is also come real by internet
It is existing, the insecure problem of network is equally existed, and the upgrading of Fetion service end system is frequent, is frequently encountered not after upgrading
The failure problems of short message can be sent.
Invention content
At least one in order to solve the above-mentioned technical problem, the embodiment of the first aspect of the present invention proposes one kind and is based on
The apparatus monitoring method of Nagios.
A kind of the second aspect of the present invention embodiment, it is also proposed that equipment monitoring apparatus based on Nagios.
A kind of the third aspect of the present invention embodiment, it is also proposed that computer equipment.
A kind of the fourth aspect of the present invention embodiment, it is also proposed that computer readable storage medium.
In view of this, embodiment according to the first aspect of the invention, the present invention propose a kind of setting based on Nagios
Standby monitoring method, for monitoring at least one equipment, at least one equipment is connected with SMS alarm terminal, based on Nagios's
Apparatus monitoring method includes:Monitor the operating status of at least one equipment;If judging, the operating status of at least one equipment is not located
In preset operating state, then judging result is at least one unit exception, and is sent out according to exception control SMS alarm terminal short
Letter alarm.
Apparatus monitoring method provided by the invention based on Nagios, by way of external SMS alarm terminal (including
Short message Modem and GsmSim card) realize transmission short message alarm, this mode is at low cost, it is simple to safeguard, be easy to control, reliably
Property it is strong, facilitate operation personnel realize monitoring and management, so as to avoid because leading to not Normal Alarm during network communication failure
Problem.
In addition, the apparatus monitoring method based on Nagios in above-described embodiment provided by the invention can also have it is as follows
Additional technical feature:
In the above-mentioned technical solutions, it is preferable that at least one equipment includes a kind of following or combination:Router, exchange
Machine, host and remote terminal.
In the technical scheme, the equipment that can be monitored includes router, interchanger, host or remote terminal, passes through monitoring
These equipment can understand equipment running status in time, and notify related personnel in time when problem occurs to ensure network system
The normal operation of system.Wherein, host and router can be connected with interchanger respectively, and the device for being used to monitor can be with exchanging
Machine is connected, to realize the monitoring for above equipment, in addition, remote terminal can be connected by internet with router,
The connection being achieved between each equipment.
In any of the above-described technical solution, it is preferable that when at least one equipment includes host, the quantity of host is two
A, including the first host and the second host, the first host includes the first operating system, and the second host includes the second operating system,
Apparatus monitoring method based on Nagios further includes:The operating status of the first host is monitored according to the first operating system;According to
Two operating systems monitor the operating status of the second host.
In the technical scheme, the quantity of host is two, including the first host and the second host, while different hosts
On be also separately operable different systems, can be monitored respectively for different system and host during monitoring, realize
Monitoring function and warning function.For example, the first host is Linux system, and the second host is Windows systems, then can be with
Above-mentioned host and system are monitored respectively, different monitoring can be write respectively for different hosts in practical operation
Program.
In any of the above-described technical solution, it is preferable that further include:Abnormal priority is set, it is abnormal different including the first order
Often, second level exception and the third level are abnormal;If at least one equipment first order exception occurs for judging result, SMS alarm is controlled
Terminal sends out SMS alarm to maintenance personnel;If at least one equipment second level exception occurs for judging result, short message report is controlled
Alert terminal sends out SMS alarm to maintenance personnel and administrative staff;If judging result is different at least one equipment generation third level
Often, control SMS alarm terminal sends out SMS alarm to maintenance personnel and administrative staff, and at least one equipment is controlled to stop
Operation.
In the technical scheme, different priority can be set respectively for different exceptions, so that in alarm side
Formula can be selected and judged according to abnormal priority, as occurred only to alarm if the first order is abnormal to maintenance personnel;Occur the
Alarm is then sent out to maintenance personnel and administrative staff during two level exception, ensures that administrative staff can also recognize network system in time
More serious failure has occurred in system;And when third level exception occurs, in addition to going out alarm to personnel's outgoing, while also to shut down generation
Abnormal equipment, to ensure information, system and the safety of equipment.
In any of the above-described technical solution, it is preferable that before the operating status for monitoring at least one equipment, further include:
Preset operating state is set.
In the technical scheme, user can adjust and set preset operating state according to actual conditions, so that monitoring work
More meet the actual demand of user.
In any of the above-described technical solution, it is preferable that further include:Record the operating status of at least one equipment;It records short
The short message that letter alarm terminal is sent out.
In the technical scheme, pass through the operating status of recording equipment and the short message of sent out alarm so that Yong Huke
To check the history run state of equipment and the exception occurred and the alarming short message sent out before at any time, in order to user
Investigation and solution abnormal problem.
The embodiment of second aspect of the present invention additionally provides a kind of equipment monitoring apparatus based on Nagios, for monitoring extremely
Few equipment, at least one equipment are connected with SMS alarm terminal, and the equipment monitoring apparatus based on Nagios includes:Monitoring
Unit, for monitoring the operating status of at least one equipment;Alarm unit, if for judging the operating status of at least one equipment
Preset operating state is not in, then judging result is at least one unit exception, and is sent out according to exception control SMS alarm terminal
Go out SMS alarm.
Equipment monitoring apparatus provided by the invention based on Nagios, by way of external SMS alarm terminal (including
Short message Modem and GsmSim card) realize transmission short message alarm, this mode is at low cost, it is simple to safeguard, be easy to control, reliably
Property it is strong, facilitate operation personnel realize monitoring and management, so as to avoid because leading to not Normal Alarm during network communication failure
Problem.
In the above-mentioned technical solutions, it is preferable that at least one equipment includes a kind of following or combination:Router, exchange
Machine, host and remote terminal.
In the technical scheme, the equipment that can be monitored includes router, interchanger, host or remote terminal, passes through monitoring
These equipment can understand equipment running status in time, and notify related personnel in time when problem occurs to ensure network system
The normal operation of system.Wherein, host and router can be connected with interchanger respectively, and the device for being used to monitor can be with exchanging
Machine is connected, to realize the monitoring for above equipment, in addition, remote terminal can be connected by internet with router,
The connection being achieved between each equipment.
In any of the above-described technical solution, it is preferable that when at least one equipment includes host, the quantity of host is two
A, including the first host and the second host, the first host includes the first operating system, and the second host includes the second operating system,
Monitoring unit is additionally operable to monitor the operating status of the first host according to the first operating system;Monitoring unit is additionally operable to according to the second fortune
The operating status of the second host of row system monitoring.
In the technical scheme, the quantity of host is two, including the first host and the second host, while different hosts
On be also separately operable different systems, can be monitored respectively for different system and host during monitoring, realize
Monitoring function and warning function.For example, the first host is Linux system, and the second host is Windows systems, then can be with
Above-mentioned host and system are monitored respectively, different monitoring can be write respectively for different hosts in practical operation
Program.
In any of the above-described technical solution, it is preferable that further include:First setting unit, for setting abnormal priority,
It is abnormal to include the abnormal first order, second level exception and third level exception;It is at least one that if alarm unit, which is additionally operable to judging result,
First order exception occurs for equipment, and control SMS alarm terminal sends out SMS alarm to maintenance personnel;If alarm unit is additionally operable to sentence
For at least one equipment second level exception occurs for disconnected result, and control SMS alarm terminal sends out short to maintenance personnel and administrative staff
Letter alarm;If alarm unit is additionally operable to judging result occurs third level exception at least one equipment, SMS alarm terminal is controlled
SMS alarm is sent out to maintenance personnel and administrative staff, and controls at least one equipment out of service.
In the technical scheme, different priority can be set respectively for different exceptions, so that in alarm side
Formula can be selected and judged according to abnormal priority, as occurred only to alarm if the first order is abnormal to maintenance personnel;Occur the
Alarm is then sent out to maintenance personnel and administrative staff during two level exception, ensures that administrative staff can also recognize network system in time
More serious failure has occurred in system;And when third level exception occurs, in addition to going out alarm to personnel's outgoing, while also to shut down generation
Abnormal equipment, to ensure information, system and the safety of equipment.
In any of the above-described technical solution, it is preferable that further include:Second setting unit, for monitoring at least one set
Preset operating state is set before standby operating status.
In the technical scheme, user can adjust and set preset operating state according to actual conditions, so that monitoring work
More meet the actual demand of user.
In any of the above-described technical solution, it is preferable that further include:Recording unit, for recording the fortune of at least one equipment
Row state;Recording unit is additionally operable to the short message that record SMS alarm terminal is sent out.
In the technical scheme, pass through the operating status of recording equipment and the short message of sent out alarm so that Yong Huke
To check the history run state of equipment and the exception occurred and the alarming short message sent out before at any time, in order to user
Investigation and solution abnormal problem.
The embodiment of third aspect present invention additionally provides a kind of computer equipment, including memory, processor and storage
On a memory and the computer program that can run on a processor, processor realize base as described above when performing computer program
In the apparatus monitoring method of Nagios.
Computer equipment provided by the invention realizes monitoring of tools as described above when performing computer program by processor
Method realizes the function that short message alarm is sent by way of external SMS alarm terminal, has both facilitated operation personnel's realization
Monitoring and management, the problem of in turn avoiding leading to not Normal Alarm due to network communication failure.
The embodiment of fourth aspect present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer
Program realizes the apparatus monitoring method based on Nagios as described above when computer program is executed by processor.
Computer readable storage medium provided by the invention, by being realized as above when computer program is executed by processor
The apparatus monitoring method stated realizes the function that short message alarm is sent by way of external SMS alarm terminal, both facilitated
Operation personnel realizes monitoring and management, the problem of in turn avoiding leading to not Normal Alarm due to network communication failure.
The additional aspect and advantage of the present invention will become practice apparent or by the present invention in following description section
Recognize.
Description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become in the description from combination accompanying drawings below to embodiment
Significantly and it is readily appreciated that, wherein:
Fig. 1 is the flow diagram of the apparatus monitoring method based on Nagios of one embodiment of the present of invention;
Fig. 2 is the flow diagram of the apparatus monitoring method based on Nagios of an alternative embodiment of the invention;
Fig. 3 is the flow diagram of the apparatus monitoring method based on Nagios of yet another embodiment of the present invention;
Fig. 4 shows the schematic block diagram of the equipment monitoring apparatus based on Nagios of one embodiment of the present of invention;
Fig. 5 shows the schematic block diagram of the computer equipment of one embodiment of the present of invention.
Specific embodiment
It is to better understand the objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specific real
Mode is applied the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application
Feature in example and embodiment can be combined with each other.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
To be implemented using other different from other modes described here, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
The Supervision prosecutor based on Nagios described according to some embodiments of the invention is described referring to Fig. 1 to Fig. 5
Method, device and computer equipment.
In one embodiment of the invention, as shown in Figure 1, the present invention provides a kind of monitoring of tools based on Nagios
Method includes the following steps:
Step S102 monitors the operating status of at least one equipment, wherein, the operating status of equipment includes such as host resource
(such as processor load, disk utilization), network service (such as SMTP, POP3, HTTP, PING) or user according to plug-in unit from
Monitoring content of row design etc.;
Step S104, if judging, the operating status of at least one equipment is not in preset operating state, and judging result is
At least one unit exception, and SMS alarm is sent out according to exception control SMS alarm terminal.
Wherein, preset operating state includes the pre-set interval, the pre-set interval of disk utilization, network such as processor load
Information sends and receives whether normal and user's designed, designed monitoring content is in preset operation shape in service
Run in state etc..
In this embodiment, by way of external SMS alarm terminal (including short message Modem and GsmSim card) come real
Short message alarm is now sent, this mode is at low cost, it is simple to safeguard, is easy to control, is highly reliable, and operation personnel is facilitated to realize monitoring
And management, so as to avoid because lead to not Normal Alarm during network communication failure the problem of.
In one embodiment of the invention, it is preferable that at least one equipment includes a kind of following or combination:Routing
Device, interchanger, host and remote terminal.
In this embodiment, the equipment that can be monitored includes router, interchanger, host or remote terminal, by monitoring this
A little equipment can understand equipment running status, and related personnel is notified to ensure network system in time when problem occurs in time
Normal operation.Wherein, host and router can be connected with interchanger respectively, and the device for being used to monitor can be with interchanger
It is connected, to realize the monitoring for above equipment, in addition, remote terminal can be connected by internet with router, by
This realizes the connection between each equipment.
In one embodiment of the invention, it is preferable that when at least one equipment includes host, the quantity of host is two
A, including the first host and the second host, the first host includes the first operating system, and the second host includes the second operating system,
Apparatus monitoring method based on Nagios further includes:The operating status of the first host is monitored according to the first operating system;According to
Two operating systems monitor the operating status of the second host.
In this embodiment, the quantity of host is two, including the first host and the second host, while on different hosts
Also different systems is separately operable, can be monitored respectively for different system and host during monitoring, realizes prison
Control function and warning function.For example, the first host is Linux system, and the second host is Windows systems, then Ke Yifen
It is other that above-mentioned host and system are monitored, in practical operation different monitoring journeys can be write respectively for different hosts
Sequence.
In one embodiment of the invention, as shown in Fig. 2, the present invention provides a kind of monitoring of tools based on Nagios
Method includes the following steps:
Step S202 monitors the operating status of at least one equipment;
Step S204 sets abnormal priority;
Whether step S206 judges the operating status of at least one equipment in preset operating state, if judging result is
It is, then return to step S202, otherwise then enters step S208;
Step S208 judges whether judging result is that first order exception occurs at least one equipment, if the determination result is YES,
S210 is then entered step, otherwise then enters step S212;
Step S210, control SMS alarm terminal send out SMS alarm to maintenance personnel;
Step S212 judges whether judging result is that second level exception occurs at least one equipment, if the determination result is YES,
S214 is then entered step, otherwise then enters step S216;
Step S214, control SMS alarm terminal send out SMS alarm to maintenance personnel and administrative staff;
Step S216 judges whether judging result is that third level exception occurs at least one equipment, if the determination result is YES,
S218 is then entered step, otherwise then return to step S202;
Step S218, control SMS alarm terminal sends out SMS alarm to maintenance personnel and administrative staff, and controls extremely
Few equipment is out of service.
In this embodiment, different priority can be set respectively for different exceptions, so that in type of alarm
It can be selected and judged according to abnormal priority, as occurred only to alarm if the first order is abnormal to maintenance personnel;Occur second
Alarm is then sent out to maintenance personnel and administrative staff when grade is abnormal, ensures that administrative staff can also recognize network system in time
More serious failure has occurred;And when third level exception occurs, in addition to going out alarm to personnel's outgoing, while it is different also to shut down generation
Normal equipment, to ensure information, system and the safety of equipment.
In one embodiment of the invention, as shown in figure 3, the present invention provides a kind of monitoring of tools based on Nagios
Method includes the following steps:
Step S302 sets preset operating state;
Step S304 monitors the operating status of at least one equipment;
Whether step S306 judges the operating status of at least one equipment in preset operating state;
Step S308, if the operating status of at least one equipment is not in preset operating state, judging result is at least
One unit exception simultaneously sends out SMS alarm according to exception control SMS alarm terminal;
Step S310 records the operating status of at least one equipment;
Step S312, the short message that record SMS alarm terminal is sent out.
In this embodiment, user can adjust according to actual conditions and set preset operating state, so that monitoring work
More meet the actual demand of user;In addition, pass through the operating status of recording equipment and the short message of sent out alarm so that user
Can check at any time equipment history run state and the exception occurred and the alarming short message sent out before, in order to
Investigate and solve abnormal problem in family.
The present invention also provides a kind of equipment monitoring apparatus 4 based on Nagios, as shown in figure 4, for monitoring at least one
A equipment, at least one equipment are connected with SMS alarm terminal, and the equipment monitoring apparatus 4 based on Nagios includes:Monitoring is single
Member 402, for monitoring the operating status of at least one equipment;Alarm unit 404, if for judging the operation of at least one equipment
State is not in preset operating state, then judging result is at least one unit exception, and according to exception control SMS alarm end
End sends out SMS alarm.
Equipment monitoring apparatus 4 provided by the invention based on Nagios, by way of external SMS alarm terminal (including
Short message Modem and GsmSim card) realize transmission short message alarm, this mode is at low cost, it is simple to safeguard, be easy to control, reliably
Property it is strong, facilitate operation personnel realize monitoring and management, so as to avoid because leading to not Normal Alarm during network communication failure
Problem.
In one embodiment of the invention, it is preferable that at least one equipment includes a kind of following or combination:Routing
Device, interchanger, host and remote terminal.
In this embodiment, the equipment that can be monitored includes router, interchanger, host or remote terminal, by monitoring this
A little equipment can understand equipment running status, and related personnel is notified to ensure network system in time when problem occurs in time
Normal operation.Wherein, host and router can be connected with interchanger respectively, and the device for being used to monitor can be with interchanger
It is connected, to realize the monitoring for above equipment, in addition, remote terminal can be connected by internet with router, by
This realizes the connection between each equipment.
In one embodiment of the invention, it is preferable that when at least one equipment includes host, the quantity of host is two
A, including the first host and the second host, the first host includes the first operating system, and the second host includes the second operating system,
Monitoring unit 402 is additionally operable to monitor the operating status of the first host according to the first operating system;Monitoring unit 402 is additionally operable to basis
Second operating system monitors the operating status of the second host.
In this embodiment, the quantity of host is two, including the first host and the second host, while on different hosts
Also different systems is separately operable, can be monitored respectively for different system and host during monitoring, realizes prison
Control function and warning function.For example, the first host is Linux system, and the second host is Windows systems, then Ke Yifen
It is other that above-mentioned host and system are monitored, in practical operation different monitoring journeys can be write respectively for different hosts
Sequence.
In one embodiment of the invention, it is preferable that as shown in figure 4, further including:First setting unit 406, for setting
Abnormal priority is put, it is abnormal to include the abnormal first order, second level exception and third level exception;If alarm unit 404 is additionally operable to
For at least one equipment first order exception occurs for judging result, and control SMS alarm terminal sends out SMS alarm to maintenance personnel;
If alarm unit 404 is additionally operable to judging result occurs second level exception at least one equipment, SMS alarm terminal is controlled to dimension
Shield personnel and administrative staff send out SMS alarm;If alarm unit 404 is additionally operable to judging result occurs at least one equipment
Three-level is abnormal, and control SMS alarm terminal sends out SMS alarm, and control at least one set to maintenance personnel and administrative staff
It is standby out of service.
In this embodiment, different priority can be set respectively for different exceptions, so that in type of alarm
It can be selected and judged according to abnormal priority, as occurred only to alarm if the first order is abnormal to maintenance personnel;Occur second
Alarm is then sent out to maintenance personnel and administrative staff when grade is abnormal, ensures that administrative staff can also recognize network system in time
More serious failure has occurred;And when third level exception occurs, in addition to going out alarm to personnel's outgoing, while it is different also to shut down generation
Normal equipment, to ensure information, system and the safety of equipment.
In one embodiment of the invention, it is preferable that as shown in figure 4, further including:Second setting unit 408, for
Preset operating state is set before monitoring the operating status of at least one equipment.
In this embodiment, user can adjust according to actual conditions and set preset operating state, so that monitoring work
More meet the actual demand of user.
In one embodiment of the invention, it is preferable that as shown in figure 4, further including:Recording unit 410, for recording extremely
The operating status of few equipment;Recording unit 410 is additionally operable to the short message that record SMS alarm terminal is sent out.
In this embodiment, pass through the operating status of recording equipment and the short message of sent out alarm so that user can be with
The history run state of equipment and the exception occurred and the alarming short message sent out before are checked at any time, in order to which user arranges
Look into and solve abnormal problem.
The present invention also provides a kind of computer equipment 5, as shown in figure 5, including memory 502, processor 504 and storage
On memory 502 and the computer program that can run on processor 504, processor 504 are realized when performing computer program
Apparatus monitoring method based on Nagios as described above.
Computer equipment 5 provided by the invention is realized when performing computer program by processor 504 and is based on as described above
The apparatus monitoring method of Nagios realizes apparatus monitoring method as described above when performing computer program by processor, realizes
The function of short message alarm is sent by way of external SMS alarm terminal, operation personnel had both been facilitated and has realized monitoring and pipe
Reason, the problem of in turn avoiding leading to not Normal Alarm due to network communication failure.
In one embodiment of the invention, when needing to be monitored equipment and system using Nagios, can pass through
Following steps are realized:
S1:Main controlled node of the deployment equipped with Nagios systems installs Nagios programs, modification Nagios program configuration texts
Part makes the Nagios of Nagios main controlled nodes service normal start and runs.
S2:Nagios Plugins plug-in card programs, the Nagios Plugins plug-in units are installed in Nagios main controlled nodes
Program is responsible for providing various monitoring templates and monitor command, these monitor templates and monitor command defines rule and the side of monitoring
Formula.
S3:Nrpe programs are installed in Nagios main controlled nodes, the Nrpe programs be responsible for obtaining controlled node system and
Service operation state and its variation.
S4:Dispose it is several be controlled node equipped with Nagios, install and change Nrpe and NSClient plug-in card programs configuration text
Part.The Nrpe plug-in card programs are deployed in the controlled node that operating system is Linux, and the NSClient plug-in card programs are deployed in
Operating system is the controlled node of Windows.Nrpe and NSClient plug-in card programs are responsible for monitoring collection local system and service
Operating status.
S5:Short message sending program, the short message sending program and Nagios Plugins are installed in Nagios main controlled nodes
Plug-in card program establishes linkage trigger mechanism, and Nagios Plugins plug-in card programs is allow to trigger rule invocation short message according to setting
Send program.
S6:Server serial communication program is installed in Nagios main controlled nodes, serial communication program can pass through server
Serial ports controls short message sending terminal.
S7:A Sms Log Sever program is disposed in Nagios main controlled nodes, the Sms Log Sever programs are born
Duty records the information record that all Nagios call short message program to send short message.
S8:A short message sending terminal is disposed, this short message sending terminal can be sent out by the short message in Nagios main controlled nodes
Program is sent, including a short message Modem and a GSM Card, GSM Card to be installed by server serial ports routine call
It is connect in short message Modem, and by short message Modem with the serial ports of Nagios main controlled node servers.
In this embodiment, by above-mentioned setting method, realize Nagios by monitoring, acquiring, store router, friendship
It changes planes, Linux hosts, Windows hosts, the various systems of remote terminal and the status information of service, and these states is believed
The anomalous variation of breath notifies user in a manner of sending short message, and user is allow to understand correlation circumstance in real time, makes in time corresponding
Processing.
In one embodiment of the invention, when needing to be monitored equipment and system using Nagios, can pass through
Following steps are realized:
S1:The main controlled node of a Nagios system is disposed, Nagios main programs are installed, program configuration file is changed, opens
Dynamic Nagios main programs.(example operation is:Compiling installation Nagios-3.2.0.tar.gz, changes configuration file
Nagios.cfg, cgi.cfg, command.cfg, hosts.cfg, contacts.cfg, services.cfg)
S2:Nagios Plugins plug-in card programs, Nagios Plugins plug-in card programs are installed in Nagios main controlled nodes
It is responsible for providing various monitoring templates and monitor command, these monitor templates and monitor command defines the rule and mode of monitoring.
(example operation is:Compiling installation nagios-plugins-1.4.16.tar.gz)
S3:NRPE programs are installed in Nagios main controlled nodes, NRPE programs are responsible for obtaining system and the service of controlled node
Operating status and its variation.(example operation is:Compiling installation nrpe-2.12.tar.gz)
S4:Main controlled node starts Nagios services, and (example operation is:Nagios start)
S5:The host that node is LINUX operating systems being controlled in Nagios, NRPE programs being installed, NRPE plug-in card programs are responsible for
Monitoring collection local system and the operating status of service.(example operation is:Compiling installation nrpe-2.12.tar.gz, modification
NRPE configuration file nrpe.cfg start nrpe services)
S6:The host that node is Windows operating system is controlled in Nagios, and NSClient++ programs, NSClient are installed
++ plug-in card program is responsible for monitoring collection Windows systems and the operating status of service.(example operation is:NSClinet++ is installed
1.3.5, NSClinet configuration files are changed, start NSClinet services)
S7:Short message sending program, short message sending program and Nagios Plugins plug-in units are installed in Nagios main controlled nodes
Program establishes linkage trigger mechanism, and Nagios Plugins plug-in card programs is allow to trigger rule invocation short message sending according to setting
Program.(example operation is:Compiling installation Gnokii-3.5.7.tar.gz, changes configuration file gnokiirc, changes nagios
Configuration file command.cfg, addition gnokii command code)
S8:Server serial communication program is installed in Nagios main controlled nodes, serial communication program can pass through server
Serial ports controls short message sending terminal.(example operation is:Compiling installation mincom-1.3.4.tar.gz, runs mincom-s, presses
It is configured according to pop-up interface)
S9:A Sms Log Sever program is disposed in Nagios main controlled nodes, Sms Log Sever programs are responsible for note
All Nagios are recorded, short message program is called to send the information record of short message.Compiling installation log-3.8.1.tar.gz, modification configuration
File smsalrt.log.
S10:A short message sending terminal is disposed, this short message sending terminal can be sent out by the short message in Nagios main controlled nodes
Program is sent, including a short message Modem and a GSM Card, GSM Card to be installed by server serial ports routine call
It is connect in short message Modem, and by short message Modem with the serial ports of Nagios main controlled node servers.
In this embodiment, by above-mentioned implementing procedure, simplify the responsible degree of system maintenance work, to maintenance personnel with
Carry out very big facility, ensure that the safety of equipment and system.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, computer program
The apparatus monitoring method based on Nagios as described above is realized when being executed by processor.
Computer readable storage medium provided by the invention, by being realized as above when computer program is executed by processor
The apparatus monitoring method based on Nagios stated, by realizing Supervision as described above when computer program is executed by processor
Prosecutor method realizes the function that short message alarm is sent by way of external SMS alarm terminal, has both facilitated operation personnel's reality
It now monitors and manages, the problem of in turn avoiding leading to not Normal Alarm due to network communication failure.
In the present invention, term " multiple " then refers to two or more, unless otherwise restricted clearly.Term " peace
The terms such as dress ", " connected ", " connection ", " fixation " should all be interpreted broadly, for example, " connection " can be fixedly connected, it can also
It is to be detachably connected or be integrally connected;" connected " can be directly connected, and can also be indirectly connected by intermediary.It is right
For those of ordinary skill in the art, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
In the description of this specification, the description of term " one embodiment ", " some embodiments ", " specific embodiment " etc.
Mean to combine at least one reality that the particular features, structures, materials, or characteristics that the embodiment or example describe are contained in the present invention
It applies in example or example.In the present specification, schematic expression of the above terms are not necessarily referring to identical embodiment or reality
Example.Moreover, description particular features, structures, materials, or characteristics can in any one or more embodiments or example with
Suitable mode combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, that is made any repaiies
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (12)
1. a kind of apparatus monitoring method based on Nagios, for monitoring at least one equipment, which is characterized in that described at least one
A equipment is connected with SMS alarm terminal, and the apparatus monitoring method based on Nagios includes:
Monitor the operating status of at least one equipment;
If judging, the operating status of at least one equipment is not in preset operating state, and judging result is described at least one
A unit exception, and SMS alarm terminal sends out SMS alarm according to the exception control.
2. the apparatus monitoring method according to claim 1 based on Nagios, which is characterized in that at least one equipment
Including a kind of following or combination:
Router, interchanger, host and remote terminal.
3. the apparatus monitoring method according to claim 2 based on Nagios, which is characterized in that at least one set when described
During for including host, the quantity of the host is two, and including the first host and the second host, first host includes first
Operating system, second host include the second operating system, and the apparatus monitoring method based on Nagios further includes:
The operating status of first host is monitored according to first operating system;
The operating status of second host is monitored according to second operating system.
4. the apparatus monitoring method according to any one of claim 1 to 3 based on Nagios, which is characterized in that also wrap
It includes:
The abnormal priority is set, and it is abnormal that the exception includes the abnormal first order, second level exception and the third level;
If at least one equipment first order exception occurs for judging result, the SMS alarm terminal is controlled to maintenance personnel
Send out SMS alarm;
If at least one equipment second level exception occurs for judging result, the SMS alarm terminal is controlled to maintenance personnel
SMS alarm is sent out with administrative staff;
If at least one equipment third level exception occurs for judging result, the SMS alarm terminal is controlled to maintenance personnel
SMS alarm is sent out with administrative staff, and controls at least one equipment out of service.
5. the apparatus monitoring method according to any one of claim 1 to 3 based on Nagios, which is characterized in that also wrap
It includes:
Record the operating status of at least one equipment;
Record the short message that the SMS alarm terminal is sent out.
6. a kind of equipment monitoring apparatus based on Nagios, for monitoring at least one equipment, which is characterized in that described at least one
A equipment is connected with SMS alarm terminal, and the equipment monitoring apparatus based on Nagios includes:
Monitoring unit, for monitoring the operating status of at least one equipment;
If alarm unit for judging that the operating status of at least one equipment is not in preset operating state, judges to tie
Fruit is at least one unit exception, and SMS alarm terminal sends out SMS alarm according to the exception control.
7. the equipment monitoring apparatus according to claim 6 based on Nagios, which is characterized in that at least one equipment
Including a kind of following or combination:
Router, interchanger, host and remote terminal.
8. the equipment monitoring apparatus according to claim 7 based on Nagios, which is characterized in that
When at least one equipment includes host, the quantity of the host is two, including the first host and the second host,
First host includes the first operating system, and second host includes the second operating system, and the monitoring unit is additionally operable to
The operating status of first host is monitored according to first operating system;The monitoring unit is additionally operable to according to described second
Operating system monitors the operating status of second host.
9. the equipment monitoring apparatus based on Nagios according to any one of claim 6 to 8, which is characterized in that also wrap
It includes:
First setting unit, for setting the abnormal priority, the exception include that the first order is abnormal, the second level is abnormal and
The third level is abnormal;
If the alarm unit is additionally operable to judging result occurs first order exception at least one equipment, the short message is controlled
Alarm terminal sends out SMS alarm to maintenance personnel;
If the alarm unit is additionally operable to judging result occurs second level exception at least one equipment, the short message is controlled
Alarm terminal sends out SMS alarm to maintenance personnel and administrative staff;
If the alarm unit is additionally operable to judging result occurs third level exception at least one equipment, the short message is controlled
Alarm terminal sends out SMS alarm to maintenance personnel and administrative staff, and controls at least one equipment out of service.
10. the equipment monitoring apparatus based on Nagios according to any one of claim 6 to 8, which is characterized in that also wrap
It includes:
Recording unit, for recording the operating status of at least one equipment;
The recording unit is additionally operable to record the short message that the SMS alarm terminal is sent out.
11. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when performing the computer program
Any one of described in the apparatus monitoring method based on Nagios.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The apparatus monitoring method based on Nagios as described in any one of claim 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710936964.0A CN108243061A (en) | 2017-10-10 | 2017-10-10 | Apparatus monitoring method, device and computer equipment based on Nagios |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710936964.0A CN108243061A (en) | 2017-10-10 | 2017-10-10 | Apparatus monitoring method, device and computer equipment based on Nagios |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108243061A true CN108243061A (en) | 2018-07-03 |
Family
ID=62700657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710936964.0A Pending CN108243061A (en) | 2017-10-10 | 2017-10-10 | Apparatus monitoring method, device and computer equipment based on Nagios |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108243061A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714230A (en) * | 2018-12-29 | 2019-05-03 | 北京世纪互联宽带数据中心有限公司 | A kind of flux monitoring method, device and calculate equipment |
CN111093221A (en) * | 2020-03-25 | 2020-05-01 | 绿漫科技有限公司 | Wireless network monitoring system based on centralized network |
US11329863B1 (en) * | 2021-10-18 | 2022-05-10 | Amdocs Development Limited | System, method, and computer program for dynamic prioritization of monitoring system related alerts |
CN114826954A (en) * | 2021-06-30 | 2022-07-29 | 长城汽车股份有限公司 | Vehicle-mounted Ethernet monitoring system and monitoring method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013164302A1 (en) * | 2012-05-01 | 2013-11-07 | Fujitsu Technology Solutions Intellectual Property Gmbh | Monitoring methods and systems for data centers |
CN104243216A (en) * | 2014-09-28 | 2014-12-24 | 北京国双科技有限公司 | Maintenance method and device of cluster server |
CN104468224A (en) * | 2014-12-18 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Double-filtering fault warning method for data center monitoring system |
CN106533792A (en) * | 2016-12-12 | 2017-03-22 | 北京锐安科技有限公司 | Method and device for monitoring and configuring resources |
-
2017
- 2017-10-10 CN CN201710936964.0A patent/CN108243061A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013164302A1 (en) * | 2012-05-01 | 2013-11-07 | Fujitsu Technology Solutions Intellectual Property Gmbh | Monitoring methods and systems for data centers |
CN104243216A (en) * | 2014-09-28 | 2014-12-24 | 北京国双科技有限公司 | Maintenance method and device of cluster server |
CN104468224A (en) * | 2014-12-18 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Double-filtering fault warning method for data center monitoring system |
CN106533792A (en) * | 2016-12-12 | 2017-03-22 | 北京锐安科技有限公司 | Method and device for monitoring and configuring resources |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714230A (en) * | 2018-12-29 | 2019-05-03 | 北京世纪互联宽带数据中心有限公司 | A kind of flux monitoring method, device and calculate equipment |
CN111093221A (en) * | 2020-03-25 | 2020-05-01 | 绿漫科技有限公司 | Wireless network monitoring system based on centralized network |
CN114826954A (en) * | 2021-06-30 | 2022-07-29 | 长城汽车股份有限公司 | Vehicle-mounted Ethernet monitoring system and monitoring method |
US11329863B1 (en) * | 2021-10-18 | 2022-05-10 | Amdocs Development Limited | System, method, and computer program for dynamic prioritization of monitoring system related alerts |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108243061A (en) | Apparatus monitoring method, device and computer equipment based on Nagios | |
CN101227329B (en) | System, apparatus and method for managing network device | |
CN109582545A (en) | A kind of IT operation management system and method based on intelligent mobile terminal | |
US7586956B1 (en) | Intelligent event notification processing and delivery at a network switch | |
CN107947998B (en) | Real-time monitoring system based on application system | |
CN107888455A (en) | A kind of data detection method, device and system | |
CN113507691B (en) | Information pushing system and method based on power distribution network cross-region service | |
JP4055765B2 (en) | Network monitoring method and system | |
MXPA04006830A (en) | Remote sensing of power supply states. | |
CN108845916A (en) | Platform monitoring and alarm method, device, equipment and computer readable storage medium | |
CN105553743A (en) | Log obtaining method, system, first network device and third network device | |
CN113411209A (en) | Distributed password service full-link detection system and method | |
CN102195824B (en) | Method, device and system for out-of-service alarm of data service system | |
CN111181763A (en) | Network fault reporting method and device | |
CN102833115B (en) | A kind of alert processing method of port and system | |
JP2011145861A (en) | Disaster time automatic switching system and method for processing the same | |
JP2014164628A (en) | Information processing device, information processing method, information processing program, integrated monitoring server and monitoring system | |
KR0173380B1 (en) | Performance Management Method in Distributed Access Node System | |
CN113824595A (en) | Link switching control method and device and gateway equipment | |
JP5177014B2 (en) | Reliability determination system and method for redundant communication line | |
CN102377595A (en) | Fault warning method, system and device | |
CN102843258B (en) | Business operation fault determination method and business operation fault determination device | |
JP3019789B2 (en) | Monitoring device | |
JPWO2011114834A1 (en) | Network device and network device | |
KR100852192B1 (en) | Network management apparatus and method thereof, and recoing medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180703 |