Skip to content

Lightweight Linux load monitoring using Slack notifications

Notifications You must be signed in to change notification settings

wickdChromosome/loadmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loadmonitor

Unit tests Dependencies GitHub Issues Contributions welcome License

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

About

Lightweight Linux load monitoring using Slack notifications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages