LinuxTopSlackSynchronizer

command module
v0.0.0-...-e679d17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

README

LinuxTopSlackSynchronizer

About

This program uses the top command to display programs with high CPU utilization in Slack.

Install

go install github.com/TKMAX777/LinuxTopSlackSynchronizer@latest

Usage

Set the following environment variables

PROCESS_NUMBER='Number of processes to display'
SLACK_TOKEN='xoxb-*****'
SLACK_REGULAR_CHANNEL='Slack channel ID'
SLACK_ALERT_CHANNEL='Slack channel ID'
SLACK_ALERT_MODE='on / off'
SLACK_ALERT_LEVEL='CPU utilization when sending Alert'
SLACK_SEND_INTERVAL='Interval for updating Slack messages [second]'
Slack Scopes
channels:history 
channels:read

chat:write
chat:write.customize

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL