A method and tool for real-time monitoring of artifactory system configuration changes

CN111984502BActive Publication Date: 2025-02-14INSPUR QILU SOFTWARE IND
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010816670.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-14
Publication Date
2025-02-14
Estimated Expiration
2040-08-14

AI Technical Summary

Technical Problem

[0003]本发明针对目前技术发展的需求和不足之处,提供一种实时监控artifactory系统配置变化的方法及工具,来迅速定位artifactory系统问题错误的原因并进行解决

Benefits of technology

[0026]本发明能够让artifactory的管理人员清楚的知道系统的实时配置变化,对于系统的问题查找和错误解决进行迅速定位,减少工作量,提高工作效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111984502B_ABST
    Figure CN111984502B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for real-time monitoring of changes in the configuration of an artifactory system, and relates to the technical field of system monitoring. The method includes the following steps: the artifactory.config.latest.xml file needs to be monitored in real time, and the system configuration is judged to be changed by comparing the initial content and the real-time content of the artifactory.config.latest.xml file to see if there is a difference. When the system configuration changes, the existing difference is output, the initial content of the artifactory.config.latest.xml file is updated, and monitoring is continued. The present invention also discloses a tool for real-time monitoring of changes in the configuration of an artifactory system, which includes a real-time monitoring module deployed on an artifactory server, a file comparison module and a processing update module deployed under the real-time monitoring module, and is used to implement the above method. The present invention enables the administrators of the artifactory to clearly know the real-time configuration changes of the system, and quickly locate the problem finding and error resolution of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of system monitoring, and in particular to a method and a tool for real-time monitoring of configuration changes of an artifactory system. Background Art

[0002] At present, the system monitoring of artifactory is mainly carried out by monitoring and analyzing the logs on the server, screening and monitoring the systemlog of the server, analyzing some problems that the system may encounter and issuing alarms. However, this method only monitors the systemlog and cannot know more detailed information about system changes. At present, due to the large number of users in the system, there will inevitably be too many people who have the authority to change the system configuration in the authority allocation. However, due to lack of familiarity with the system and misoperation, the system configuration may be modified and the system may have errors and other problems. The administrator cannot know the system changes in real time, and it will be time-consuming and laborious to fix the system errors afterwards. Summary of the invention

[0003] In view of the needs and shortcomings of current technological development, the present invention provides a method and tool for real-time monitoring of artifactory system configuration changes to quickly locate the cause of artifactory system errors and solve them.

[0004] First, the present invention provides a method for real-time monitoring of artifactory system configuration changes. The technical solution adopted to solve the above technical problems is as follows:

[0005] A method for real-time monitoring of artifactory system configuration changes requires real-time monitoring of an artifactory.config.latest.xml file, and determines whether the system configuration has changed by comparing the initial content and the real-time content of the artifactory.config.latest.xml file. When the system configuration has changed, the difference is output, the initial content of the artifactory.config.latest.xml file is updated, and monitoring is continued.

[0006] Furthermore, a method for real-time monitoring of artifactory system configuration changes is provided, and its specific implementation process is as follows:

[0007] Step S10, put the compare.sh file and mail.py file into the artifactory server / root / monit / file.

[0008] Step S20: Back up the $ARTIFACTORY_HOME / etc / artifactory.config.latest.xml file of the artifactory server and generate an initial file compare.xml.

[0009] Step S30, add the mail.py file and compare.sh file to the crontab automatic task,

[0010] Step S40: The compare.sh file monitors the artifactory.config.latest.xml file and the compare.xml file in real time and compares whether there are any differences:

[0011] a) If there is no difference between the two files, it means that the system configuration has not been changed and no action is taken.

[0012] b) If there is a difference between the two files, it means that the system configuration has been changed by someone else. The change result will be output and notified to the administrator. Then the compare.xml file will be updated to latest and monitoring will continue.

[0013] Preferably, the change result is output as a result.xml file and sent to the administrator. The administrator learns the changes in the system configuration through the result.xml file and locates system problems and errors.

