Coder Social home page Coder Social logo

0zelot / stealmonitor Goto Github PK

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

Simple app that allows you to control Steal CPU on the Linux server.

License: MIT License

JavaScript 100.00%
linux linux-server vps vps-setup cpu-monitoring cpu-steal vps-managment vps-admin

stealmonitor's Introduction

StealMonitor

Simple app that allows you to control Steal CPU on the Linux server.

Sometimes some VPS delivers practice overselling. If the level of steal is high, your server may run out of the CPU power so it will work with reduced efficiency. This app will notify you with a high level of Steal CPU.

Installation

All you need to do is place files in any directory on your server, you will configure the application and run it.

Upload files on your server or use git clone https://github.com/0zelot/StealMonitor.git.

Next, install all dependencies using npm install command. You must be in the catalog where you placed app files.

Configuration

To configure, modify the config.json file.

  • minToAlert - minimum steal value to send alert (Number)

  • logging - saving logs to file (Boolean)

  • commandsAfterAlert - execute SSH commands when Steal exceeds the previously determined value (Array)

  • Discord Webhook

    • enabled - enable or disable Discord Webhook alerts (Boolean)

    • url - Discord Webhook URL (String)

    • message - object of Discord Webhook message (Object)

Running

To make application work all time, run it through pm2 or screen.

For example: screen -dmS stealmonitor node index.js.

stealmonitor's People

Contributors

0zelot avatar dependabot[bot] avatar minerpl 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.