CN104636244A - Server monitoring method using Java, MySQL and Shell - Google Patents

Server monitoring method using Java, MySQL and Shell Download PDF

Info

Publication number
CN104636244A
CN104636244A CN201510097493.XA CN201510097493A CN104636244A CN 104636244 A CN104636244 A CN 104636244A CN 201510097493 A CN201510097493 A CN 201510097493A CN 104636244 A CN104636244 A CN 104636244A
Authority
CN
China
Prior art keywords
data
monitoring
mysql
resource
java
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510097493.XA
Other languages
Chinese (zh)
Inventor
马现珍
刘鹏
邱继钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Group Co Ltd
Original Assignee
Inspur Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201510097493.XA priority Critical patent/CN104636244A/en
Publication of CN104636244A publication Critical patent/CN104636244A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a server monitoring method using Java, MySQL and Shell. The method includes the steps of 1, installing Shell monitor scripts in all servers in machine rooms in various areas, and writing monitoring service and resource data into a MySQL database; 2, storing monitoring data transmitted by the servers and received by the MySQL database, into data tables defined; 3, allowing a Java program to extract corresponding data from the MySQL database in an edited display manner, displaying the data in a web terminal, running data visual scripts in an images catalogue in which the Java program is deployed, to generate a monitoring data resource map of each area; 4, allowing users to browse the monitoring service and resource data and resource monitoring data maps through webs. Compared with the prior art, the method has the advantages that statistical counting and early warning are automated, receiving warning mails and checking out statistical information are required only, work efficiency is greatly improved and labor intensity is reduced for workers.

Description

The server monitoring method that a kind of java+mysql+shell makes
Technical field
The present invention relates to computer data monitoring technique field, specifically the server monitoring method made of a kind of java+mysql+shell.
Background technology
The expansion of corporate business, the increase of platform quantity, the quantity of server also increases thereupon, from before tens become present hundreds of platform platform, if all need every day to patrol and examine platform, require a great deal of time, not only work efficiency is not high, and labour intensity is large.
Shell is commonly called as shell (being used for being different from core), refers to the software (command analysis device) of " providing user to use interface ".It is similar to the command under DOS and cmd.exe afterwards.Its receives user's, then calls corresponding application program.Shell is a kind of programming language.As command language, its interactive mode is explained and is performed the order of user's input or automatically explain and perform pre-set a series of order; As programming language, it define various variable and parameter, and provide many control structures just had in higher level lanquage, comprise circulation and branch.Shell divides two large classes: graphical interfaces shell and order line shell.Traditional shell refers to the shell of order line.
Mysql is a Relational DBMS, is developed, belong to Oracle company at present by MySQL AB company of Sweden.Mysql is most popular Relational DBMS, and in WEB application, mysql is one of best RDBMS (Relational Database Management System: relational database management system) application software.Mysql is a kind of associated data base management system, and linked database saves the data in different tables, instead of all data is placed in a large warehouse, which adds speed and improves dirigibility.The sql like language that mysql uses is the most frequently used standardized language for accessing database.Mysql software have employed two authorization policy, and it is divided into Community Edition and commercial version, and because its volume is little, speed is fast, the total cost of ownership is low, especially this feature of open source code, the exploitation of general middle-size and small-size website all selects mysql as site databases.Because the performance of its Community Edition is remarkable, collocation PHP and Apache can form good development environment.
Java is a kind of object oriented program language can writing cross-platform software.Java technology has remarkable versatility, high efficiency, platform transplantation and security.Java platform is the platform based on Java language.
summary of the invention
Technical assignment of the present invention is to provide the server monitoring method that a kind of java+mysql+shell makes.
Technical assignment of the present invention realizes in the following manner, and this method for supervising step is as follows:
1) Servers-all in the machine room of each department installs shell monitoring script, then the data of monitor service and resource is written to mysql lane database;
2) mysql receives the monitor data that each department server sends, and stores respectively according to the tables of data of definition;
3) java program is according to the display mode editted, and extracts corresponding data from mysql lane database, and in web terminal display, simultaneously in the images catalogue of disposing java program, service data view script, generates the data resource figure of each department monitoring;
4) user can browse the data of monitor service and resource, the monitor data figure of resource by web.
Described monitor service has: the service monitoring of application server and the monitoring resource of application server.
The service monitoring of described application server is the monitoring of web, exchange and engine three aspect.
The monitoring resource of described application server is: hard disk utilization rate, cpu utilization rate, hardware-initiated information errors, i/o utilization rate, the load in 15 minutes, memory usage, daily record error message, active user log in number.
The server monitoring method that a kind of java+mysql+shell of the present invention makes compared to the prior art, programming count, early warning can be carried out, only need receive early warning mail every day and check that statistical information is just passable, substantially increase work efficiency, reduce the labour intensity of workman.
Accompanying drawing explanation
Accompanying drawing 1 is the FB(flow block) of the server monitoring method that a kind of java+mysql+shell makes.
Embodiment
Embodiment 1:
This method for supervising step is as follows:
1) Servers-all in the machine room of each department installs shell monitoring script, then the data of monitor service and resource is written to mysql lane database;
2) mysql receives the monitor data that each department server sends, and stores respectively according to the tables of data of definition;
3) java program is according to the display mode editted, and extracts corresponding data from mysql lane database, and in web terminal display, simultaneously in the images catalogue of disposing java program, service data view script, generates the data resource figure of each department monitoring;
4) user can browse the data of monitor service and resource, the monitor data figure of resource by web.
Embodiment 2:
This method for supervising step is as follows:
1) Servers-all in the machine room of each department installs shell monitoring script, then the data of monitor service and resource is written to mysql lane database;
2) mysql receives the monitor data that each department server sends, and stores respectively according to the tables of data of definition;
3) java program is according to the display mode editted, and extracts corresponding data from mysql lane database, and in web terminal display, simultaneously in the images catalogue of disposing java program, service data view script, generates the data resource figure of each department monitoring;
4) user can browse the data of monitor service and resource, the monitor data figure of resource by web; Monitor service has: the service monitoring of application server and the monitoring resource of application server;
The service monitoring of application server:
Web:http, yu_tomcat, tomcat, weblogic totally 3;
Exchange: pas, ppas, mas, mmas, cas totally 5;
Engine: memcache, datastorageservice, http, dbstatserver totally 4.
The monitoring resource of application server is: hard disk utilization rate, cpu utilization rate, hardware-initiated information errors, i/o utilization rate, the load in 15 minutes, memory usage, daily record error message, active user log in number.
In said method:
Web terminal function
1) asset management is checked;
2) newly added equipment, browsing apparatus;
3) details (hard disk monitoring details, server details, cpu utilization factor, internal memory are only used, load etc.) are monitored;
4) reported to the police the same day, this month reported to the police, reported to the police then.
Shell holds
1) shell of mail reception;
2) internal memory is reported to the police, hard disk is reported to the police, cpu reports to the police;
3) memory usage shell, hard disk utilization factor shell, cpu utilization factor shell etc.
Database side: practical mysql carries out data and stores statistics.
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to above-mentioned several embodiments.On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realizes different technical schemes.