[0014] Preferably, the compare.sh file generates a result.xml document with differences after execution. After that, once the mail.py file finds that the result.xml file has new content, it sends a warning email to the administrator and attaches the difference result to the email so that the administrator can see the project changes.

[0015] Secondly, the present invention also provides a tool for real-time monitoring of artifactory system configuration changes. The technical solution adopted to solve the above technical problems is as follows:

[0016] A tool for real-time monitoring of artifactory system configuration changes, which includes a real-time monitoring module deployed on the artifactory server, a file comparison module and a processing update module deployed under the real-time monitoring module,

[0017] The real-time monitoring module is used to monitor the artifactory.config.latest.xml file in real time.

[0018] The file comparison module is used to compare the initial content and the real-time content of the artifactory.config.latest.xml file to see if there is a difference, and if there is a difference, it determines that the system configuration has changed. At the same time, the difference is sent to the processing update module.

[0019] The process update module is used to update the initial content of the artifactory.config.latest.xml file and notify the administrator.

[0020] Furthermore, a tool for real-time monitoring of artifactory system configuration changes also includes a backup module deployed on the artifactory server.

[0021] The backup module is used to back up the $ARTIFACTORY_HOME / etc / artifactory.config.latest.xml file of the artifactory server, and back up the current / artifactory.config.latest.xml file as the initial file compare.xml.

[0022] Furthermore, the processing update module involved is used to update the initial content of the artifactory.config.latest.xml file, and output the difference output by the file comparison module as a result.xml file and send it to the administrator. The administrator learns the changes in the system configuration through the result.xml file and locates system problems and errors.

[0023] Furthermore, a scheduled task one is preset in the file comparison module involved, and the file comparison module compares the initial content and the real-time content of the artifactory.config.latest.xml file according to the scheduled task one.

[0024] Furthermore, a scheduled task 2 is preset in the processing and updating module involved. The processing and updating module updates the initial content of the artifactory.config.latest.xml file according to the scheduled task 2 and notifies the administrator.

[0025] Compared with the prior art, the method and tool of the present invention for real-time monitoring of artifactory system configuration changes have the following beneficial effects:

[0026] The present invention enables the administrator of the artifactory to clearly know the real-time configuration changes of the system, quickly locate the problem finding and error resolution of the system, reduce the workload and improve the work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Attached Figure 1 is a flow chart of a method according to Embodiment 1 of the present invention;

[0028] Attached Figure 2 It is a structural framework diagram of the second embodiment of the present invention.

[0029] The information of each reference number in the accompanying drawings indicates:

[0030] 1. Real-time monitoring module, 2. File comparison module, 3. Processing and updating module,

[0031] 4. Scheduled task 1, 5. Scheduled task 2, 6. Backup module. DETAILED DESCRIPTION

[0032] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.

[0033] Embodiment 1:

[0034] This embodiment proposes a method for real-time monitoring of changes in artifactory system configuration. The method requires real-time monitoring of the artifactory.config.latest.xml file, and determines whether the system configuration has changed by comparing whether there is a difference between the initial content and the real-time content of the artifactory.config.latest.xml file. When the system configuration has changed, the difference is output, the initial content of the artifactory.config.latest.xml file is updated, and monitoring continues.

[0035] Reference Figure 1 , the specific implementation process of this embodiment is:

[0036] Step S10, put the compare.sh file and mail.py file into the artifactory server / root / monit / file.

[0037] Step S20: Back up the $ARTIFACTORY_HOME / etc / artifactory.config.latest.xml file of the artifactory server and generate an initial file compare.xml.

[0038] Step S30, add the mail.py file and compare.sh file to the crontab automatic task,

[0039] Step S40: The compare.sh file monitors the artifactory.config.latest.xml file and the compare.xml file in real time and compares whether there are any differences:

[0040] a) If there is no difference between the two files, it means that the system configuration has not been changed and no action is taken.

[0041] b) If there is a difference between the two files, it means that the system configuration has been changed by others. On the one hand, the change result is output as a result.xml file and sent to the administrator. The administrator can learn about the changes in the system configuration through the result.xml file and locate system problems and errors. On the other hand, the compare.xml file is updated to latest and monitoring continues.

