Giter Club home page Giter Club logo

monitor's Introduction

monitor

Help

shell> python systemInfo.py
usage: systemInfo.py [-h] [--all] [--battery] [--cpu] [--disk] [--error] [--hostname HOSTNAME] [--inode]
                     [--io] [--json] [--load] [--mail_from MAIL_FROM] [--mail_password MAIL_PASSWORD]
                     [--mail_to MAIL_TO] [--memory] [--network] [--os] [--service SERVICE]
                     [--smtp_host SMTP_HOST] [--smtp_port SMTP_PORT] [--uptime] [--verbose] [--version]

  This is realtime system monitoring program, and it could be run at Windows,
  Linux and MacOS.

options:
  -h, --help            show this help message and exit
  --all, -a             all system information
  --battery             battery information
  --cpu                 CPU information
  --disk                disk information
  --error               errors log
  --hostname HOSTNAME   set hostname
  --inode               inodes information (unix only)
  --io                  IO read and write information
  --json                JSON output
  --load                system load information
  --mail_from MAIL_FROM
                        username for SMTP authentication
  --mail_password MAIL_PASSWORD
                        password for SMTP authentication
  --mail_to MAIL_TO     email addresses to recieve the infomation
  --memory              memory information
  --network             network information
  --os                  OS information
  --service SERVICE     servcie information
  --smtp_host SMTP_HOST
                        hostname of SMTP server
  --smtp_port SMTP_PORT
                        port number of SMTP server
  --uptime              system uptime
  --verbose, -v         verbose output
  --version, -V         version number of this program

Example

bash> python systemInfo.py --cpu --battery
hostname = NONAME
datetime = 2023-04-29 18:29:22
battery = {'charge': '100%', 'time_left': 'power_plugged'}
cpu = {'total_usage': 4.1}
bash> python systemInfo.py --cpu --battery --json
{"hostname": "NONAME", "datetime": "2023-04-29 18:29:31", "battery": {"charge": "100%", "time_left": "power_plugged"}, "cpu": {"total_usage": 5.8}}
powershell> python c:\Tools\monitor\systemInfo.py --cpu --mem --disk --battery --uptime --version --service "bits;wuauserv" --smtp_host smtp.test.net --smtp_port 465 --mail_from monitor@test.net --mail_password xxxxxxxx --mail_to admin@test.net --hostname %computername%

monitor's People

Contributors

day0ng avatar

Stargazers

 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.