Coder Social home page Coder Social logo

sschonss / check-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28 KB

The System Monitor program is designed to monitor and display real-time system information such as CPU usage, memory usage, and more.

License: MIT License

Go 68.64% HTML 31.36%

check-system's Introduction

System Monitor Program Documentation

Overview

The System Monitor program is designed to monitor and display real-time system information such as CPU usage, memory usage, and more. It utilizes a WebSocket for real-time updates and provides an API endpoint to fetch the latest system information.

Table of Contents

Requirements

  • Go (version 1.16 or higher)
  • BoltDB (embedded key/value database)
  • Gorilla WebSocket (for WebSocket functionality)
  • Gin (for API functionality)

Installation

  1. Clone the repository
  2. Navigate to the root directory of the repository
  3. Install dependencies with go mod download
  4. Build the program with go build -o system-monitor
  5. Run the program with ./system-monitor

Usage

Web Interface

The web interface is available at http://localhost:8081/static. It displays the latest system information and updates in real-time.

WebSocket

The WebSocket is available at ws://localhost:8081/ws. It sends the latest system information in JSON format every second.

API

The API is available at http://localhost:8081/api/system-info. It returns the latest system information in JSON format.

File Structure

.
|-- main.go
|-- static/
|   |-- index.html
|-- api/
|   |-- api.go
|-- websocket/
|   |-- websocket.go
|-- database/
|   |-- database.go
|-- models/
|   |-- models.go
|-- utils/
|   |-- utils.go
|-- websocket/
|   |-- websocket.go
|-- webserver/
|   |-- webserver.go
|-- out/
|   |-- system-monitor.log
|-- database.db
|-- go.mod
|-- go.sum
|-- README.md

License

This project is licensed under the MIT License. See the LICENSE file for details.

check-system's People

Contributors

sschonss avatar

Watchers

 avatar

check-system's Issues

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.