Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

0zelot/StealMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published