Giter Club home page Giter Club logo

listen's Introduction

LISTEN : LInux Server moniTor by rEcordiNg running status


Overview

This library implements a python script that automatically monitors the running status of a group of linux servers. Current adapted recording data includes:

  • CPU utilization
  • RAM
  • Storage memory
  • GPU utilization (only when nvidia-smi is available)
  • GPU memory (only when nvidia-smi is available)

There are several key fetures of LISTEN system:

  • Dynamic: during the monitoring process, both the linux servers being monitored and the data to be recorded could be dynamically added by editting the configuration files.
  • Autonomy: apart from embedded data to be recorded (i.e., CPU utilization), you can customize any data you want to record.

How to monitor

Install dependencies:

pip install requirements.txt

Configure linux server to be monitored in ./config/monitor_config.json, here is an example:

{
    "192.168.1.1":{
        "user": "panda"
    },
    "192.168.2.1":{
        "user": "cat",
        "port": 3456
    }
}

If 'port' is not assigned, LISTEN will use default one (22).

Configure ssh login for remote linux server:

ssh-copy-id [email protected]

Note that all server you want to monitor should be configured passward-free login.

Then you can start monitoring running background:

nohup python monitor.py >> ./log/running.log 2>&1 &

Finally, all monitor data will be automatically recorded into tensorboard, which can be accessed by:

tensorboard ./log --port 5555

and check them in the browser:

localhost:5555

Here is an example for successful monitoring: monitor


More feature to be explored:

LISTEN supports different levels of printing logs, which can be included by input '--verbose' when running python script. See ./utils/argsparser.py for more information.

listen's People

Contributors

lafmdp avatar

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.