Claims (4)

1. the server monitoring method made of java+mysql+shell, it is characterized in that, this method for supervising step is as follows:
1) Servers-all in the machine room of each department installs shell monitoring script, then the data of monitor service and resource is written to mysql lane database;
2) mysql receives the monitor data that each department server sends, and stores respectively according to the tables of data of definition;
3) java program is according to the display mode editted, and extracts corresponding data from mysql lane database, and in web terminal display, simultaneously in the images catalogue of disposing java program, service data view script, generates the data resource figure of each department monitoring;
4) user can browse the data of monitor service and resource, the monitor data figure of resource by web.
2. the server monitoring method made of a kind of java+mysql+shell according to claim 1, it is characterized in that, described monitor service has: the service monitoring of application server and the monitoring resource of application server.
3. the server monitoring method made of a kind of java+mysql+shell according to claim 2, is characterized in that, the service monitoring of described application server is the monitoring of web, exchange and engine three aspect.
4. the server monitoring method made of a kind of java+mysql+shell according to claim 2, it is characterized in that, the monitoring resource of described application server is: hard disk utilization rate, cpu utilization rate, hardware-initiated information errors, i/o utilization rate, the load in 15 minutes, memory usage, daily record error message, active user log in number.
CN201510097493.XA 2015-03-05 2015-03-05 Server monitoring method using Java, MySQL and Shell Pending CN104636244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510097493.XA CN104636244A (en) 2015-03-05 2015-03-05 Server monitoring method using Java, MySQL and Shell

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510097493.XA CN104636244A (en) 2015-03-05 2015-03-05 Server monitoring method using Java, MySQL and Shell

Publications (1)

Publication Number Publication Date
CN104636244A true CN104636244A (en) 2015-05-20

Family

ID=53215029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510097493.XA Pending CN104636244A (en) 2015-03-05 2015-03-05 Server monitoring method using Java, MySQL and Shell

