Shell Programming Combat 1.1 Introduction to the framework of monitoring ideas

Source: Internet
Author: User

Monitoring ideas, Architecture introduction

Requirements: Use the shell to customize a variety of personalized alarm tools, but the need for unified management, standardized management.

Idea: Specify a script package that contains the main program, subroutine, configuration file, mail engine, output log, and so on.

Main program: As a script entrance, is the lifeblood of the entire system.

Profile: is a control center used to switch individual subroutines, specifying each associated log file.

Subroutine: This is the real monitoring script, used to monitor each indicator. Definition can

Mail Engine: It is implemented by a PHP program, it can define the server that sends the mail, send the mail person and receive the mail person.

Output log: The entire monitoring system should have a log output.

Requirements: We have a variety of machines, but all the machines have to deploy the same monitoring system, that is, the role of the machine, no matter what role, the entire system framework is consistent, different places according to different customization of different configuration files.

Program Architecture:

Home Directory (Mon)

Next Level directory: Bin (main program Ah, main.sh) Conf (profile mon.conf) shares (various monitoring scripts load.sh 502.sh) mail (mail engine mail.php mail.sh) log (log Mon.log Err.log)

Create each directory according to the directory structure above

cd/usr/local/sbinmkdir moncd monmkdir bin conf shares mail log

Shell Programming Combat 1.1 Introduction to the framework of monitoring ideas

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.