Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wickdchromosome/loadmonitor
Lightweight Linux load monitoring using Slack notifications
https://github.com/wickdchromosome/loadmonitor
alert cpu monitoring ram slack
Last synced: about 2 months ago
JSON representation
Lightweight Linux load monitoring using Slack notifications
- Host: GitHub
- URL: https://github.com/wickdchromosome/loadmonitor
- Owner: wickdChromosome
- Created: 2019-12-12T07:29:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-08T06:55:05.000Z (over 4 years ago)
- Last Synced: 2024-10-14T07:24:16.306Z (3 months ago)
- Topics: alert, cpu, monitoring, ram, slack
- Language: C++
- Homepage:
- Size: 2.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loadmonitor
![Unit tests](https://travis-ci.com/wickdChromosome/loadmonitor.svg?branch=master)
![Dependencies](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)
[![GitHub Issues](https://img.shields.io/github/issues/wickdchromosome/loadmonitor.svg)](https://github.com/wickdchromosome/loadmonitor/issues)
![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)## Description
Keep an eye your Linux box using Slack - you will get notified with a(n):
- Warning if Ram usage exceeded 75%
- Alert if Ram usage exceeded 85%
- Alert if CPU loadavg/num_cpus > 1 (loadavg also takes into account swap usage, etc)## Dependencies
- gcc
- curl## Installation
To install the app, first create a new Slack app, and enable incoming webhooks for your target channel.
Then run:
```
sudo bash setup.sh
```This will compile the project using gcc (tested using gcc version 9.2.1) and add the project as a systemd service. You will also get a prompt to test
your webhook with a "Hello World!" message.## Usage
To take the app for a spin, start the service by doing:
```
sudo systemctl start slack_monitor
```Test whether the app is working as expected:
```
sudo systemctl status slack_monitor
```If things are working fine, you can enable the service so that it starts up on every startup:
```
sudo systemctl enable slack_monitor
```