Country Status (1)

Country Link
CN (1) CN104636244A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068876A (en) * 2015-07-01 2015-11-18 北京博睿宏远科技发展有限公司 Method for acquiring mobile phone APP performance data based on distributed true phones
CN105071969A (en) * 2015-08-19 2015-11-18 焦点科技股份有限公司 JMX (Java Management Extensions)-based customization real-time monitoring and automatic exception handling system and method
CN105119757A (en) * 2015-09-14 2015-12-02 沈文策 Method and system for operation and maintenance automation of enterprise servers
CN105227347A (en) * 2015-08-25 2016-01-06 中国联合网络通信集团有限公司 A kind of general O&M method for supervising and O&M supervisory control system
CN106549828A (en) * 2016-11-02 2017-03-29 合肥微梦软件技术有限公司 It is a kind of to be based on server and network equipment monitoring system in network management system
CN107623745A (en) * 2017-10-12 2018-01-23 郑州市景安网络科技股份有限公司 A kind of monitoring method, system and computer-readable recording medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420869A (en) * 2011-12-02 2012-04-18 浪潮集团有限公司 Security monitoring method for cloud data center
CN102609789A (en) * 2012-02-21 2012-07-25 复旦大学 Information monitoring and abnormality predicting system for library

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102420869A (en) * 2011-12-02 2012-04-18 浪潮集团有限公司 Security monitoring method for cloud data center
CN102609789A (en) * 2012-02-21 2012-07-25 复旦大学 Information monitoring and abnormality predicting system for library

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GSNAS: "《http://blog.sina.com.cnsblog_61c07ac50101adda.html》", 24 December 2012 *
GSNAS: "《http://blog.sina.com.cnsblog_61c07ac50101adyg.html》", 25 December 2012 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068876A (en) * 2015-07-01 2015-11-18 北京博睿宏远科技发展有限公司 Method for acquiring mobile phone APP performance data based on distributed true phones
CN105068876B (en) * 2015-07-01 2017-12-08 北京博睿宏远数据科技股份有限公司 Method based on distributed deployment prototype collection cell phone application performance data
CN105071969A (en) * 2015-08-19 2015-11-18 焦点科技股份有限公司 JMX (Java Management Extensions)-based customization real-time monitoring and automatic exception handling system and method
CN105227347A (en) * 2015-08-25 2016-01-06 中国联合网络通信集团有限公司 A kind of general O&M method for supervising and O&M supervisory control system
CN105119757A (en) * 2015-09-14 2015-12-02 沈文策 Method and system for operation and maintenance automation of enterprise servers
CN106549828A (en) * 2016-11-02 2017-03-29 合肥微梦软件技术有限公司 It is a kind of to be based on server and network equipment monitoring system in network management system
CN107623745A (en) * 2017-10-12 2018-01-23 郑州市景安网络科技股份有限公司 A kind of monitoring method, system and computer-readable recording medium

Similar Documents

Publication Publication Date Title
CN104636244A (en) Server monitoring method using Java, MySQL and Shell
US10515000B2 (en) Systems and methods for performance testing cloud applications from multiple different geographic locations
JP5298117B2 (en) Data merging in distributed computing
US8255899B2 (en) Techniques for upgrade dependency management
US9436734B2 (en) Relative performance prediction of a replacement database management system (DBMS)
US9356966B2 (en) System and method to provide management of test data at various lifecycle stages
CN112632135A (en) Big data platform
US20200167444A1 (en) Systems and methods for software license management
KR20060045965A (en) Integrating best practices into database design
CN112491602A (en) Behavior data monitoring method and device, computer equipment and medium
CN111737227B (en) Data modification method and system
CN105095207A (en) Methods for retrieving and obtaining contents of application software, and devices for retrieving and obtaining contents of application software
CN102209118A (en) Distributed mass data gathering method
US11055289B2 (en) Framework to transfer rows in storage format, standard format, or combination thereof
CN110659259A (en) Database migration method, server and computer storage medium
CN115335821A (en) Offloading statistics collection
CN103064780B (en) A kind of method of software test and device
CN103098048A (en) SQL enumerator
CN111611276A (en) Data query method, device and storage medium
US20180322154A1 (en) Database performance tuning framework
US9256641B1 (en) Dynamic optimization of data aggregation
Xavier et al. Agile ETL
CN113836237A (en) Method and device for auditing data operation of database
CN111177239B (en) Unified log processing method and system based on HDP big data cluster
CN104461832A (en) Method and device for monitoring resources of application server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150520