GithubHelp home page GithubHelp logo

normalcheck's Introduction

  1. 检查列表主配置文件: config
    • example: CheckDirs="basic frontend cloud"
    • 定制这个变量可以指定不同环境的检测脚本,只执行这个变量指定的目录下的检查脚本
  2. 新增一个检查项:
    • a.修改主config文件,指定需要运行脚本的目录
    • b.在对应目录下新增检查脚本,输出格式为:
      • ==Check_Item_Name: [0|1|...] # 检查项的名称
      • Msg: "something" # 一些关于检查项的输出
    • c.修改检查目录下的config文件,修改BasicScripts变量,加入脚本名 example:
        BasicScripts=" \
                $checkdir/shell/check-disk.sh   \
                $checkdir/shell/check-raid.sh   \
                $checkdir/shell/common.sh       \
                "
    
  3. 执行检查:
    • su - root
    • bash checklist

normalcheck's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.