[0042] In the above steps, the content of the compare.sh file is as follows:

[0043]

[0044]

[0045] In this embodiment, the compare.sh file generates a result.xml document with differences after execution. Afterwards, once the mail.py file finds that the result.xml file has new content, it sends a warning email to the administrator and attaches the difference results to the email so that the administrator can see the project changes.

[0046] Embodiment 2:

[0047] Reference Figure 2 This embodiment proposes a tool for real-time monitoring of artifactory system configuration changes, which includes a real-time monitoring module 1 deployed on an artifactory server, a backup module 6 deployed under the real-time monitoring module 1, a file comparison module 2, and a processing update module 3.

[0048] Real-time monitoring module 1 is used to monitor the artifactory.config.latest.xml file in real time.

[0049] Backup module 6 is used to back up the $ARTIFACTORY_HOME / etc / artifactory.config.latest.xml file of the artifactory server, and back up the / artifactory.config.latest.xml file at this time as the initial file compare.xml.

[0050] The file comparison module 2 is used to compare whether there is a difference between the real-time content of the compare.xml file and the artifactory.config.latest.xml file, and determine whether the system configuration has changed when there is a difference. At the same time, the existing difference is sent to the processing update module 3.

[0051] The processing update module 3 is used to update the compare.xml file, and output the differences output by the file comparison module 2 as a result.xml file and send it to the administrator. The administrator learns the changes in the system configuration through the result.xml file and locates system problems and errors.

[0052] In this embodiment, a scheduled task 4 is preset in the file comparison module 2 involved, and the file comparison module 2 compares the initial content and the real-time content of the artifactory.config.latest.xml file according to the scheduled task 4.

[0053] In this embodiment, a scheduled task 2 5 is preset in the processing and updating module 3 involved. The processing and updating module 3 updates the initial content of the artifactory.config.latest.xml file according to the scheduled task 2 5 and notifies the administrator.

[0054] In summary, the method and tool for real-time monitoring of configuration changes of the artifactory system of the present invention can enable the administrators of the artifactory to clearly know the real-time configuration changes of the system, quickly locate system problems and solve errors, and improve work efficiency.

[0055] Based on the above specific embodiments of the present invention, any improvements and modifications made to the present invention by those skilled in the art without departing from the principles of the present invention shall fall within the patent protection scope of the present invention.

Claims

1. A method for real-time monitoring of artifactory system configuration changes, characterized in that: This method requires real-time monitoring of the artifactory.config.latest.xml file, and determines whether the system configuration has changed by comparing the initial content and the real-time content of the artifactory.config.latest.xml file. If the system configuration has changed, the difference is output, the initial content of the artifactory.config.latest.xml file is updated, and monitoring continues. The specific implementation process of this method is as follows: Step S10, put the compare.sh file and mail.py file into the artifactory server / root / monit / file. Step S20: Back up the $ARTIFACTORY_HOME / etc / artifactory.config.latest.xml file of the artifactory server and generate an initial file compare.xml. Step S30, add the mail.py file and compare.sh file to the crontab automatic task, Step S40: The compare.sh file monitors the artifactory.config.latest.xml file and the compare.xml file in real time and compares whether there are any differences: a) If there is no difference between the two files, it means that the system configuration has not been changed and no action is taken. b) If there is a difference between the two files, it means that the system configuration has been changed by someone else. The change result will be output and notified to the administrator. Then the compare.xml file will be updated to latest and monitoring will continue.

2. A method for real-time monitoring of artifactory system configuration changes according to claim 1, characterized in that: The change results are output as a result.xml file and sent to the administrator. The administrator can learn about the changes in system configuration through the result.xml file and locate system problems and errors.

3. A method for real-time monitoring of artifactory system configuration changes according to claim 2, characterized in that: After the compare.sh file is executed, a result.xml document with differences is generated. After that, once the mail.py file finds that the result.xml file has new content, it sends a warning email to the administrator and attaches the difference results to the email so that the administrator can see the project changes.

Citation Information

Patent Citations

  • Method and system for achieving SVN real-time synchronous backup based on inotify and rsync automatic installation and deployment

    CN110120983A