Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```