CN115022168B - Unified monitoring method based on zabbix and related equipment - Google Patents
Unified monitoring method based on zabbix and related equipment Download PDFInfo
- Publication number
- CN115022168B CN115022168B CN202210771298.0A CN202210771298A CN115022168B CN 115022168 B CN115022168 B CN 115022168B CN 202210771298 A CN202210771298 A CN 202210771298A CN 115022168 B CN115022168 B CN 115022168B
- Authority
- CN
- China
- Prior art keywords
- zabbix
- server
- configuration file
- monitoring
- configuration
- 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.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 165
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000000007 visual effect Effects 0.000 claims abstract description 27
- 238000012806 monitoring device Methods 0.000 claims description 19
- 238000012986 modification Methods 0.000 claims description 11
- 230000004048 modification Effects 0.000 claims description 11
- 238000009434 installation Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 8
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012800 visualization Methods 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/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- 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/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a unified monitoring method and related equipment based on zabbix, wherein the unified monitoring method based on zabbix comprises the following steps: installing zabbixagent client service on a server host; modifying preset configuration in a configuration file corresponding to the zabbixagent client service to obtain a first configuration file; starting zabbixagent client service by using systemctl, and loading the first configuration file; based on the first configuration file, adding the server host to a zabbixserver monitoring end by using a visual web page; and linking the server host to a monitoring template corresponding to the zabbixserver monitoring end. The invention can realize unified monitoring, thereby reducing operation and maintenance monitoring maintenance cost, and is suitable for the situation that a plurality of sets of zabbix monitoring systems are not required to be deployed when the internal network of each machine room is not enabled.
Description
Technical Field
The invention relates to the technical field of internet network management systems, in particular to a unified monitoring method based on zabbix and related equipment.
Background
With the rapid development of the internet, the scale of servers and network devices is larger and larger, and the increase of projects leads to that a plurality of projects are respectively hosted in different machine rooms. In the traditional architecture, the internal network of different machine rooms is not communicated due to the blocking of the network between the machine rooms. Each machine room needs to install zabbix server service belonging to the intranet, and the consistency of the network is ensured so as to monitor all hosts in the machine room. This places an item on a zabbix monitoring system, which adds additional maintenance burden. Also, a project-a zabbix monitoring system is inconvenient for visualization, and the same may need to be performed once separately.
Disclosure of Invention
The invention mainly aims to provide a unified monitoring method based on zabbix and related equipment, and aims to solve the technical problem that networks among various machine rooms cannot be communicated due to isolation among intranet networks in the prior art, so that multiple sets of zabbix monitoring systems are required to be deployed in the intranets corresponding to the machine rooms.
In a first aspect, the present invention provides a zabbix-based unified monitoring method, where the zabbix-based unified monitoring method includes the following steps:
installing zabbix agent client service on a server host;
modifying preset configuration in a corresponding configuration file of the zabbix agent client service to obtain a first configuration file;
starting a zabbix agent client service by using a systemctl, and loading the first configuration file;
based on the first configuration file, adding the server host to a zabbix server monitoring end by using a visual web page;
and linking the server host to a monitoring template corresponding to the zabbix server monitoring end.
Optionally, before the step of obtaining the first configuration file, modifying the preset configuration in the corresponding configuration file of the zabbix agent client service further includes:
and opening 10051 ports corresponding to the external network IP of the zabbix server monitoring end.
Optionally, the step of obtaining the first configuration file includes:
modifying the ServerActive configuration in the corresponding configuration file of the zabbix agent client service into the external network IP of the zabbix server monitoring end;
modifying the Hostname configuration in the zabbix agent client service corresponding configuration file into a server host name;
and taking the configuration file modified by the Serveractive configuration and the Hostname configuration as a first configuration file.
Optionally, the step of adding the server host to the zabbix server monitor using the visualized web page based on the first configuration file includes:
determining whether to allow the server host to be added to a zabbix server monitoring end based on the ServerActive configuration in the first configuration file;
if the fact that the server host is allowed to add the zabbix server monitoring end is determined, hostname configuration and intranet IP of a corresponding zabbix agent client in the first configuration file are obtained;
modifying the added server host name to be consistent with the Hostname configuration content by using a visual web page;
and modifying the IP of the zabbix agent client corresponding to the added server host into the intranet IP.
Optionally, the step of linking the server host to the monitoring template corresponding to the zabbix server monitoring end includes:
all monitoring items on a monitoring template corresponding to a zabbix server monitoring end in the visual web page are modified into an active mode;
and linking the server host to the modified monitoring template in the active mode.
In a second aspect, the present invention further provides a zabbix-based unified monitoring device, where the zabbix-based unified monitoring device includes:
the installation module is used for installing zabbix agent client service on the server host;
the modification module is used for modifying preset configuration in the corresponding configuration file of the zabbix agent client service to obtain a first configuration file;
the starting module is used for starting zabbix agent client service by using the systemctl and loading the first configuration file;
the adding module is used for adding the server host to a zabbix server monitoring end by using a visual web page based on the first configuration file;
and the link module is used for linking the server host to the monitoring template corresponding to the zabbix server monitoring end.
Optionally, the zabbix-based unified monitoring device further includes an open module, configured to:
and opening 10051 ports corresponding to the external network IP of the zabbix server monitoring end.
Optionally, the modification module is specifically configured to:
modifying the ServerActive configuration in the corresponding configuration file of the zabbix agent client service into the external network IP of the zabbix server monitoring end;
modifying the Hostname configuration in the zabbix agent client service corresponding configuration file into a server host name;
and taking the configuration file modified by the Serveractive configuration and the Hostname configuration as a first configuration file.
Optionally, the adding module is specifically configured to:
determining whether to allow the server host to be added to a zabbix server monitoring end based on the ServerActive configuration in the first configuration file;
if the fact that the server host is allowed to add the zabbix server monitoring end is determined, hostname configuration and intranet IP of a corresponding zabbix agent client in the first configuration file are obtained;
modifying the added server host name to be consistent with the Hostname configuration content by using a visual web page;
and modifying the IP of the zabbix agent client corresponding to the added server host into the intranet IP.
Optionally, the link module is specifically configured to:
all monitoring items on a monitoring template corresponding to a zabbix server monitoring end in the visual web page are modified into an active mode;
and linking the server host to the modified monitoring template in the active mode.
In a third aspect, the present invention further provides a zabbix-based unified monitoring device, where the zabbix-based unified monitoring device includes a processor, a memory, and a zabbix-based unified monitoring program stored on the memory and executable by the processor, where the zabbix-based unified monitoring program, when executed by the processor, implements the steps of the zabbix-based unified monitoring method as described above.
In a fourth aspect, the present invention further provides a readable storage medium, where a zabbix-based unified monitoring program is stored on the readable storage medium, where the zabbix-based unified monitoring program, when executed by a processor, implements the steps of the zabbix-based unified monitoring method as described above.
The invention provides a unified monitoring method and related equipment based on zabbix, wherein the unified monitoring method based on zabbix comprises the following steps: installing zabbix agent client service on a server host; modifying preset configuration in a corresponding configuration file of the zabbix agent client service to obtain a first configuration file; starting a zabbix agent client service by using a systemctl, and loading the first configuration file; based on the first configuration file, adding the server host to a zabbix server monitoring end by using a visual web page; and linking the server host to a monitoring template corresponding to the zabbix server monitoring end. Compared with the existing multiple zabbix monitoring modes, the method can realize unified monitoring, thereby reducing operation and maintenance monitoring maintenance cost, and being applicable to the situation that multiple zabbix monitoring systems are not required to be deployed when the internal network of each machine room is not enabled. The invention has simple logic, easy realization, simple architecture, good user experience, high feasibility and reliability and wider application range.
Drawings
Fig. 1 is a schematic hardware structure diagram of a zabbix-based unified monitoring device according to an embodiment of the present invention;
FIG. 2 is a flow chart of an embodiment of a unified monitoring method based on zabbix of the present invention;
FIG. 3 is a flowchart illustrating a method for modifying a preset configuration according to an embodiment of the unified monitoring method based on zabbix of the present invention;
FIG. 4 is a schematic flow chart of adding a server host according to an embodiment of the unified monitoring method based on zabbix of the present invention;
FIG. 5 is a flowchart of a link monitor module according to an embodiment of the unified monitoring method based on zabbix of the present invention;
fig. 6 is a schematic diagram of functional modules of an embodiment of the zabbix-based unified monitoring device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a first aspect, an embodiment of the present invention provides a zabbix-based unified monitoring device.
Referring to fig. 1, fig. 1 is a schematic hardware structure diagram of a unified monitoring device based on zabbix according to an embodiment of the present invention. In an embodiment of the present invention, the zabbix-based unified monitoring device may include a processor 1001 (e.g., central processing unit Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM) or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to FIG. 1, an operating system, a network communication module, a user interface module, and a zabbix-based unified monitoring program may be included in memory 1005, which is one type of computer storage medium in FIG. 1. The processor 1001 may call the zabbix-based unified monitoring program stored in the memory 1005, and execute the zabbix-based unified monitoring method provided by the embodiment of the present invention.
In a second aspect, the present invention provides a zabbix-based unified monitoring method.
Referring to fig. 2, fig. 2 is a flow chart of an embodiment of the unified monitoring method based on zabbix according to the present invention.
In an embodiment of the unified monitoring method based on zabbix, the unified monitoring method based on zabbix comprises the following steps:
step S10, installing zabbix agent client service on a server host;
in this embodiment, because unified monitoring is performed based on zabbix, it is first necessary to install zabbix agent client service on the monitored server host. The zabbix agent client may provide a monitoring service, where the monitoring service corresponds to some parameter indexes that need to collect the server host, such as indexes of operating system information (OS), network card information (Network interfaces), process information (Processes), processor information (CPU), and the like.
Step S20, modifying preset configuration in a corresponding configuration file of the zabbix agent client service to obtain a first configuration file;
in this embodiment, after the above-mentioned process of installing the zabbix agent client service on the server host is finished, that is, the zabbix agent client of the server host to be monitored is already installed. In the existing scheme, after the zabbix agent client is installed, the zabbix agent client can correspondingly have a configuration file, and then the server host is added to the zabbix server monitoring end by using a visual web page directly based on the configuration file. In this embodiment, it is required to modify the preset configuration in the corresponding configuration file of the zabbix agent client service to obtain the first configuration file. And then based on the first configuration file, adding the server host to a zabbix server monitoring end by using a visual web page.
In a further embodiment, before the step of obtaining the first configuration file, the step of modifying the preset configuration in the corresponding configuration file of the zabbix agent client service further includes:
and opening 10051 ports corresponding to the external network IP of the zabbix server monitoring end.
In this embodiment, before the step of obtaining the first configuration file, the step of modifying the preset configuration in the configuration file corresponding to the zabbix agent client service further includes: and opening 10051 ports corresponding to the external network IP of the zabbix server monitoring end. The 10051 port corresponding to the external network IP of the zabbix server monitoring end is opened, namely the external network IP of the zabbix server monitoring end is exposed, at the moment, the server hosts in the machine rooms with the non-communication internal networks are connected to the zabbix server monitoring end through the exposed external network IP, so that the problem that the networks among the machine rooms cannot be communicated due to isolation among the internal networks in the existing scheme is solved, and a plurality of sets of zabbix monitoring systems are required to be deployed in the internal networks. When the machine room internal network corresponding to different server hosts is not enabled, the machine room internal network corresponding to different server hosts can be connected to the same set of zabbix server monitoring end, and the purpose of unified monitoring is achieved. Compared with the existing multiple zabbix monitoring modes, the scheme of the embodiment is simple in logic and easy to implement; the architecture is simple, and the user experience is good; the feasibility and the reliability are high, and the application range is wide; meanwhile, the operation and maintenance monitoring and maintaining cost is greatly reduced.
Further, referring to fig. 3, the step of modifying the preset configuration in the corresponding configuration file of the zabbix agent client service to obtain the first configuration file includes:
step S201, modifying the ServerActive configuration in the corresponding configuration file of the zabbix agent client service into the extranet IP of the zabbix server monitoring end;
step S202, modifying Hostname configuration in the zabbix agent client service corresponding configuration file into a server host name;
in step S203, the configuration file modified by the ServerActive configuration and the Hostname configuration is used as the first configuration file.
In this embodiment, specifically, the step of modifying the preset configuration in the configuration file corresponding to the zabbix agent client service to obtain the first configuration file includes: and modifying the ServerActive configuration in the corresponding configuration file of the zabbix agent client service into the external network IP of the zabbix server monitoring end. Because the external network IP of the zabbix server is exposed, that is, any zabbix agent server can be connected to the zabbix server through the exposed external network IP, the process of unified monitoring may be affected by illegal devices, so that the security of network connection cannot be ensured. Therefore, the modification is mainly convenient for the zabbix server monitoring end, and whether the server host is a legal-connectable white list is identified based on the ServerActivity configuration in the configuration file of the zabbix agent server end, so that the security of network connection in the unified monitoring process is ensured.
And modifying the Hostname configuration in the zabbix client service corresponding configuration file into a server host name at the same time of modifying the ServerActive configuration in the zabbix client service corresponding configuration file into the external network IP of the zabbix server monitoring end. Because of unified monitoring, the server host names corresponding to the zabbix agent server end are very likely to be repeated, so that the zabbix server end cannot add the server host needing to be monitored. Therefore, when the server host name corresponding to the abbix agent server does not overlap, the Hostname configuration is modified to the server host name. Meanwhile, in order to avoid the repetition of the names of the server hosts, the Hostname configuration in the corresponding configuration file of the zabbix agent client service can be modified to be inconsistent with the names of the server hosts, so that the zabbix server monitoring end can add the server hosts to be monitored under the condition of ensuring the repetition of the names of the server hosts, and the unified monitoring reliability is ensured.
After the step of modifying the ServerActive configuration in the configuration file corresponding to the zabbix agent client service to the external network IP of the zabbix server monitoring end and modifying the Hostname configuration in the configuration file corresponding to the zabbix agent client service to the server host name, a modified configuration file is obtained, and at this time, the configuration file modified by the ServerActive configuration and the Hostname configuration is used as a first configuration file.
Step S30, starting zabbix agent client service by using the systemctl, and loading the first configuration file;
in this embodiment, after the modification of the preset configuration in the configuration file corresponding to the zabbix agent client service is completed, the configuration file corresponding to the zabbix agent client is changed, so that in order to modify the configuration file after the modification of the preset configuration, that is, the first configuration file obtained by modifying the preset configuration, the configuration file corresponds to the zabbix agent client, and at this time, the zabbix agent client service needs to be started by using a systemctl to reload the configuration file after the modification of the preset configuration, that is, modify the first configuration file obtained by modifying the preset configuration.
Step S40, based on the first configuration file, using a visual web page to add the server host to a zabbix server monitoring end;
in this embodiment, after the zabbix agent client loads the first configuration file, the server host is added to the zabbix server monitoring end by using a visual web page based on the first configuration file. Because the configuration file of the zabbix agent client is changed from the original file into the first configuration file and is loaded, the added server hosts are server hosts which need to be monitored by the zabbix server monitoring end, and the security and reliability of network connection in the unified monitoring process are guaranteed.
Further, referring to fig. 4, the step of adding the server host to the zabbix server monitor using the visualized web page based on the first configuration file includes:
step S401, determining whether to allow the server host to be added to a zabbix server monitoring end based on the ServerActive configuration in the first configuration file;
step S402, if it is determined that the server host is allowed to add a zabbix server monitoring end, hostname configuration and intranet IP of a corresponding zabbix agent client in the first configuration file are obtained;
step S403, using the visual web page, modifying the added server host name to be consistent with the Hostname configuration content;
step S404, modifying the added zabbix agent client IP corresponding to the server host into the intranet IP.
In this embodiment, specifically, the step of adding the server host to the zabbix server monitoring end by using a visual web page based on the first configuration file includes: and determining whether to allow the server host to be added to a zabbix server monitoring end or not based on the ServerActive configuration in the first configuration file. Namely, the servermactive in the first configuration file is configured as an external network IP of the zabbix server monitoring end, and the server host which can be allowed to be added to the external network IP and corresponds to the zabbix server monitoring end is correspondingly arranged.
If the server host is allowed to add the zabbix server monitoring end based on the determination, hostname configuration and intranet IP of the corresponding zabbix agent client in the first configuration file are obtained. The Hostname configuration and intranet IP are corresponding to corresponding information needed to be input by connecting to the zabbix server monitoring end in the visual web page.
After the Hostname configuration and the intranet IP of the corresponding zabbix agent client in the first configuration file are obtained, modifying the added server host name to be consistent with the Hostname configuration content by using a visual web page, and modifying the zabbix agent client IP corresponding to the added server host into the intranet IP. After the modification is completed, the server host which is required to be monitored by the zabbix server monitoring end at the moment is indicated, and the corresponding information is recorded.
And S50, linking the server host to a monitoring template corresponding to the zabbix server monitoring end.
In this embodiment, since the server host to be monitored by the zabbix server monitoring end in the previous step has all the corresponding information already entered, only the server host needs to be linked to the monitoring template corresponding to the zabbix server monitoring end based on the entered information at this time, the monitoring result can be checked based on the visualized web page, that is, the monitoring result of the parameter index corresponding to the server host, such as the monitoring result of the parameter index of the operating system information (OS), the network card information (Network interfaces), the process information (Processes), the processor information (CPU) and the like.
Further, referring to fig. 5, the step of linking the server host to the monitoring template corresponding to the zabbix server includes:
step S501, all monitoring items on a monitoring template corresponding to a zabbix server monitoring end in a visual web page are modified into an active mode;
step S502, linking the server host to the modified monitoring template in the active mode.
In this embodiment, in the zabbix monitoring system, data is reported through the active mode of the zabbix agent client. All monitoring items of the monitoring template need to be set to active mode. Specifically, the step of linking the server host to the monitoring template corresponding to the zabbix server monitoring end includes: all monitoring items on the monitoring templates corresponding to the zabbix server monitoring ends in the visual web pages are modified into an active mode, and the server host is linked to the modified monitoring templates in the active mode.
The embodiment provides a unified monitoring method based on zabbix, which comprises the following steps: installing zabbix agent client service on a server host; modifying preset configuration in a corresponding configuration file of the zabbix agent client service to obtain a first configuration file; starting a zabbix agent client service by using a systemctl, and loading the first configuration file; based on the first configuration file, adding the server host to a zabbix server monitoring end by using a visual web page; and linking the server host to a monitoring template corresponding to the zabbix server monitoring end. Compared with the existing multiple zabbix monitoring modes, the method can realize unified monitoring, thereby reducing operation and maintenance monitoring maintenance cost, and being applicable to the situation that multiple zabbix monitoring systems are not required to be deployed when the internal network of each machine room is not enabled. The invention has simple logic, easy realization, simple architecture, good user experience, high feasibility and reliability and wider application range.
In a third aspect, the embodiment of the invention further provides a unified monitoring device based on zabbix.
Referring to fig. 6, a functional block diagram of an embodiment of a unified monitoring device based on zabbix is shown.
In this embodiment, the zabbix-based unified monitoring device includes:
an installation module 10 for installing zabbix agent client service on a server host;
the modification module 20 is configured to modify a preset configuration in the corresponding configuration file of the zabbix agent client service to obtain a first configuration file;
a startup module 30 for starting up zabbix agent client services using systemctl and loading the first configuration file;
an adding module 40, configured to add the server host to a zabbix server monitor using a visual web page based on the first configuration file;
and the link module 50 is used for linking the server host to the monitoring template corresponding to the zabbix server monitoring end.
Further, in an embodiment, the zabbix-based unified monitoring device further includes an open module, configured to:
and opening 10051 ports corresponding to the external network IP of the zabbix server monitoring end.
Further, in an embodiment, the modification module 20 is specifically configured to:
modifying the ServerActive configuration in the corresponding configuration file of the zabbix agent client service into the external network IP of the zabbix server monitoring end;
modifying the Hostname configuration in the zabbix agent client service corresponding configuration file into a server host name;
and taking the configuration file modified by the Serveractive configuration and the Hostname configuration as a first configuration file.
Further, in an embodiment, the adding module 40 is specifically configured to:
determining whether to allow the server host to be added to a zabbix server monitoring end based on the ServerActive configuration in the first configuration file;
if the fact that the server host is allowed to add the zabbix server monitoring end is determined, hostname configuration and intranet IP of a corresponding zabbix agent client in the first configuration file are obtained;
modifying the added server host name to be consistent with the Hostname configuration content by using a visual web page;
and modifying the IP of the zabbix agent client corresponding to the added server host into the intranet IP.
Further, in an embodiment, the linking module 50 is specifically configured to:
all monitoring items on a monitoring template corresponding to a zabbix server monitoring end in the visual web page are modified into an active mode;
and linking the server host to the modified monitoring template in the active mode.
The function implementation of each module in the unified monitoring device based on zabbix corresponds to each step in the unified monitoring method embodiment based on zabbix, and the functions and implementation processes of the module are not described in detail herein.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium.
The invention stores a unified monitoring program based on zabbix on a readable storage medium, wherein when the unified monitoring program based on zabbix is executed by a processor, the steps of the unified monitoring method based on zabbix are realized.
The method implemented when the unified monitoring program based on zabbix is executed may refer to various embodiments of the unified monitoring method based on zabbix of the present invention, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (8)
1. The unified monitoring method based on zabbix is characterized by comprising the following steps of:
installing zabbix agent client service on a server host;
the method specifically comprises the steps of: modifying the ServerActive configuration in the corresponding configuration file of the zabbix agent client service into the external network IP of the zabbix server monitoring end; modifying the Hostname configuration in the zabbix agent client service corresponding configuration file into a server host name; taking the configuration file modified by the Serveractive configuration and the Hostname configuration as a first configuration file;
starting a zabbix agent client service by using a systemctl, and loading the first configuration file;
based on the first configuration file, adding the server host to a zabbix server monitoring end by using a visual web page;
and linking the server host to a monitoring template corresponding to the zabbix server monitoring end.
2. The zabbix-based unified monitoring method as claimed in claim 1, wherein before the step of modifying the preset configuration in the corresponding configuration file of the zabbix agent client service, the step of obtaining the first configuration file further comprises:
and opening 10051 ports corresponding to the external network IP of the zabbix server monitoring end.
3. The zabbix-based unified monitoring method as claimed in claim 1, wherein the step of adding the server host to a zabbix server monitor using a visual web page based on the first configuration file includes:
determining whether to allow the server host to be added to a zabbix server monitoring end based on the ServerActive configuration in the first configuration file;
if the fact that the server host is allowed to add the zabbix server monitoring end is determined, hostname configuration and intranet IP of a corresponding zabbix agent client in the first configuration file are obtained;
modifying the added server host name to be consistent with the Hostname configuration content by using a visual web page;
and modifying the IP of the zabbix agent client corresponding to the added server into the intranet IP.
4. The unified monitoring method based on zabbix as claimed in claim 1, wherein the step of linking the server host to a monitoring template corresponding to a zabbix server comprises:
all monitoring items on a monitoring template corresponding to a zabbix server monitoring end in the visual web page are modified into an active mode;
and linking the server host to the modified monitoring template in the active mode.
5. Unified monitoring device based on zabbix, its characterized in that, unified monitoring device based on zabbix includes:
the installation module is used for installing zabbix agent client service on the server host;
the modification module is used for modifying preset configuration in the corresponding configuration file of the zabbix agent client service to obtain a first configuration file; the modification module is specifically configured to: modifying the ServerActive configuration in the corresponding configuration file of the zabbix agent client service into the external network IP of the zabbix server monitoring end; modifying the Hostname configuration in the zabbix agent client service corresponding configuration file into a server host name; taking the configuration file modified by the Serveractive configuration and the Hostname configuration as a first configuration file;
the starting module is used for starting zabbix agent client service by using the systemctl and loading the first configuration file;
the adding module is used for adding the server host to a zabbix server monitoring end by using a visual web page based on the first configuration file;
and the link module is used for linking the server host to the monitoring template corresponding to the zabbix server monitoring end.
6. The zabbix-based unified monitoring device of claim 5, further comprising an open module for:
and opening 10051 ports corresponding to the external network IP of the zabbix server monitoring end.
7. Zabbix-based unified monitoring device, characterized in that it comprises a processor, a memory, and a zabbix-based unified monitoring program stored on the memory and executable by the processor, wherein the zabbix-based unified monitoring program, when executed by the processor, implements the steps of the zabbix-based unified monitoring method according to any one of claims 1 to 4.
8. A readable storage medium, wherein a zabbix-based unified monitoring program is stored on the readable storage medium, wherein the zabbix-based unified monitoring program, when executed by a processor, implements the steps of the zabbix-based unified monitoring method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210771298.0A CN115022168B (en) | 2022-06-30 | 2022-06-30 | Unified monitoring method based on zabbix and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210771298.0A CN115022168B (en) | 2022-06-30 | 2022-06-30 | Unified monitoring method based on zabbix and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115022168A CN115022168A (en) | 2022-09-06 |
CN115022168B true CN115022168B (en) | 2024-03-19 |
Family
ID=83078782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210771298.0A Active CN115022168B (en) | 2022-06-30 | 2022-06-30 | Unified monitoring method based on zabbix and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115022168B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107659453A (en) * | 2017-10-13 | 2018-02-02 | 千寻位置网络有限公司 | The method that a large amount of TCP serve ports are monitored by zabbix |
CN108429646A (en) * | 2018-03-07 | 2018-08-21 | 广州西麦科技股份有限公司 | A kind of method and device of optimization Ipsec VPN |
CN109951312A (en) * | 2017-12-20 | 2019-06-28 | 双子星云端运算股份有限公司 | Cloud service management method |
CN110048888A (en) * | 2019-04-16 | 2019-07-23 | 深圳市致宸信息科技有限公司 | A kind of method based on zabbix monitoring alarm, server, equipment and storage medium |
CN111885174A (en) * | 2020-07-27 | 2020-11-03 | 佛山市霖罕崞信息科技有限公司 | Method and system for processing nodes of different network segments |
CN112395172A (en) * | 2020-11-20 | 2021-02-23 | 城云科技(中国)有限公司 | Visual display method based on application software automation monitoring data |
CN112685260A (en) * | 2021-01-04 | 2021-04-20 | 浪潮云信息技术股份公司 | Method for monitoring server |
-
2022
- 2022-06-30 CN CN202210771298.0A patent/CN115022168B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107659453A (en) * | 2017-10-13 | 2018-02-02 | 千寻位置网络有限公司 | The method that a large amount of TCP serve ports are monitored by zabbix |
CN109951312A (en) * | 2017-12-20 | 2019-06-28 | 双子星云端运算股份有限公司 | Cloud service management method |
CN108429646A (en) * | 2018-03-07 | 2018-08-21 | 广州西麦科技股份有限公司 | A kind of method and device of optimization Ipsec VPN |
CN110048888A (en) * | 2019-04-16 | 2019-07-23 | 深圳市致宸信息科技有限公司 | A kind of method based on zabbix monitoring alarm, server, equipment and storage medium |
CN111885174A (en) * | 2020-07-27 | 2020-11-03 | 佛山市霖罕崞信息科技有限公司 | Method and system for processing nodes of different network segments |
CN112395172A (en) * | 2020-11-20 | 2021-02-23 | 城云科技(中国)有限公司 | Visual display method based on application software automation monitoring data |
CN112685260A (en) * | 2021-01-04 | 2021-04-20 | 浪潮云信息技术股份公司 | Method for monitoring server |
Also Published As
Publication number | Publication date |
---|---|
CN115022168A (en) | 2022-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111431740B (en) | Data transmission method, device, equipment and computer readable storage medium | |
US20120331388A1 (en) | Discovering, defining, and implementing computer application topologies | |
US20180039390A1 (en) | Standard commands for native commands | |
CN101877696B (en) | Equipment and method for reconfiguring false response messages under network application environment | |
EP2284757A1 (en) | Security vulnerability information aggregation | |
US20070156860A1 (en) | Implementing computer application topologies on virtual machines | |
WO2022242023A1 (en) | Resource acquisition method and system, webvpn proxy server and server | |
JP5903822B2 (en) | Setting control apparatus, setting control method, and setting control program | |
US20070294560A1 (en) | Support self-heal tool | |
CN110083338B (en) | Service system based on intelligent gateway | |
US20240146758A1 (en) | Detection of vulnerabilities in a computer network | |
CN110119350B (en) | Software development kit testing method, device and equipment and computer storage medium | |
CN111090452A (en) | Service environment switching method and computer-readable storage medium | |
CN107395747B (en) | High-expansion method based on STF platform | |
CN114168179B (en) | Micro-service management method, micro-service management device, computer equipment and storage medium | |
CN112527397A (en) | Method and device for modifying basic input output system options and computer equipment | |
CN111061448A (en) | Log information display method and device, electronic equipment and storage medium | |
CN113904926A (en) | Pre-boot execution environment checking method, system, terminal and storage medium | |
CN112115103B (en) | File address display method and device, electronic equipment and readable storage medium | |
CN116827604B (en) | Application login control method, system, terminal and storage medium | |
CN115022168B (en) | Unified monitoring method based on zabbix and related equipment | |
CN114915565B (en) | Network debugging method and system | |
CN109492144B (en) | Association relation analysis method, device and storage medium for software system | |
CN113726855B (en) | Service aggregation method, device, electronic equipment and computer-readable storage medium | |
CN111045928A (en) | Interface data testing method, device, terminal and storage 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |